Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 1 addition & 11 deletions .github/workflows/browser-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,24 +53,14 @@ jobs:
if: ${{ env['GHA_LOCAL_RUN'] != 'true' }}
run: pnpm exec playwright install --with-deps

- name: Build project
run: pnpm run build

- name: Start preview server in background
run: pnpm run preview -- --port 4323 &
shell: bash

- name: Wait for server
run: sleep 15

- name: Run browser tests
run: |
export NODE_ENV=test
export DISABLE_AUTH=true
export DISABLE_WEB_FONTS=true
export SKIP_MSW=true
export BASE_URL=http://localhost:4323
pnpm exec playwright test tests/browser/auth.spec.ts tests/browser/cross-browser-compatibility.spec.ts --project=chromium --max-failures=10 --workers=1
pnpm exec playwright test -c config/playwright.config.ts tests/browser/auth.spec.ts tests/browser/cross-browser-compatibility.spec.ts --project=chromium --max-failures=10 --workers=1
env:
CI: true

Expand Down
2 changes: 1 addition & 1 deletion config/playwright.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ try {
* @see https://playwright.dev/docs/test-configuration
*/
export default defineConfig({
testDir: './tests',
testDir: '../tests',
testIgnore: ['tests/accessibility/**'],
/* Run tests in files in parallel */
fullyParallel: true,
Expand Down
12 changes: 9 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -364,7 +364,7 @@
"oxfmt": "^0.35.0",
"oxlint": "^1.56.0",
"oxlint-tsgolint": "^0.15.0",
"path-to-regexp": "8.3.0",
"path-to-regexp": "8.4.1",
"postcss": "^8.5.8",
"postcss-import": "^16.1.1",
"postinstall-postinstall": "^2.1.0",
Expand Down Expand Up @@ -408,7 +408,7 @@
"hono": "^4.12.7"
},
"resolutions": {
"path-to-regexp": "8.3.0"
"path-to-regexp": "8.4.1"
},
"engines": {
"node": ">=24"
Expand All @@ -420,7 +420,13 @@
"scmp": "2.1.0",
"@opentelemetry/otlp-proto-exporter-base": "^0.51.1",
"@azure/openai": "^2.0.0",
"node-forge": "1.3.3",
"node-forge": ">=1.4.0",
"picomatch": "4.0.4",
"path-to-regexp": ">=8.4.0",
"smol-toml": ">=1.6.1",
"@astrojs/vercel": ">=10.0.2",
"brace-expansion": ">=5.0.5",
"yaml": ">=2.8.3",
"tmp": ">=0.2.4",
"glob": "^13.0.0",
"node-domexception": "^2.0.1",
Expand Down
Loading