Skip to content

Commit a77523d

Browse files
committed
feat: Updated images
1 parent 52637c7 commit a77523d

File tree

6 files changed

+6
-17
lines changed

6 files changed

+6
-17
lines changed

.github/workflows/playwright.yml

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -60,16 +60,4 @@ jobs:
6060
owner: context.repo.owner,
6161
repo: context.repo.repo,
6262
body: body,
63-
});
64-
65-
# - name: Update the screenshots based on Ubuntu env on GH
66-
# id: test-visual-update
67-
# if: ${{ failure() && steps.test-visual.conclusion == 'failure' }}
68-
# run: make tests-update-screenshots
69-
# - name: Upload updated Playwright screenshots
70-
# uses: actions/upload-artifact@v4
71-
# if: ${{ failure() && steps.test-visual-update.conclusion == 'success' }}
72-
# with:
73-
# name: playwright-screenshots-updated
74-
# path: tests/src/__screenshots__/**/*.png
75-
# retention-days: 3
63+
});

.github/workflows/update-screenshot.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
name: Update screenshot on comment
22
on:
3-
pull_request:
4-
# issue_comment:
5-
# types: [created]
3+
issue_comment:
4+
types: [created]
65
jobs:
76
update-screenshots:
87
name: Update Screenshot
Loading
Loading
Loading

tests/src/visual-regression.spec.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ test.describe('Testing old theme', () => {
1212
window.scrollTo(0, 0);
1313
});
1414
await page.waitForFunction(() => window.scrollY === 0);
15-
await expect(page).toHaveScreenshot('example-site-screenshot.png');
15+
await expect(page).toHaveScreenshot('example-site-screenshot.png', {
16+
fullPage: true,
17+
});
1618
});
1719
});

0 commit comments

Comments
 (0)