From f8b4f46dc018b0f119e3b3c3df8f9220d001fabf Mon Sep 17 00:00:00 2001 From: Steve Sewell Date: Wed, 30 Sep 2026 10:39:11 -0700 Subject: [PATCH 1/3] test: wait for Content collaboration before comment E2E --- e2e/beta/specs/apps/content-edit-comment.spec.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/e2e/beta/specs/apps/content-edit-comment.spec.ts b/e2e/beta/specs/apps/content-edit-comment.spec.ts index f552c2fca9b..13b0a315542 100644 --- a/e2e/beta/specs/apps/content-edit-comment.spec.ts +++ b/e2e/beta/specs/apps/content-edit-comment.spec.ts @@ -92,6 +92,7 @@ test("Content beta saves a page edit and comment", async ({ browser }) => { ) .toContain(editedBody); await page.reload({ waitUntil: "domcontentloaded", timeout: 45_000 }); + await expect(editor).toBeEditable({ timeout: 60_000 }); await expect(editor).toContainText(editedBody, { timeout: 60_000 }); await editor.selectText(); From 7c2079da996e4a4008682782ebc8b6a6a4f9accf Mon Sep 17 00:00:00 2001 From: Steve Sewell Date: Wed, 30 Sep 2026 10:56:52 -0700 Subject: [PATCH 2/3] test: stabilize Content Beta edit and comment journey --- e2e/beta/specs/apps/content-edit-comment.spec.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/e2e/beta/specs/apps/content-edit-comment.spec.ts b/e2e/beta/specs/apps/content-edit-comment.spec.ts index 13b0a315542..110ff383f67 100644 --- a/e2e/beta/specs/apps/content-edit-comment.spec.ts +++ b/e2e/beta/specs/apps/content-edit-comment.spec.ts @@ -80,6 +80,7 @@ test("Content beta saves a page edit and comment", async ({ browser }) => { timeout: 45_000, }); const editor = page.locator(".notion-editor.ProseMirror"); + await expect(editor).toBeEditable({ timeout: 60_000 }); await expect(editor).toContainText(originalBody, { timeout: 60_000 }); await editor.fill(editedBody); await expect @@ -91,10 +92,6 @@ test("Content beta saves a page edit and comment", async ({ browser }) => { { timeout: 60_000 }, ) .toContain(editedBody); - await page.reload({ waitUntil: "domcontentloaded", timeout: 45_000 }); - await expect(editor).toBeEditable({ timeout: 60_000 }); - await expect(editor).toContainText(editedBody, { timeout: 60_000 }); - await editor.selectText(); await page.getByRole("button", { name: "Comment", exact: true }).click(); const pendingComment = page.locator("[data-comment-pending]"); @@ -108,6 +105,9 @@ test("Content beta saves a page edit and comment", async ({ browser }) => { await pendingComment.locator("button[data-comment-send]").click(); expect((await savedComment).ok()).toBe(true); + await page.reload({ waitUntil: "domcontentloaded", timeout: 45_000 }); + await expect(editor).toContainText(editedBody, { timeout: 60_000 }); + const comments = ( await readAction(page, origin, "list-comments", { documentId: id, From dce0c42d72504a988aa3151e88edbfcacc90554e Mon Sep 17 00:00:00 2001 From: Steve Sewell Date: Wed, 30 Sep 2026 11:04:49 -0700 Subject: [PATCH 3/3] test: verify Content comment save after reload --- e2e/beta/specs/apps/content-edit-comment.spec.ts | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/e2e/beta/specs/apps/content-edit-comment.spec.ts b/e2e/beta/specs/apps/content-edit-comment.spec.ts index 110ff383f67..751b88f36ae 100644 --- a/e2e/beta/specs/apps/content-edit-comment.spec.ts +++ b/e2e/beta/specs/apps/content-edit-comment.spec.ts @@ -80,7 +80,9 @@ test("Content beta saves a page edit and comment", async ({ browser }) => { timeout: 45_000, }); const editor = page.locator(".notion-editor.ProseMirror"); - await expect(editor).toBeEditable({ timeout: 60_000 }); + await expect(editor).toHaveAttribute("contenteditable", "true", { + timeout: 60_000, + }); await expect(editor).toContainText(originalBody, { timeout: 60_000 }); await editor.fill(editedBody); await expect @@ -92,6 +94,13 @@ test("Content beta saves a page edit and comment", async ({ browser }) => { { timeout: 60_000 }, ) .toContain(editedBody); + + await page.reload({ waitUntil: "domcontentloaded", timeout: 45_000 }); + await expect(editor).toHaveAttribute("contenteditable", "true", { + timeout: 60_000, + }); + await expect(editor).toContainText(editedBody, { timeout: 60_000 }); + await editor.selectText(); await page.getByRole("button", { name: "Comment", exact: true }).click(); const pendingComment = page.locator("[data-comment-pending]"); @@ -105,9 +114,6 @@ test("Content beta saves a page edit and comment", async ({ browser }) => { await pendingComment.locator("button[data-comment-send]").click(); expect((await savedComment).ok()).toBe(true); - await page.reload({ waitUntil: "domcontentloaded", timeout: 45_000 }); - await expect(editor).toContainText(editedBody, { timeout: 60_000 }); - const comments = ( await readAction(page, origin, "list-comments", { documentId: id,