29 lines
774 B
JavaScript
29 lines
774 B
JavaScript
// @ts-check
|
|
const { defineConfig, devices } = require('@playwright/test');
|
|
|
|
module.exports = defineConfig({
|
|
testDir: './tests/ui',
|
|
globalSetup: './tests/global-setup.js',
|
|
globalTeardown: './tests/global-teardown.js',
|
|
timeout: 30_000,
|
|
retries: 0,
|
|
projects: [
|
|
{ name: 'setup', testMatch: /auth\.setup\.js/ },
|
|
{
|
|
name: 'chromium',
|
|
use: {
|
|
...devices['Desktop Chrome'],
|
|
storageState: 'tests/.auth/user.json',
|
|
},
|
|
dependencies: ['setup'],
|
|
},
|
|
],
|
|
use: {
|
|
baseURL: process.env.GRAV_BASE_URL || 'http://localhost:8081',
|
|
headless: true,
|
|
screenshot: 'only-on-failure',
|
|
video: 'off',
|
|
},
|
|
reporter: [['line']],
|
|
});
|