import { test, expect } from "@playwright/test"; import { resetData, resolvePath } from "./helpers"; test("dashboard does not display 'transcripts dir' or the actual path", async ({ page, }) => { await resetData("empty"); const abs = resolvePath("test-transcripts"); await page.goto("/"); const body = page.locator("body"); await expect(body).not.toContainText("transcripts dir"); await expect(body).not.toContainText("Transcripts dir"); await expect(body).not.toContainText(abs); }); test("settings hides system paths under a closed details, reveals on click", async ({ page, }) => { await resetData("empty"); await page.goto("/settings"); const details = page .locator("details") .filter({ has: page.getByText("System paths") }); await expect(details).not.toHaveAttribute("open", /.*/); await expect(page.getByText("transcriptsDir")).not.toBeVisible(); await page.locator("summary").filter({ hasText: "System paths" }).click(); await expect(details).toHaveAttribute("open", /.*/); await expect(page.getByText("transcriptsDir")).toBeVisible(); });