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
2 changes: 1 addition & 1 deletion .github/workflows/playwright.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ jobs:

# Step 4: Playwrightブラウザと必要な依存関係をインストール
- name: Install Playwright Browsers
run: npx playwright install --with-deps
run: npm run install-playwright

# Step 5: 実際のPlaywrightテストを実行
# package.jsonのtestスクリプト(playwright test)を実行
Expand Down
7 changes: 3 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
"test:headed": "node_modules/.bin/playwright test --headed",
"test:ui": "node_modules/.bin/playwright test --ui",
"test:debug": "node_modules/.bin/playwright test --debug",
"serve": "npx http-server public -p 3000",
"install-playwright": "npx playwright install",
"serve": "http-server public -p 3000",
"install-playwright": "npx playwright install --with-deps",
"build-for-pages": "mkdir -p dist && cp -r public/* dist/ && cp -r playwright-report dist/playwright-report"
},
"keywords": [
Expand All @@ -22,7 +22,6 @@
"author": "",
"license": "MIT",
"devDependencies": {
"@playwright/test": "^1.55.1",
"@types/node": "^24.6.1"
"@playwright/test": "^1.55.1"
}
}
5 changes: 1 addition & 4 deletions playwright.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@ export default defineConfig({
reporter: [['html', { open: 'on-failure' }]],
use: {
baseURL: 'http://localhost:3000',
screenshot: 'only-on-failure',
video: 'retain-on-failure',
trace: 'on-first-retry',
},

Expand All @@ -32,7 +30,6 @@ export default defineConfig({
],

webServer: {
command: 'npx http-server public -p 3000',
port: 3000,
command: 'npm run serve',
},
});
Loading