// @ts-check const { defineConfig, devices } = require('@playwright/test'); module.exports = defineConfig({ testDir: './tests/ui', globalSetup: './tests/global-setup.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']], });