diff --git a/pages/API/create-selector-query/create-selector-query.test.js b/pages/API/create-selector-query/create-selector-query.test.js index 061ed49083612d61f3d7df66045be73c4e83c6b7..eb5d72bc22f1d75e2fb02c725a48b393479a259b 100644 --- a/pages/API/create-selector-query/create-selector-query.test.js +++ b/pages/API/create-selector-query/create-selector-query.test.js @@ -4,7 +4,9 @@ const RECT_LEFT = 15; const RECT_WIDTH = 150; const RECT_HEIGHT = 100; -describe('nodes-info', () => { +describe('nodes-info', () => { + const platformInfo = process.env.uniTestPlatformInfo.toLocaleLowerCase() + const isMP = platformInfo.startsWith('mp') let page beforeAll(async () => { page = await program.reLaunch(PAGE_PATH) diff --git a/pages/API/get-location/get-location.test.js b/pages/API/get-location/get-location.test.js index 6c0d72d2d635414da0fc4c312344852a08971aef..452264007147e02a7cdb8561a05e2d4dc8cba248 100644 --- a/pages/API/get-location/get-location.test.js +++ b/pages/API/get-location/get-location.test.js @@ -5,7 +5,15 @@ const isIos = platformInfo.startsWith('ios') const isApp = isAndroid || isIos const isWeb = platformInfo.startsWith('web') -describe("get-location", () => { +describe("get-location", () => { + const platformInfo = process.env.uniTestPlatformInfo.toLocaleLowerCase() + const isMP = platformInfo.startsWith('mp') + if(isMP) { + // 微信上会有权限弹框,暂时屏蔽测试 + it('not support', async () => { + expect(1).toBe(1) + }) + } beforeAll(async () => { page = await program.reLaunch(PAGE_PATH) await page.waitFor(600)