1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677 |
- import type { PlaywrightTestConfig } from '@playwright/test';
- import { devices } from '@playwright/test';
- const config: PlaywrightTestConfig = {
- testDir: './tests/integration',
-
- timeout: 30 * 1000,
- expect: {
-
- timeout: 5000,
- },
-
- forbidOnly: !!process.env.CI,
-
- retries: process.env.CI ? 2 : 0,
-
- workers: process.env.CI ? 1 : undefined,
-
- reporter: 'html',
-
- use: {
-
- actionTimeout: 0,
-
- baseURL: process.env.PLAYWRIGHT_TEST_BASE_URL || 'http://localhost:3000',
-
- trace: 'on-first-retry',
- },
-
- projects: [
- {
- name: 'chromium',
- use: {
- ...devices['Desktop Chrome'],
- },
- },
- {
- name: 'firefox',
- use: {
- ...devices['Desktop Firefox'],
- },
- },
- {
- name: 'webkit',
- use: {
- ...devices['Desktop Safari'],
- },
- },
-
- {
- name: 'Mobile Chrome',
- use: {
- ...devices['Pixel 5'],
- },
- },
- {
- name: 'Mobile Safari',
- use: {
- ...devices['iPhone 12'],
- },
- },
- ],
- };
- export default config;
|