24 lines
796 B
TypeScript
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'] } }],
|
||
|
|
});
|