mirror of
https://github.com/facebook/lexical.git
synced 2025-08-06 08:30:33 +08:00
Rewrite test harness (#1487)
* switch to playwright/test * update package-lock * wip * fix composition * fix history * fix tables * fix character limit * fix File and Selection tests * update npm scripts * fix plain text tests * fix Keywords plain text * skip selection test * fix collab bug * wait for iframe * fix package-lock * fix rebase issue * fix initialization * fix char overflow * fix video uploads and other cleanup * forbid only * fix forbid only * disable tracing * add comment * fix regression tests * address comments
This commit is contained in:
30
playwright.config.js
Normal file
30
playwright.config.js
Normal file
@ -0,0 +1,30 @@
|
||||
'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: 5,
|
||||
use: {
|
||||
// this causes issues in the CI on on current version.
|
||||
//trace: 'retain-on-failure',
|
||||
video: 'on-first-retry',
|
||||
},
|
||||
};
|
||||
module.exports = config;
|
Reference in New Issue
Block a user