import { defineConfig } from '@playwright/test';

export default defineConfig({
  testDir: 'e2e',
  timeout: 90_000,
  use: {
    viewport: { width: 390, height: 844 },
    hasTouch: true,
    baseURL: 'http://localhost:4189',
    launchOptions: {
      args: ['--enable-unsafe-swiftshader', '--mute-audio'],
    },
  },
  webServer: {
    command: 'npm run preview',
    port: 4189,
    reuseExistingServer: true,
    timeout: 30_000,
  },
});
