feat(e2e): test going back to share root

This commit is contained in:
Elian Doran 2025-01-17 23:21:12 +02:00
parent fd2779383d
commit 47335062a4
No known key found for this signature in database

View File

@ -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/");
});