提交 b873d0b5 编写于 作者: 雪洛's avatar 雪洛

test(mp): 屏蔽getLocation测试例

上级 edbee87f
......@@ -5,6 +5,8 @@ const RECT_WIDTH = 150;
const RECT_HEIGHT = 100;
describe('nodes-info', () => {
const platformInfo = process.env.uniTestPlatformInfo.toLocaleLowerCase()
const isMP = platformInfo.startsWith('mp')
let page
beforeAll(async () => {
page = await program.reLaunch(PAGE_PATH)
......
......@@ -6,6 +6,14 @@ const isApp = isAndroid || isIos
const isWeb = platformInfo.startsWith('web')
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)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册