mirror of
https://github.com/hcengineering/platform.git
synced 2025-05-09 17:05:01 +00:00
40 lines
695 B
TypeScript
40 lines
695 B
TypeScript
import { devices, PlaywrightTestConfig } from '@playwright/test'
|
|
import { config as dotenvConfig } from 'dotenv'
|
|
dotenvConfig()
|
|
|
|
const config: PlaywrightTestConfig = {
|
|
projects: [
|
|
{
|
|
name: 'Platform',
|
|
use: { ...devices['Desktop Chrome'] }
|
|
}
|
|
],
|
|
use: {
|
|
screenshot: 'only-on-failure',
|
|
trace: {
|
|
mode: 'retain-on-failure',
|
|
snapshots: true,
|
|
screenshots: true,
|
|
sources: true
|
|
}
|
|
},
|
|
retries: 1,
|
|
timeout: 60000,
|
|
maxFailures: 5,
|
|
expect: {
|
|
timeout: 15000
|
|
},
|
|
reporter: [
|
|
['list'],
|
|
['html'],
|
|
[
|
|
'allure-playwright',
|
|
{
|
|
detail: true,
|
|
suiteTitle: false
|
|
}
|
|
]
|
|
]
|
|
}
|
|
export default config
|