diff --git a/.github/workflows/main-docker.yml b/.github/workflows/main-docker.yml index f5e7f6a9a..f752fadef 100644 --- a/.github/workflows/main-docker.yml +++ b/.github/workflows/main-docker.yml @@ -82,7 +82,7 @@ jobs: require-healthy: true - name: Run Playwright tests - run: TRILIUM_DOCKER=1 npx playwright test + run: TRILIUM_DOCKER=1 TRILIUM_PORT=8082 npx playwright test - uses: actions/upload-artifact@v4 if: ${{ !cancelled() }} with: diff --git a/apps/server-e2e/playwright.config.ts b/apps/server-e2e/playwright.config.ts index 47a21bf81..43abab319 100644 --- a/apps/server-e2e/playwright.config.ts +++ b/apps/server-e2e/playwright.config.ts @@ -22,12 +22,12 @@ export default defineConfig({ trace: 'on-first-retry', }, /* Run your local dev server before starting the tests */ - webServer: { + webServer: !process.env.TRILIUM_DOCKER ? { command: 'pnpm server:start-prod', url: baseURL, reuseExistingServer: !process.env.CI, cwd: workspaceRoot - }, + } : undefined, projects: [ { name: "chromium",