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

test(loadFontFace): 增加字体加载等待时间

上级 d599fdc2
......@@ -4,7 +4,7 @@ const CHILD_PAGE_PATH = "/pages/API/load-font-face/load-font-face-child";
describe("loadFontFace", () => {
beforeAll(async () => {
const page = await program.navigateTo(PAGE_PATH);
await page.waitFor(3000);
await page.waitFor(4000);
});
it("parent screenshot", async () => {
const image = await program.screenshot();
......@@ -12,7 +12,7 @@ describe("loadFontFace", () => {
});
it("child screenshot", async () => {
const page = await program.navigateTo(CHILD_PAGE_PATH);
await page.waitFor("view");
await page.waitFor(1000);
const image = await program.screenshot();
expect(image).toMatchImageSnapshot();
});
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册