* feat(scripts): add MOBILE_FIRST_MARKERS + _check_mobile_first check * feat(templates): fullstack mobile-first PWA manifest + mobile Playwright + axe * test(scripts): cover mobile-first markers, check, cookiecutter structure * fix(ci): reformat test_project_status.py string literals --------- Co-authored-by: opencode-agent <agent@opencode.local>
22 lines
No EOL
618 B
JavaScript
22 lines
No EOL
618 B
JavaScript
import { defineConfig, devices } from '@playwright/test';
|
|
|
|
export default defineConfig({
|
|
testDir: './tests/e2e',
|
|
fullyParallel: true,
|
|
forbidOnly: !!process.env.CI,
|
|
retries: process.env.CI ? 2 : 0,
|
|
reporter: 'html',
|
|
use: {
|
|
baseURL: 'http://localhost:4173',
|
|
trace: 'on-first-retry',
|
|
},
|
|
projects: [
|
|
{ name: 'chromium', use: { ...devices['Desktop Chrome'] } },
|
|
{ name: 'mobile-chrome', use: { ...devices['iPhone SE'], isMobile: true, hasTouch: true } },
|
|
],
|
|
webServer: {
|
|
command: 'npm run preview',
|
|
url: 'http://localhost:4173',
|
|
reuseExistingServer: !process.env.CI,
|
|
},
|
|
}); |