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

test:仅截图登录页

上级 ee4351d8
let pageIndex = 0
const pages = [
'/uni_modules/uni-id-pages/pages/login/login-withpwd',
'/pages/grid/grid'
'/uni_modules/uni-id-pages/pages/login/login-withpwd'
]
let page;
......
......@@ -31,11 +31,11 @@ describe('settings', () => {
expect((await el.$$('.mt10')).length).toBe(2)
}
})
it('screenshot', async () => {
const image = await program.screenshot();
expect(image).toSaveImageSnapshot();
await page.waitFor(500);
})
// it('screenshot', async () => {
// const image = await program.screenshot();
// expect(image).toSaveImageSnapshot();
// await page.waitFor(500);
// })
it('退出登录', async () => {
const bottomEl = await page.$('.bottom-back-text')
expect(await bottomEl.text()).toBe('退出登录')
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册