Skip to content

Build your personal knowledge base with Trilium Notes

1.3 KB
Raw Blame
import test, { expect } from "@playwright/test";

import App from "./support/app";

test("Native Title Bar not displayed on web", async ({ page, context }) => {
    const app = new App(page, context);
    await app.goto({ url: "/#root/_hidden/_options/_optionsAppearance" });
    await expect(app.currentNoteSplitContent.getByRole("heading", { name: "User Interface" })).toBeVisible();
    await expect(app.currentNoteSplitContent.getByRole("heading", { name: "Native Title Bar (requires" })).toBeHidden();
});

test("Desktop settings not displayed on web", async ({ page, context }) => {
    const app = new App(page, context);
    await app.goto({ url: "/#root/_hidden/_options/_optionsDesktop" });
    await expect(app.currentNoteSplitContent.getByText("These options apply only for desktop builds")).toBeVisible();
    await expect(app.currentNoteSplitContent.getByRole("heading", { name: "System Tray" })).toBeHidden();
});

test("Spellcheck settings not displayed on web", async ({ page, context }) => {
    const app = new App(page, context);
    await app.goto({ url: "/#root/_hidden/_options/_optionsSpellcheck" });
    await expect(app.currentNoteSplitContent.getByText("These options apply only for desktop builds")).toBeVisible();
    await expect(app.currentNoteSplitContent.getByText("Check spelling")).toBeHidden();
});