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:
Acy Watson
2022-03-18 19:00:44 -07:00
committed by acywatson
parent e3ee9a66c4
commit e7ff8f49d4
50 changed files with 5862 additions and 2884 deletions

30
playwright.config.js Normal file
View 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;