a50e7f5386
25 tests across auth (A1-A5), posting (P1-P5), validation (V1-V4), tracker (T1-T5), and nav (N1-N5). Uses storageState for single login per run. Replaces post-with-photo.spec.js with post.spec.js. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
28 lines
724 B
JavaScript
28 lines
724 B
JavaScript
// @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']],
|
|
});
|