platform/tests/sanity/tests/playwright.config.ts
Alex Velichko 61ecae6363
feat(tests): updated reports and prepare server step (#4659)
Signed-off-by: Alex Velichko <alex@hardcoreeng.com>
2024-02-16 13:36:14 +07:00

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