Skip to content

Commit 1090b57

Browse files
committed
refactor: play wright base url fix (#183)
1 parent bb50388 commit 1090b57

File tree

2 files changed

+11
-9
lines changed

2 files changed

+11
-9
lines changed

.github/workflows/ci-preview.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ jobs:
113113
- name: Run playwright tests
114114
run: yarn e2e:ui
115115
env:
116-
BASE_URL: ${{ steps.vercel_preview_url.outputs.preview_url }}
116+
PLAYWRIGHT_TEST_BASE_URL: ${{ steps.vercel_preview_url.outputs.preview_url }}
117117

118118
github-deploy-comment:
119119
runs-on: ubuntu-latest

playwright.config.ts

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,16 @@ export default defineConfig({
1919
workers: process.env.CI ? 1 : undefined,
2020
reporter: "html",
2121
timeout: 30 * 1000,
22-
webServer: {
23-
command: "yarn dev",
24-
url: "http://localhost:3000",
25-
timeout: 60 * 1000,
26-
reuseExistingServer: true,
27-
stdout: "ignore",
28-
stderr: "pipe",
29-
},
22+
webServer: process.env.CI
23+
? undefined
24+
: {
25+
command: "yarn dev",
26+
url: "http://localhost:3000",
27+
timeout: 60 * 1000,
28+
reuseExistingServer: true,
29+
stdout: "ignore",
30+
stderr: "pipe",
31+
},
3032
projects: [
3133
{
3234
name: "chromium",

0 commit comments

Comments
 (0)