30 lines
826 B
TypeScript
30 lines
826 B
TypeScript
import { defineConfig, devices } from '@playwright/test';
|
|
|
|
const baseURL = 'http://127.0.0.1:8080';
|
|
|
|
export default defineConfig({
|
|
testDir: './e2e',
|
|
fullyParallel: false,
|
|
workers: 1,
|
|
forbidOnly: !!process.env.CI,
|
|
retries: 0,
|
|
reporter: 'list',
|
|
use: {
|
|
baseURL,
|
|
trace: 'on-first-retry',
|
|
},
|
|
projects: [
|
|
{ name: 'api', testMatch: /api\/.*\.spec\.ts/ },
|
|
{ name: 'website', testMatch: /website\/.*\.spec\.ts/, use: { ...devices['Desktop Chrome'] } },
|
|
],
|
|
globalSetup: './e2e/global-setup.js',
|
|
webServer: {
|
|
command: 'php -S 127.0.0.1:8080 dev-router.php',
|
|
url: baseURL + '/website/',
|
|
reuseExistingServer: !process.env.CI,
|
|
env: {
|
|
QDB_MASTER_KEY: 'dGVzdC1tYXN0ZXIta2V5LXRoaXQtMzJieXRzIQ==',
|
|
},
|
|
},
|
|
});
|