Skip to content

Commit f5d213e

Browse files
committed
use playwright image
1 parent f90b1ae commit f5d213e

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

.github/workflows/test-preview.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,8 @@ jobs:
5353
5454
# Step 5: Run Playwright tests
5555
- name: Run Playwright tests
56-
run: yarn playwright test
56+
uses: docker://mcr.microsoft.com/playwright:v1.49.1-noble
57+
run: npm exec -- playwright test
5758
env:
5859
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
5960
BASE_URL: ${{ github.event.deployment_status.environment_url }}

tests/screenshot.spec.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ test.describe('Docusaurus site screenshots', async () => {
2727
pathnames = extractSitemapPathnames(sitemapContent).filter((pathname) =>
2828
pathname.startsWith('/docs/en') // currently test en only
2929
);
30+
console.log(`${pathnames.length} paths to test`)
3031
});
3132

3233
test('Generate and run screenshot tests', async ({page}) => {

0 commit comments

Comments
 (0)