harb/playwright.config.ts
johba 4277f19b68 feature/ci (#84)
Co-authored-by: openhands <openhands@all-hands.dev>
Reviewed-on: https://codeberg.org/johba/harb/pulls/84
2026-02-02 19:24:57 +01:00

23 lines
654 B
TypeScript

import { defineConfig } from '@playwright/test';
export default defineConfig({
testDir: './tests/e2e',
testMatch: '**/*.spec.ts',
fullyParallel: false,
timeout: 5 * 60 * 1000,
expect: {
timeout: 30_000,
},
retries: process.env.CI ? 1 : 0,
use: {
headless: true,
viewport: { width: 1280, height: 720 },
// Set screen dimensions to match viewport - required for proper isMobile detection
// The webapp uses screen.width (not window.innerWidth) to detect mobile
screen: { width: 1280, height: 720 },
actionTimeout: 0,
launchOptions: {
args: ['--disable-dev-shm-usage', '--no-sandbox'],
},
},
});