mirror of
https://github.com/facebook/lexical.git
synced 2025-05-21 09:07:44 +08:00
32 lines
762 B
JavaScript
32 lines
762 B
JavaScript
'use strict';
|
|
const {devices} = require('@playwright/test');
|
|
|
|
const config = {
|
|
forbidOnly: !!process.env.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: process.env.CI ? 5 : 1,
|
|
timeout: 60000,
|
|
use: {
|
|
// this causes issues in the CI on on current version.
|
|
//trace: 'retain-on-failure',
|
|
video: 'on-first-retry',
|
|
},
|
|
};
|
|
module.exports = config;
|