From dcdcba633f8d1c718514b0469517e3c4c00251e9 Mon Sep 17 00:00:00 2001 From: Bryan Stopp Date: Thu, 12 Feb 2026 13:21:23 -0500 Subject: [PATCH 1/2] Fix playwright tests. --- test/e2e/tests/edit.spec.js | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/test/e2e/tests/edit.spec.js b/test/e2e/tests/edit.spec.js index cc8639f9..3945504f 100644 --- a/test/e2e/tests/edit.spec.js +++ b/test/e2e/tests/edit.spec.js @@ -130,13 +130,13 @@ test('Add code mark', async ({ page }, workerInfo) => { test.setTimeout(30000); const url = getTestPageURL('edit5', workerInfo); await page.goto(url); - await page.waitForTimeout(3000); const proseMirror = page.locator('div.ProseMirror'); await proseMirror.waitFor(); await expect(proseMirror).toBeVisible(); await expect(proseMirror).toHaveAttribute('contenteditable', 'true'); + console.log(await proseMirror.getAttribute('contenteditable')); await proseMirror.fill('This is a line that will contain a code mark.'); - await page.waitForTimeout(1000); + await expect(proseMirror).toContainText('This is a line that will contain a code mark.'); // Forward for (let i = 0; i < 10; i += 1) { @@ -148,7 +148,6 @@ test('Add code mark', async ({ page }, workerInfo) => { } await page.keyboard.press('`'); // leave time for the code mark to be processed - await page.waitForTimeout(1000); let codeElement = proseMirror.locator('code'); await codeElement.waitFor(); await expect(codeElement).toContainText('code'); @@ -164,7 +163,6 @@ test('Add code mark', async ({ page }, workerInfo) => { await page.keyboard.press('ArrowLeft'); } await page.keyboard.press('`'); - await page.waitForTimeout(1000); codeElement = proseMirror.locator('code'); await codeElement.waitFor(); await expect(codeElement).toContainText('code'); @@ -179,6 +177,5 @@ test('Add code mark', async ({ page }, workerInfo) => { await page.keyboard.press('ArrowRight'); } await page.keyboard.press('`'); - await page.waitForTimeout(1000); await expect(proseMirror).toContainText('This is a line that will contain `a code mark`.'); }); From 85ca00c052cd2559066d53a5af898320cffa77e8 Mon Sep 17 00:00:00 2001 From: Bryan Stopp Date: Thu, 12 Feb 2026 13:44:49 -0500 Subject: [PATCH 2/2] Remove console logging. --- test/e2e/tests/edit.spec.js | 1 - 1 file changed, 1 deletion(-) diff --git a/test/e2e/tests/edit.spec.js b/test/e2e/tests/edit.spec.js index 3945504f..6fb6cd39 100644 --- a/test/e2e/tests/edit.spec.js +++ b/test/e2e/tests/edit.spec.js @@ -134,7 +134,6 @@ test('Add code mark', async ({ page }, workerInfo) => { await proseMirror.waitFor(); await expect(proseMirror).toBeVisible(); await expect(proseMirror).toHaveAttribute('contenteditable', 'true'); - console.log(await proseMirror.getAttribute('contenteditable')); await proseMirror.fill('This is a line that will contain a code mark.'); await expect(proseMirror).toContainText('This is a line that will contain a code mark.');