diff --git a/.github/workflows/screenshot_capture.yaml b/.github/workflows/screenshot_capture.yaml index dc54dd2e6d..70e2375dce 100644 --- a/.github/workflows/screenshot_capture.yaml +++ b/.github/workflows/screenshot_capture.yaml @@ -80,7 +80,7 @@ jobs: node-version: "18" cache: "npm" - - name: Download Build + - name: Install Dependencies uses: Wandalen/wretry.action@v3 with: command: npm ci @@ -107,39 +107,36 @@ jobs: uses: actions/upload-artifact@v4 id: screenshots with: - name: snapshots-${{ matrix.shardIndex }} + name: screenshots-${{ matrix.shardIndex }} path: | screenshots/ if-no-files-found: error retention-days: 1 merge-snapshots: - name: Merge Snapshots + name: Merge Screenshots runs-on: ubuntu-latest needs: [visual-snapshots] steps: - - name: Check out repository code - uses: actions/checkout@v4 - - name: Download blob reports from GitHub Actions Artifacts uses: actions/download-artifact@v4 with: - path: snapshots - pattern: snapshots-* + path: screenshots + pattern: screenshots-* merge-multiple: true - name: Merge Snapshots run: | ls -ll - ls -ll snapshots + ls -ll screenshots - name: Upload Screenshots uses: actions/upload-artifact@v4 id: screenshots with: - name: "snapshots" + name: "screenshots" path: | - snapshots/ + screenshots/ if-no-files-found: error retention-days: 3 diff --git a/.github/workflows/visual-comparison.yaml b/.github/workflows/visual-comparison.yaml index 31711e2560..145dc8db66 100644 --- a/.github/workflows/visual-comparison.yaml +++ b/.github/workflows/visual-comparison.yaml @@ -207,7 +207,7 @@ jobs: path: ${{ env.HTML_REPORT_URL_PATH }} - name: Push HTML Report - timeout-minutes: 3 + timeout-minutes: 5 run: | git add . git commit -m "workflow: add HTML report for run-id ${{ github.run_id }} (attempt: ${{ github.run_attempt }})" @@ -240,7 +240,9 @@ jobs: with: message: | 📋 Visual Report for ${{ github.ref_name }} with CI run ${{ github.run_id }} and attempt ${{ github.run_attempt }} is ready attempt at - https://spectrocloud.github.io/${{env.GITHUB_REPOSITORY_OWNER}}/${{env.HTML_REPORT_URL_PATH}} + https://spectrocloud.github.io/${{ github.GITHUB_REPOSITORY_OWNER}}/${{env.HTML_REPORT_URL_PATH}} + + 💡 You may have to wait for DNS to resolve or the GitHub Pages job to complete. You can view the progress of the GitHub Pages job [here](https://github.com/spectrocloud/librarium/actions/workflows/pages/pages-build-deployment). message-failure: | 👎 Uh oh! Unable to publish Visual Report URL. refresh-message-position: true diff --git a/playwright.config.ts b/playwright.config.ts index 90aa0b7b8f..a63f9ec0a1 100644 --- a/playwright.config.ts +++ b/playwright.config.ts @@ -7,7 +7,6 @@ const config: PlaywrightTestConfig = { testDir: "visuals", fullyParallel: true, retries: 1, - expect: { toMatchSnapshot: { maxDiffPixels: 100,