Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions e2e/beta/specs/apps/content-edit-comment.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +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).toHaveAttribute("contenteditable", "true", {
timeout: 60_000,
});
await expect(editor).toContainText(originalBody, { timeout: 60_000 });
await editor.fill(editedBody);
await expect
Expand All @@ -91,7 +94,11 @@ 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();
Expand Down
Loading