1
0
mirror of https://github.com/ianstormtaylor/slate.git synced 2025-08-13 10:44:02 +02:00

Switch from cypress to playwright. (#5248)

* empty

* empty

* empty

* Begin move from cypress to playwright.

* Switch remaining tests to playwright, remove old cypress suppport files.

* Clean up playwright config

* Enable ff, and safari when on mac.

* Fix safari/ff mentions test

* Fix code-highlighting test on ff/safari

* Add a local retry as a few tests are flaky.

* Replace cypress w/ playwright in gitignore.

* Update to latest yarn to fix ci install?

* Update yarn.lock w/ yarn command.

* Fix mocha tests.

* Fix prettier
This commit is contained in:
Gary Borton
2023-01-13 19:36:04 -08:00
committed by GitHub
parent cb133a785f
commit 5dc4396f6b
53 changed files with 787 additions and 1058 deletions

View File

@@ -19,7 +19,7 @@ describe('slate-react', () => {
describe('Editable', () => {
describe('NODE_TO_KEY logic', () => {
it('should not unmount the node that gets split on a split_node operation', async () => {
test('should not unmount the node that gets split on a split_node operation', async () => {
const editor = withReact(createEditor())
const value = [{ type: 'block', children: [{ text: 'test' }] }]
const mounts = jest.fn<void, [Element]>()
@@ -50,7 +50,7 @@ describe('slate-react', () => {
expect(mounts).toHaveBeenCalledTimes(2)
})
it('should not unmount the node that gets merged into on a merge_node operation', async () => {
test('should not unmount the node that gets merged into on a merge_node operation', async () => {
const editor = withReact(createEditor())
const value = [
{ type: 'block', children: [{ text: 'te' }] },