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

更新dialogPage自动化测试用例

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