From 47335062a48b5bd1a60279327884db4e73de115d Mon Sep 17 00:00:00 2001 From: Elian Doran Date: Fri, 17 Jan 2025 23:21:12 +0200 Subject: [PATCH] feat(e2e): test going back to share root --- e2e/shared_notes.spec.ts | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/e2e/shared_notes.spec.ts b/e2e/shared_notes.spec.ts index a3ca3e0e8..106564474 100644 --- a/e2e/shared_notes.spec.ts +++ b/e2e/shared_notes.spec.ts @@ -8,3 +8,11 @@ test("Goes to share root", async ({ page, context }) => { await expect(page).toHaveTitle(noteTitle); await expect(page.locator("h1")).toHaveText(noteTitle); }); + +test("Goes to parent share root page", async ({ page, context }) => { + const app = new App(page, context); + await app.goto({ url: "/share/bKMn5EFv9KS2" }); + await expect(page.locator("h1")).toHaveText("Child note"); + await page.locator("#parentLink a").click(); + await page.waitForURL("/share/"); +});