Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com> git-subtree-dir: maquina-comercial-pessoal git-subtree-mainline:f5af038e19git-subtree-split:a9ef4d776d
38 lines
881 B
JavaScript
38 lines
881 B
JavaScript
import { defineConfig } from '@playwright/test';
|
|
|
|
export default defineConfig({
|
|
testDir: './tests/browser',
|
|
testMatch: '*.spec.mjs',
|
|
timeout: 60000,
|
|
expect: { timeout: 15000 },
|
|
fullyParallel: false,
|
|
retries: process.env.CI ? 2 : 0,
|
|
workers: 1,
|
|
reporter: process.env.CI ? 'github' : 'list',
|
|
|
|
use: {
|
|
baseURL: 'http://127.0.0.1:3911',
|
|
trace: 'on-first-retry',
|
|
screenshot: 'only-on-failure',
|
|
},
|
|
|
|
projects: [
|
|
{
|
|
name: 'desktop',
|
|
use: {
|
|
viewport: { width: 1440, height: 900 },
|
|
browserName: 'chromium',
|
|
launchOptions: { args: ['--no-sandbox', '--disable-setuid-sandbox'] },
|
|
},
|
|
},
|
|
{
|
|
name: 'mobile',
|
|
use: {
|
|
viewport: { width: 390, height: 844 },
|
|
browserName: 'chromium',
|
|
launchOptions: { args: ['--no-sandbox', '--disable-setuid-sandbox'] },
|
|
},
|
|
},
|
|
],
|
|
});
|