Skip to content

Commit 2591d77

Browse files
committed
chore: build project before playwright test
1 parent 306d537 commit 2591d77

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
"scripts": {
1313
"build": "nuxt build",
1414
"build:lunaria": "node ./lunaria/lunaria.ts",
15+
"build:playwright": "NODE_ENV=test pnpm build",
1516
"dev": "nuxt dev",
1617
"dev:docs": "pnpm run --filter npmx-docs dev --port=3001",
1718
"i18n:check": "node scripts/compare-translations.ts",
@@ -28,12 +29,12 @@
2829
"generate:lexicons": "lex build --lexicons lexicons --out shared/types/lexicons --clear",
2930
"test": "vite test",
3031
"test:browser": "playwright test",
31-
"test:browser:ui": "playwright test --ui",
32+
"test:browser:ui": "pnpm build:playwright && playwright test --ui",
3233
"test:browser:update": "playwright test --update-snapshots",
3334
"test:nuxt": "vite test --project nuxt",
3435
"test:types": "nuxt prepare && vue-tsc -b --noEmit && pnpm --filter npmx-connector test:types",
3536
"test:unit": "vite test --project unit",
36-
"start:playwright:webserver": "NODE_ENV=test pnpm build && pnpm preview --port 5678"
37+
"start:playwright:webserver": "NODE_ENV=test pnpm preview --port 5678"
3738
},
3839
"dependencies": {
3940
"@atproto/api": "^0.18.17",

playwright.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ export default defineConfig<ConfigOptions>({
1616
command: 'pnpm start:playwright:webserver',
1717
url: baseURL,
1818
reuseExistingServer: false,
19-
timeout: 240_000,
19+
timeout: 60_000,
2020
},
2121
use: {
2222
baseURL,

0 commit comments

Comments
 (0)