| 1234567891011121314151617181920212223242526272829303132 |
- import { defineConfig, devices } from '@playwright/test';
- export default defineConfig({
- testDir: './e2e',
- fullyParallel: true,
- forbidOnly: !!process.env.CI,
- retries: process.env.CI ? 2 : 0,
- workers: process.env.CI ? 1 : undefined,
- reporter: 'html',
- use: {
- baseURL: 'http://localhost:5173',
- trace: 'on-first-retry',
- screenshot: 'only-on-failure',
- },
- projects: [
- {
- name: 'chromium',
- use: {
- ...devices['Desktop Chrome'],
- launchOptions: {
- executablePath: 'C:\\Users\\15818\\AppData\\Local\\chrome-win64\\chrome.exe',
- },
- },
- },
- ],
- webServer: {
- command: 'npx vite',
- url: 'http://localhost:5173',
- reuseExistingServer: !process.env.CI,
- timeout: 30000,
- },
- });
|