提交 af027df1 编写于 作者: DCloud-yinjiacheng's avatar DCloud-yinjiacheng

更新dialogPage自动化测试用例

上级 a541f83c
......@@ -310,19 +310,21 @@ describe('dialog page', () => {
})
it('dialogPage hideStatusBar hideBottomNavigationIndicator', async () => {
await page.callMethod('openDialog2ForTest');
await page.waitFor(1000);
await page.callMethod('setPageStyleForTest', {
hideStatusBar: true,
hideBottomNavigationIndicator: true
});
await page.waitFor(2000);
const image = await program.screenshot({
deviceShot: true
});
expect(image).toSaveImageSnapshot();
await page.waitFor(2000);
await page.callMethod('closeDialog2ForTest');
if (isAndroid) {
await page.callMethod('openDialog2ForTest');
await page.waitFor(1000);
await page.callMethod('setPageStyleForTest', {
hideStatusBar: true,
hideBottomNavigationIndicator: true
});
await page.waitFor(2000);
const image = await program.screenshot({
deviceShot: true
});
expect(image).toSaveImageSnapshot();
await page.waitFor(2000);
await page.callMethod('closeDialog2ForTest');
}
});
afterAll(async () => {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册