2022-05-06 22:02:07 +03:00
|
|
|
import { type PlaywrightTestConfig, devices } from '@playwright/experimental-ct-vue';
|
2022-03-16 00:47:42 +03:00
|
|
|
|
|
|
|
const config: PlaywrightTestConfig = {
|
|
|
|
testDir: 'src',
|
|
|
|
forbidOnly: !!process.env.CI,
|
|
|
|
retries: process.env.CI ? 2 : 0,
|
2022-05-04 00:25:56 +03:00
|
|
|
reporter: 'html',
|
2022-03-16 00:47:42 +03:00
|
|
|
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;
|