🐛 Fix problem opening url when page-id didn't exist (#5833)

Co-authored-by: Andrey Antukh <niwi@niwi.nz>
This commit is contained in:
Alonso Torres
2025-02-12 14:36:05 +01:00
committed by GitHub
parent ceb90cd9e0
commit 8fe1271690
3 changed files with 18 additions and 4 deletions

View File

@@ -15,6 +15,17 @@ test("User loads worskpace with empty file", async ({ page }) => {
await expect(workspacePage.pageName).toHaveText("Page 1");
});
test("User opens a file with a bad page id", async ({ page }) => {
const workspacePage = new WorkspacePage(page);
await workspacePage.setupEmptyFile(page);
await workspacePage.goToWorkspace({
pageId: "badpage",
});
await expect(workspacePage.pageName).toHaveText("Page 1");
});
test("User receives presence notifications updates in the workspace", async ({
page,
}) => {