-
Notifications
You must be signed in to change notification settings - Fork 156
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test: add basic e2e snapshot test to catch visual regressions (#1055)
- Loading branch information
Showing
8 changed files
with
448 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
name: autofix.ci | ||
|
||
on: | ||
pull_request: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
test: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
- run: corepack enable | ||
|
||
- uses: actions/setup-node@v4 | ||
with: | ||
node-version: 18 | ||
cache: "pnpm" | ||
|
||
- run: pnpm install | ||
|
||
- run: pnpm exec playwright install | ||
|
||
- run: pnpm prepare | ||
|
||
- name: Browser tests | ||
run: pnpm test:browser --update-snapshots | ||
|
||
- uses: autofix-ci/action@ff86a557419858bb967097bfc916833f5647fa8c |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,3 +22,6 @@ dist | |
.starters/**/yarn.lock | ||
.starters/**/package-lock.json | ||
.starters/**/pnpm-lock.yaml | ||
|
||
test-results | ||
.pnpm-store |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
import { fileURLToPath } from 'node:url' | ||
import { defineConfig } from '@playwright/test' | ||
import type { ConfigOptions } from '@nuxt/test-utils/playwright' | ||
|
||
export default defineConfig<ConfigOptions>({ | ||
timeout: 120000, | ||
use: { | ||
nuxt: { | ||
rootDir: fileURLToPath(new URL('.starters/default', import.meta.url)) | ||
}, | ||
}, | ||
}) |
Oops, something went wrong.