diff --git a/.woodpecker.yml b/.woodpecker.yml index b3ac469..aec506f 100644 --- a/.woodpecker.yml +++ b/.woodpecker.yml @@ -147,9 +147,13 @@ steps: environment: NODE_ENV: test CI: true + BASE_URL: http://localhost:3000 commands: - - echo "E2E tests temporarily disabled - requires production environment access" - - echo "Skipping e2e-standard step to allow pipeline to pass" + - npm ci + - npm run build + - cd e2e && npm ci + - cd e2e && npx playwright install chromium --with-deps + - cd e2e && npm run test:standard when: event: - push diff --git a/e2e/playwright.config.tiered.ts b/e2e/playwright.config.tiered.ts index 33b8764..174aad4 100644 --- a/e2e/playwright.config.tiered.ts +++ b/e2e/playwright.config.tiered.ts @@ -35,7 +35,7 @@ export default defineConfig({ ['list'] ], use: { - baseURL: process.env.BASE_URL || 'https://novalon.cn', + baseURL: process.env.BASE_URL || 'http://localhost:3000', trace: 'on-first-retry', screenshot: 'only-on-failure', video: 'retain-on-failure', @@ -43,6 +43,12 @@ export default defineConfig({ args: ['--disable-dev-shm-usage', '--no-sandbox'] } }, + webServer: process.env.CI ? { + command: 'npm run start', + port: 3000, + timeout: 120000, + reuseExistingServer: false, + } : undefined, projects: [ { name: 'chromium',