]> git.openstreetmap.org Git - nominatim-ui.git/blob - playwright.config.js
Rebundle latest version
[nominatim-ui.git] / playwright.config.js
1 import { defineConfig } from '@playwright/test';
2
3 const testing_port = 9999;
4
5 export default defineConfig({
6   testDir: './test',
7   testMatch: '**/*.spec.js',
8   timeout: 10_000,
9   globalSetup: './test/global-setup.js',
10   globalTeardown: './test/global-teardown.js',
11   reporter: 'list',
12
13   use: {
14     baseURL: `http://localhost:${testing_port}`,
15     viewport: { width: 1024, height: 768 },
16     userAgent:
17       'Nominatim UI test suite Mozilla/5.0 Gecko/20100101 HeadlessChrome/90.0',
18     bypassCSP: true,
19     launchOptions: {
20       args: ['--disable-web-security'],
21     },
22     headless: true,
23   },
24
25   projects: [
26     {
27       name: 'chromium',
28       use: { browserName: 'chromium' },
29     },
30   ],
31
32   fullyParallel: false,
33   workers: 1,
34 });