Files
mobiniqow 212074c5f5
CI / Backend (lint, types, tests) (push) Has been cancelled
CI / Frontend (lint, types, build) (push) Has been cancelled
CI / Docker images build (push) Has been cancelled
start project
2026-09-04 12:52:21 +03:30

24 lines
796 B
TypeScript

import { defineConfig, devices } from '@playwright/test';
/**
* Runs against the already-running docker compose stack (`make up` /
* `make dev`), not a spawned dev server: the search results these tests
* assert on come from the real Postgres/Elasticsearch-backed API, which is
* the whole point of an end-to-end test - a mocked backend would not have
* caught the facet bug this suite guards against.
*
* npm run test:e2e
*/
export default defineConfig({
testDir: './e2e',
fullyParallel: false,
retries: process.env.CI ? 1 : 0,
reporter: [['list']],
use: {
baseURL: process.env.E2E_BASE_URL ?? 'http://localhost:8080',
trace: 'retain-on-failure',
screenshot: 'only-on-failure',
},
projects: [{ name: 'chromium', use: { ...devices['Desktop Chrome'] } }],
});