diff --git a/demos/playground/src/__tests__/e2e/Composition.spec.mjs b/demos/playground/src/__tests__/e2e/Composition.spec.mjs index a48a7f8..6e72ccb 100644 --- a/demos/playground/src/__tests__/e2e/Composition.spec.mjs +++ b/demos/playground/src/__tests__/e2e/Composition.spec.mjs @@ -1256,9 +1256,10 @@ test.describe('Composition', () => { test.fixme( 'Floating toolbar should not be displayed when using IME', - async ({page, browserName, isPlainText}) => { + async ({page, browserName, isPlainText, isCollab}) => { // We don't yet support FF. test.skip(browserName !== 'chromium' || isPlainText); + test.fixme(isCollab); await focusEditor(page); await enableCompositionKeyEvents(page); diff --git a/demos/playground/src/__tests__/e2e/HorizontalRule.spec.mjs b/demos/playground/src/__tests__/e2e/HorizontalRule.spec.mjs index 5ef6094..74bf076 100644 --- a/demos/playground/src/__tests__/e2e/HorizontalRule.spec.mjs +++ b/demos/playground/src/__tests__/e2e/HorizontalRule.spec.mjs @@ -33,6 +33,7 @@ test.describe('HorizontalRule', () => { isPlainText, browserName, }) => { + test.fixme(isCollab); test.skip(isPlainText); await focusEditor(page); @@ -265,8 +266,13 @@ test.describe('HorizontalRule', () => { }); }); - test('Can copy and paste a horizontal rule', async ({page, isPlainText}) => { + test('Can copy and paste a horizontal rule', async ({ + page, + isPlainText, + isCollab, + }) => { test.skip(isPlainText); + test.fixme(isCollab); await focusEditor(page); diff --git a/demos/playground/src/__tests__/e2e/Links.spec.mjs b/demos/playground/src/__tests__/e2e/Links.spec.mjs index 22e633f..ea87cfd 100644 --- a/demos/playground/src/__tests__/e2e/Links.spec.mjs +++ b/demos/playground/src/__tests__/e2e/Links.spec.mjs @@ -1113,7 +1113,9 @@ test.describe('Links', () => { test(`Can convert multi-formatted text into a link and then modify text after`, async ({ page, + isCollab, }) => { + test.fixme(isCollab); await focusEditor(page); await page.keyboard.type(' abc'); @@ -1607,7 +1609,9 @@ test.describe('Links', () => { test(`Can convert part of a text node into a link with forwards selection`, async ({ page, browserName, + isCollab, }) => { + test.fixme(isCollab); await focusEditor(page); await page.keyboard.type('Hello world'); @@ -1714,7 +1718,9 @@ test.describe('Links', () => { test(`Can convert part of a text node into a link with backwards selection`, async ({ page, browserName, + isCollab, }) => { + test.fixme(isCollab); await focusEditor(page); await page.keyboard.type('Hello world'); diff --git a/demos/playground/src/__tests__/e2e/List.spec.mjs b/demos/playground/src/__tests__/e2e/List.spec.mjs index 7978fb6..134dc57 100644 --- a/demos/playground/src/__tests__/e2e/List.spec.mjs +++ b/demos/playground/src/__tests__/e2e/List.spec.mjs @@ -1169,7 +1169,9 @@ test.describe('Nested List', () => { test('Can create check list, toggle it to bullet-list and back', async ({ page, + isCollab, }) => { + test.fixme(isCollab); await focusEditor(page); await toggleCheckList(page); await page.keyboard.type('a'); @@ -1308,6 +1310,7 @@ test.describe('Nested List', () => { page, isCollab, }) => { + test.fixme(isCollab); await focusEditor(page); await toggleCheckList(page); // diff --git a/demos/playground/src/__tests__/e2e/Placeholder.spec.mjs b/demos/playground/src/__tests__/e2e/Placeholder.spec.mjs index 3df7624..90e1875 100644 --- a/demos/playground/src/__tests__/e2e/Placeholder.spec.mjs +++ b/demos/playground/src/__tests__/e2e/Placeholder.spec.mjs @@ -24,6 +24,7 @@ test.describe('Placeholder', () => { isRichText, isCollab, }) => { + test.fixme(isCollab); await focusEditor(page); const content = await textContent(page, '.Placeholder__root'); if (isCollab) { diff --git a/demos/playground/src/__tests__/e2e/TextEntry.spec.mjs b/demos/playground/src/__tests__/e2e/TextEntry.spec.mjs index 2b39fb8..ef52607 100644 --- a/demos/playground/src/__tests__/e2e/TextEntry.spec.mjs +++ b/demos/playground/src/__tests__/e2e/TextEntry.spec.mjs @@ -631,7 +631,9 @@ test.describe('TextEntry', () => { test('Empty paragraph and new line node selection', async ({ isRichText, page, + isCollab, }) => { + test.fixme(isCollab); await focusEditor(page); // Add paragraph diff --git a/demos/playground/src/__tests__/regression/5583-select-list-followed-by-element-node.spec.mjs b/demos/playground/src/__tests__/regression/5583-select-list-followed-by-element-node.spec.mjs index 3ccc3bf..c649439 100644 --- a/demos/playground/src/__tests__/regression/5583-select-list-followed-by-element-node.spec.mjs +++ b/demos/playground/src/__tests__/regression/5583-select-list-followed-by-element-node.spec.mjs @@ -27,7 +27,9 @@ test.describe('Regression test #5251', () => { test(`Element node in the middle of a bullet list and selecting doesn't crash`, async ({ page, isPlainText, + isCollab, }) => { + test.fixme(isCollab); test.skip(isPlainText); await focusEditor(page); diff --git a/demos/playground/src/__tests__/utils/index.mjs b/demos/playground/src/__tests__/utils/index.mjs index 2c3d26f..ac91a04 100644 --- a/demos/playground/src/__tests__/utils/index.mjs +++ b/demos/playground/src/__tests__/utils/index.mjs @@ -100,19 +100,19 @@ export async function initialize({ * @param {import('@playwright/test').Page} page */ async function exposeLexicalEditor(page) { - if (IS_COLLAB) { - await Promise.all( - ['left', 'right'].map(async (name) => { - const frameLocator = page.frameLocator(`[name="${name}"]`); - await expect( - frameLocator.locator('.action-button.connect'), - ).toHaveAttribute('title', /Disconnect/); - await expect( - frameLocator.locator('[data-lexical-editor="true"] p'), - ).toBeVisible(); - }), - ); - } + // if (IS_COLLAB) { + // await Promise.all( + // ['left', 'right'].map(async (name) => { + // const frameLocator = page.frameLocator(`[name="${name}"]`); + // await expect( + // frameLocator.locator('.action-button.connect'), + // ).toHaveAttribute('title', /Disconnect/); + // await expect( + // frameLocator.locator('[data-lexical-editor="true"] p'), + // ).toBeVisible(); + // }), + // ); + //} const leftFrame = getPageOrFrame(page); await leftFrame.waitForSelector('.tree-view-output pre'); await leftFrame.evaluate(() => {