Skip to content

Commit

Permalink
feat(e2e): test note settings
Browse files Browse the repository at this point in the history
  • Loading branch information
eliandoran committed Jan 12, 2025
1 parent 8dbb549 commit 9b85a10
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion e2e/note_types/mermaid.spec.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { test, expect, Page } from "@playwright/test";
import App from "../support/app";

test("Displays simple map", async ({ page, context }) => {
test("displays simple map", async ({ page, context }) => {
const app = new App(page, context);
await app.goto();
await app.goToNoteInNewTab("Sample mindmap");
Expand All @@ -10,3 +10,13 @@ test("Displays simple map", async ({ page, context }) => {
expect(app.currentNoteSplit).toContainText("1");
expect(app.currentNoteSplit).toContainText("1a");
});

test("displays note settings", async ({ page, context }) => {
const app = new App(page, context);
await app.goto();
await app.goToNoteInNewTab("Sample mindmap");

await app.currentNoteSplit.getByText("Hello world").click({ force: true });
const nodeMenu = app.currentNoteSplit.locator(".node-menu");
expect(nodeMenu).toBeVisible();
});

0 comments on commit 9b85a10

Please sign in to comment.