mirror of
https://github.com/microsoft/playwright.git
synced 2024-12-19 17:21:46 +03:00
33 lines
659 B
TypeScript
33 lines
659 B
TypeScript
import { type PlaywrightTestConfig, devices } from '@playwright/test';
|
|
import ct from '@playwright/experimental-ct-vue';
|
|
|
|
const config: PlaywrightTestConfig = {
|
|
testDir: 'src',
|
|
forbidOnly: !!process.env.CI,
|
|
retries: process.env.CI ? 2 : 0,
|
|
reporter: 'html',
|
|
plugins: [ct()],
|
|
use: {
|
|
trace: 'on-first-retry',
|
|
},
|
|
projects: [
|
|
{
|
|
name: 'chromium',
|
|
use: {
|
|
channel: 'chrome',
|
|
...devices['Desktop Chrome']
|
|
},
|
|
},
|
|
{
|
|
name: 'firefox',
|
|
use: { ...devices['Desktop Firefox'] },
|
|
},
|
|
{
|
|
name: 'webkit',
|
|
use: { ...devices['Desktop Safari'] },
|
|
},
|
|
],
|
|
};
|
|
|
|
export default config;
|