diff --git a/pages/API/load-font-face/load-font-face-child.test.js b/pages/API/load-font-face/load-font-face-child.test.js deleted file mode 100644 index 602fb40f422109a7b0c1b69081125eb2b78c5e96..0000000000000000000000000000000000000000 --- a/pages/API/load-font-face/load-font-face-child.test.js +++ /dev/null @@ -1,12 +0,0 @@ -const PAGE_PATH = '/pages/API/load-font-face/load-font-face-child' - -describe('loadFontFace global', () => { - beforeAll(async () => { - const page = await program.navigateTo(PAGE_PATH) - await page.waitFor('view') - }) - it('screenshot', async () => { - const image = await program.screenshot() - expect(image).toMatchImageSnapshot() - }) -}) diff --git a/pages/API/load-font-face/load-font-face.test.js b/pages/API/load-font-face/load-font-face.test.js index 826dabee0036a1bf8ab7dc83b647ed08f75f3115..df73df3320f6379f9183248ec5506fe3cf4a0158 100644 --- a/pages/API/load-font-face/load-font-face.test.js +++ b/pages/API/load-font-face/load-font-face.test.js @@ -1,12 +1,19 @@ 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', () => { +describe("loadFontFace", () => { beforeAll(async () => { - const page = await program.navigateTo(PAGE_PATH) - await page.waitFor(3000) - }) - it('screenshot', async () => { - const image = await program.screenshot() - expect(image).toMatchImageSnapshot() - }) -}) + const page = await program.navigateTo(PAGE_PATH); + await page.waitFor(3000); + }); + it("parent screenshot", async () => { + const image = await program.screenshot(); + expect(image).toMatchImageSnapshot(); + }); + it("child screenshot", async () => { + const page = await program.navigateTo(CHILD_PAGE_PATH); + await page.waitFor("view"); + const image = await program.screenshot(); + expect(image).toMatchImageSnapshot(); + }); +});