Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
kevin940726 committed Aug 14, 2023
1 parent 31c4ab3 commit 7f69125
Show file tree
Hide file tree
Showing 19 changed files with 12 additions and 12 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"start": "next start",
"lint": "next lint",
"test": "playwright test -c src/tests/playwright.config.ts",
"test:docker": "docker run --rm -e HOST=http://host.docker.internal:3000 -v $(pwd):/work/ -w /work/ mcr.microsoft.com/playwright:v1.31.1-focal npm test"
"test:docker": "docker run --rm -e HOST=http://host.docker.internal:3000 -v $(pwd):/work/ -w /work/ mcr.microsoft.com/playwright:v1.37.0 npm test"
},
"dependencies": {
"@mdx-js/loader": "^2.3.0",
Expand All @@ -33,7 +33,7 @@
"slugify": "^1.6.5"
},
"devDependencies": {
"@playwright/test": "^1.31.1",
"@playwright/test": "^1.37.0",
"@types/hast": "^2.3.4",
"@types/mdast": "^3.0.10",
"@types/mdx": "^2.0.5",
Expand Down
18 changes: 9 additions & 9 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/tests/specs/visual-snapshots.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ test.describe(`Visual snapshots`, () => {
test(`${route.label}`, async ({ page, request }, testInfo) => {
for (const colorScheme of ['light', 'dark'] as const) {
await page.emulateMedia({ colorScheme });
await page.goto(route.url, { waitUntil: 'networkidle' });
await page.goto(route.url);

expect(
await page.screenshot({ fullPage: true, animations: 'disabled' }),
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 7f69125

Please sign in to comment.