diff --git a/e2e/deployment-smoke.spec.ts b/e2e/deployment-smoke.spec.ts index 46d0fa31c..587aa072f 100644 --- a/e2e/deployment-smoke.spec.ts +++ b/e2e/deployment-smoke.spec.ts @@ -5,8 +5,7 @@ import { test, expect } from '@playwright/test' * through the nginx gateway on port 80. * * These tests require the full Docker stack to be running. - * They are skipped automatically when the gateway is unreachable - * (e.g. in CI without the stack, or in local dev without docker compose up). + * They are NOT run in CI (excluded via playwright.config.ts testIgnore). * * To run locally: * cd deployment && docker compose -f docker-compose.stack.yml up -d @@ -15,23 +14,6 @@ import { test, expect } from '@playwright/test' const GATEWAY = 'http://localhost' -let stackAvailable = false - -test.beforeAll(async ({ request }) => { - try { - const resp = await request.get(GATEWAY, { timeout: 5000 }) - stackAvailable = resp.ok() - } catch { - stackAvailable = false - } -}) - -test.beforeEach(async ({}, testInfo) => { - if (!stackAvailable) { - testInfo.skip() - } -}) - test.describe('Deployment Smoke Tests', () => { test.describe('Web Applications', () => { const apps = [ diff --git a/e2e/playwright.config.ts b/e2e/playwright.config.ts index 195e02569..dff89a791 100644 --- a/e2e/playwright.config.ts +++ b/e2e/playwright.config.ts @@ -15,6 +15,8 @@ const baseURL = process.env.PLAYWRIGHT_BASE_URL ?? 'http://localhost:3000/workfl export default defineConfig({ testDir: './', testMatch: '**/*.spec.ts', + // Smoke tests require the full Docker stack — exclude in CI + testIgnore: process.env.CI ? ['**/deployment-smoke.spec.ts'] : [], fullyParallel: true, forbidOnly: !!process.env.CI, retries: process.env.CI ? 2 : 0,