mirror of
https://github.com/zadam/trilium.git
synced 2026-03-10 06:00:23 +01:00
17 lines
660 B
TypeScript
17 lines
660 B
TypeScript
import { test, expect } from "@playwright/test";
|
|
import App from "./support/app";
|
|
|
|
test("Can duplicate note with broken links", async ({ page, context }) => {
|
|
const app = new App(page, context);
|
|
await app.goto({
|
|
url: "http://localhost:8082/#root/Q5abPvymDH6C/2VammGGdG6Ie"
|
|
});
|
|
|
|
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", {
|
|
hasText: `Note "Note map" has been`
|
|
})).toBeHidden();
|
|
await expect(app.noteTree.getByText("Note map (dup)").first()).toBeVisible();
|
|
});
|