Files
lexical/playwright.config.js
Acy Watson 62f14c0a0d Change timeout config (#1915)
* change timeout config

* update config

* fix prettier
2022-04-21 13:47:07 -07:00

36 lines
829 B
JavaScript

'use strict';
const {devices} = require('@playwright/test');
const {CI} = process.env;
const IS_CI = CI === 'true';
const config = {
forbidOnly: IS_CI,
projects: [
{
name: 'chromium',
testDir: './packages/lexical-playground/__tests__/',
use: {...devices['Desktop Chrome']},
},
{
name: 'firefox',
testDir: './packages/lexical-playground/__tests__/',
use: {...devices['Desktop Firefox']},
},
{
name: 'webkit',
testDir: './packages/lexical-playground/__tests__/',
use: {...devices['Desktop Safari']},
},
],
retries: IS_CI ? 4 : 1,
timeout: 150000,
use: {
navigationTimeout: 30000,
// this causes issues in the CI on on current version.
//trace: 'retain-on-failure',
video: 'on-first-retry',
},
};
module.exports = config;