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

更新dialogPage自动化测试用例

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