const PAGE_PATH = '/pages/API/load-font-face/load-font-face' 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(4000); }); it("parent screenshot", async () => { const image = await program.screenshot({fullPage: true}); expect(image).toSaveImageSnapshot(); }); it("child screenshot", async () => { const page = await program.navigateTo(CHILD_PAGE_PATH); await page.waitFor(3000); const image = await program.screenshot({fullPage: true}); expect(image).toSaveImageSnapshot(); }); });