From 9b85a101a6a2afb59b30933bc06cfc016a3961ae Mon Sep 17 00:00:00 2001 From: Elian Doran Date: Sun, 12 Jan 2025 19:43:29 +0200 Subject: [PATCH] feat(e2e): test note settings --- e2e/note_types/mermaid.spec.ts | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/e2e/note_types/mermaid.spec.ts b/e2e/note_types/mermaid.spec.ts index 0ead19df8..23f43399e 100644 --- a/e2e/note_types/mermaid.spec.ts +++ b/e2e/note_types/mermaid.spec.ts @@ -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"); @@ -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(); +});