提交 b46503b5 编写于 作者: DCloud-WZF's avatar DCloud-WZF 💬

test: 优化通用属性截图测试时机

上级 a855a618
...@@ -20,6 +20,7 @@ describe('general attribute', () => { ...@@ -20,6 +20,7 @@ describe('general attribute', () => {
it("ref", async () => { it("ref", async () => {
const button = await page.$(".btn-ref"); const button = await page.$(".btn-ref");
await button.tap(); await button.tap();
await page.waitFor(1000);
const image = await program.screenshot(); const image = await program.screenshot();
expect(image).toMatchImageSnapshot(); expect(image).toMatchImageSnapshot();
}); });
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册