diff --git a/.github/workflows/screenshot_capture.yaml b/.github/workflows/screenshot_capture.yaml index 83431ccf7c..b140bc6519 100644 --- a/.github/workflows/screenshot_capture.yaml +++ b/.github/workflows/screenshot_capture.yaml @@ -33,25 +33,25 @@ jobs: - name: Checkout Repository uses: actions/checkout@v4 - - name: Setup Node.js environment + - name: Setup Node.js Environment uses: actions/setup-node@v4 with: node-version: "18" cache: "npm" - - name: Install dependencies + - name: Install Dependencies run: npm ci - name: Install Playwright browsers run: npx playwright install --with-deps chromium - - name: Build the website + - name: Build Website run: make build - - name: Take screenshots with Playwright + - name: Take Screenshots with Playwright run: make test-visual-ci - - name: Upload screenshots + - name: Upload Screenshots uses: actions/upload-artifact@v4 id: screenshots with: diff --git a/.github/workflows/visual-comparison.yaml b/.github/workflows/visual-comparison.yaml index 8f2f6b457a..0ad93976f5 100644 --- a/.github/workflows/visual-comparison.yaml +++ b/.github/workflows/visual-comparison.yaml @@ -130,6 +130,10 @@ jobs: fi done + + - name: DNS Wait + run: sleep 120 + - name: GH Pages URL run: | diff --git a/visuals/screenshot.api.spec.ts b/visuals/screenshot.api.spec.ts index 1243ff58c6..65ea8e5f76 100644 --- a/visuals/screenshot.api.spec.ts +++ b/visuals/screenshot.api.spec.ts @@ -6,7 +6,7 @@ const siteUrl = "http://localhost:3000"; const sitemapPath = "build/sitemap.xml"; const stylesheetPath = "visuals/screenshot.css"; const stylesheet = fs.readFileSync(stylesheetPath).toString(); -const excludeList = require("./excludeList.json"); +const excludeList = require("./exclude.json"); function isApiDocsPathname(pathname: string, excludeList: string[]): boolean { if (excludeList.includes(pathname)) { diff --git a/visuals/screenshot.docs.spec.ts b/visuals/screenshot.docs.spec.ts index a83d15aaf0..56bff4786e 100644 --- a/visuals/screenshot.docs.spec.ts +++ b/visuals/screenshot.docs.spec.ts @@ -6,7 +6,7 @@ const siteUrl = "http://localhost:3000"; const sitemapPath = "build/sitemap.xml"; const stylesheetPath = "visuals/screenshot.css"; const stylesheet = fs.readFileSync(stylesheetPath).toString(); -const excludeList = require("./excludeList.json"); +const excludeList = require("./exclude.json"); function isVersionedDocsPathname(pathname: string, excludeList: string[]): boolean { if (excludeList.includes(pathname)) {