mirror of
https://github.com/zadam/trilium.git
synced 2026-02-26 16:43:36 +01:00
e2e(server): fix flaky test
This commit is contained in:
parent
72c34eb491
commit
818ca2c2ab
@ -9,6 +9,8 @@ test("Can duplicate note with broken links", async ({ page, context }) => {
|
||||
|
||||
await app.noteTree.getByText("Note map").first().click({ button: "right" });
|
||||
await page.locator("#context-menu-container").getByText("Duplicate").click();
|
||||
await expect(page.locator(".toast-body")).toBeHidden();
|
||||
await expect(app.noteTree.getByText("Note map (dup)")).toBeVisible();
|
||||
await expect(page.locator(".toast-body", {
|
||||
hasText: `Note "Note map" has been`
|
||||
})).toBeHidden();
|
||||
await expect(app.noteTree.getByText("Note map (dup)").first()).toBeVisible();
|
||||
});
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user