mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-09-29 16:41:31 +08:00
feat(e2e): test note settings
This commit is contained in:
parent
8dbb5497f1
commit
9b85a101a6
@ -1,7 +1,7 @@
|
|||||||
import { test, expect, Page } from "@playwright/test";
|
import { test, expect, Page } from "@playwright/test";
|
||||||
import App from "../support/app";
|
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);
|
const app = new App(page, context);
|
||||||
await app.goto();
|
await app.goto();
|
||||||
await app.goToNoteInNewTab("Sample mindmap");
|
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("1");
|
||||||
expect(app.currentNoteSplit).toContainText("1a");
|
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();
|
||||||
|
});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user