From aa70e5c963f17f5885f95c8099e6e33dca6559b6 Mon Sep 17 00:00:00 2001 From: sebastienlorber Date: Thu, 31 Aug 2023 19:15:17 +0200 Subject: [PATCH 1/7] screenshot pr --- tests/siteScreenshots.spec.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tests/siteScreenshots.spec.ts b/tests/siteScreenshots.spec.ts index 0423a3d..397083d 100644 --- a/tests/siteScreenshots.spec.ts +++ b/tests/siteScreenshots.spec.ts @@ -3,8 +3,10 @@ import { argosScreenshot } from "@argos-ci/playwright"; import * as fs from "fs"; import * as cheerio from "cheerio"; -const siteUrl = process.env.SITE_URL ?? "https://jestjs.io/"; -const isProd = siteUrl === "https://jestjs.io/"; +const siteUrl = + process.env.SITE_URL ?? "https://deploy-preview-14463--jestjs.netlify.app"; + +const isProd = siteUrl === "https://jestjs.io"; function extractSitemapUrls() { const sitemapString = fs.readFileSync("./sitemap.xml") as any; From b13971b8908b0ee71339394c9d78d8d465a10309 Mon Sep 17 00:00:00 2001 From: sebastienlorber Date: Thu, 31 Aug 2023 19:46:48 +0200 Subject: [PATCH 2/7] Temp fix screenshots --- tests/siteScreenshots.spec.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/siteScreenshots.spec.ts b/tests/siteScreenshots.spec.ts index bb57824..973dac3 100644 --- a/tests/siteScreenshots.spec.ts +++ b/tests/siteScreenshots.spec.ts @@ -94,7 +94,8 @@ function createPathnameTest(pathname: string) { const url = siteUrl + pathname; await page.goto(url); if (!isProd) { - await page.waitForFunction(waitForDocusaurusHydration); + // TODO restore + // await page.waitForFunction(waitForDocusaurusHydration); } await page.evaluate(async () => new Promise((r) => requestIdleCallback(r))); await page.addStyleTag({ content: stylesheet }); From 1eb792c969206de3bcf4160adb58140067c3829f Mon Sep 17 00:00:00 2001 From: sebastienlorber Date: Thu, 31 Aug 2023 19:52:41 +0200 Subject: [PATCH 3/7] empty From ef997a89447b457be9a6f79100012b85ba84f333 Mon Sep 17 00:00:00 2001 From: sebastienlorber Date: Fri, 1 Sep 2023 15:31:26 +0200 Subject: [PATCH 4/7] Restore waitForDocusaurusHydration --- tests/siteScreenshots.spec.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tests/siteScreenshots.spec.ts b/tests/siteScreenshots.spec.ts index 2c9bc6b..3db0b68 100644 --- a/tests/siteScreenshots.spec.ts +++ b/tests/siteScreenshots.spec.ts @@ -97,8 +97,7 @@ function createPathnameTest(pathname: string) { const url = siteUrl + pathname; await page.goto(url); if (!isProd) { - // TODO restore - // await page.waitForFunction(waitForDocusaurusHydration); + await page.waitForFunction(waitForDocusaurusHydration); } await page.evaluate(async () => new Promise((r) => requestIdleCallback(r))); await page.addStyleTag({ content: stylesheet }); From f9224c7f3ab66b754d263086506306dd95e4e712 Mon Sep 17 00:00:00 2001 From: sebastienlorber Date: Fri, 1 Sep 2023 16:09:34 +0200 Subject: [PATCH 5/7] empty From 5a9f95c6a5ecc90d49fc78af1dd9ba171e1376a8 Mon Sep 17 00:00:00 2001 From: sebastienlorber Date: Fri, 1 Sep 2023 16:50:48 +0200 Subject: [PATCH 6/7] empty From 276952800e993cc012f2311e8d930259ed0f1890 Mon Sep 17 00:00:00 2001 From: sebastienlorber Date: Fri, 1 Sep 2023 17:10:27 +0200 Subject: [PATCH 7/7] empty