mirror of
https://github.com/DayuanJiang/next-ai-draw-io.git
synced 2026-09-01 17:10:24 +08:00
The Lint & Unit Tests PR status check is failing at the "Run lint" step over a half-dozen issues. This is causing all PR's to fail the Lint & Unit tets check. This fix resolves those issues. Signed-off-by: Bryon Nevis <bryon.nevis@intel.com>
29 lines
961 B
TypeScript
29 lines
961 B
TypeScript
import { expect, getIframe, openSettings, test } from "./lib/fixtures"
|
|
|
|
test.describe("Settings", () => {
|
|
test.beforeEach(async ({ page }) => {
|
|
await page.goto("/", { waitUntil: "networkidle" })
|
|
await getIframe(page).waitFor({ state: "visible", timeout: 30000 })
|
|
})
|
|
|
|
test("settings dialog opens", async ({ page }) => {
|
|
await openSettings(page)
|
|
// openSettings already verifies dialog is visible
|
|
})
|
|
|
|
test("language selection is available", async ({ page }) => {
|
|
await openSettings(page)
|
|
|
|
const dialog = page.locator('[role="dialog"]')
|
|
await expect(dialog.locator('text="English"')).toBeVisible()
|
|
})
|
|
|
|
test("draw.io theme toggle exists", async ({ page }) => {
|
|
await openSettings(page)
|
|
|
|
const dialog = page.locator('[role="dialog"]')
|
|
const themeText = dialog.locator("text=/sketch|minimal/i")
|
|
await expect(themeText.first()).toBeVisible()
|
|
})
|
|
})
|