Skip to content

Commit 92e45ed

Browse files
committed
feat: Need to be reverted
1 parent c83f000 commit 92e45ed

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

.github/workflows/update-screenshot.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
11
name: Update screenshot on comment
22
on:
3-
issue_comment:
4-
types: [created]
3+
pull_request:
4+
55
jobs:
66
update-screenshots:
77
name: Update Screenshot
8-
if: github.event.issue.pull_request && contains(github.event.comment.body, '/approve-snapshots')
98
runs-on: ubuntu-latest
109
permissions:
1110
contents: write

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)