Skip to content

Commit 3767fe0

Browse files
eakmanrqclaude
andcommitted
Fix ui-test: bind preview to 127.0.0.1 and split test steps
The Playwright webServer was timing out because vite preview defaulted to binding on localhost which may resolve to IPv6 ::1 in the container, while Playwright checks 127.0.0.1:8005. Explicitly bind to 127.0.0.1 and split unit/e2e test steps for better isolation of the env var. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> Signed-off-by: eakmanrq <6326532+eakmanrq@users.noreply.github.com>
1 parent 5d8b8cc commit 3767fe0

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

.github/workflows/pr.yaml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -233,8 +233,10 @@ jobs:
233233
run: pnpm install
234234
- name: Build UI
235235
run: npm --prefix web/client run build
236-
- name: Run tests
237-
run: npm --prefix web/client run test
236+
- name: Run unit tests
237+
run: npm --prefix web/client run test:unit
238+
- name: Run e2e tests
239+
run: npm --prefix web/client run test:e2e
238240
env:
239241
PLAYWRIGHT_SKIP_BUILD: '1'
240242

web/client/vite.config.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,5 +68,6 @@ export default defineConfig({
6868
},
6969
preview: {
7070
port: 8005,
71+
host: '127.0.0.1',
7172
},
7273
})

0 commit comments

Comments
 (0)