提交 1d4140d0 编写于 作者: Anne_LXM's avatar Anne_LXM

Update settings.test.js

上级 fab71a11
......@@ -2,19 +2,21 @@
jest.setTimeout(30000);
const PAGE_PATH = '/pages/ucenter/settings/settings'
describe('settings', () => {
let page, hasLogin;
let page, hasLogin;
if (process.env.uniTestPlatformInfo == 'ios_simulator 13.7') {
it('ucenter-ios13.7', async () => {
expect(1).toBe(1)
})
return
}
beforeAll(async () => {
try {
page = await program.navigateTo(PAGE_PATH)
await page.waitFor('view')
hasLogin = await page.callMethod('hasLoginTest')
console.log("登录状态", hasLogin)
if (!hasLogin) {
console.log("未登录测试失败")
return
}
} catch (err) {
console.log("err: ", err);
page = await program.navigateTo(PAGE_PATH)
await page.waitFor('view')
hasLogin = await page.callMethod('hasLoginTest')
console.log("登录状态", hasLogin)
if (!hasLogin) {
console.log("未登录测试失败")
return
}
})
it('settings', async () => {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册