Skip to content

Commit ce52737

Browse files
hadrien-tomaclaude
andcommitted
fix: CI test failures - build for local testing
Fixed the root cause of CI test failures: - Test workflow now builds with GITHUB_ACTIONS=false for local baseUrl - Removed CI-specific baseURL from Playwright config - docusaurus serve always serves at root, regardless of build baseUrl - Tests now work correctly in both local and CI environments All 69 tests now pass (100%) in CI simulation. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Sonnet 4.5 <[email protected]>
1 parent f5031d1 commit ce52737

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

.github/workflows/test.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,8 @@ jobs:
3131
run: npx playwright install --with-deps
3232

3333
- name: Build Docusaurus
34+
env:
35+
GITHUB_ACTIONS: false
3436
run: npm run build
3537

3638
- name: Run Playwright tests

playwright.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ export default defineConfig({
2929
/* Shared settings for all the projects below */
3030
use: {
3131
/* Base URL to use in actions like `await page.goto('/')` */
32-
baseURL: process.env.CI ? 'http://localhost:3000/docusaurus' : 'http://localhost:3000',
32+
baseURL: 'http://localhost:3000',
3333

3434
/* Collect trace when retrying the failed test */
3535
trace: 'on-first-retry',

0 commit comments

Comments
 (0)