| 1234567891011121314151617181920212223242526272829303132 |
- import { defineConfig } from '@playwright/test';
- export default defineConfig({
- testDir: './integration-tests/tests',
- timeout: 30000,
- retries: 1,
- use: {
- baseURL: process.env.BRIDGE_BASE_ADDRESS ?? 'http://localhost:9000',
- viewport: { width: 1920, height: 1080 },
- screenshot: 'on',
- ignoreHTTPSErrors: true,
- video: 'retain-on-failure',
- trace: 'on',
- testIdAttribute: 'data-test',
- },
- projects: [
- { name: 'setup', testMatch: /auth\.setup\.ts/ },
- {
- name: 'chromium',
- use: {
- browserName: 'chromium',
- storageState: 'integration-tests/.auth/user.json',
- },
- dependencies: ['setup'],
- },
- ],
- reporter: [
- ['list'],
- ['html', { outputFolder: 'integration-tests/results/html', open: 'never' }],
- ['junit', { outputFile: 'integration-tests/results/junit-results.xml' }],
- ],
- });
|