2026-01-05 00:37:40 +09:00
|
|
|
import { expect, getIframe, openSettings, test } from "./lib/fixtures"
|
2026-01-04 19:46:37 +09:00
|
|
|
|
|
|
|
|
test.describe("Model Configuration", () => {
|
|
|
|
|
test.beforeEach(async ({ page }) => {
|
|
|
|
|
await page.goto("/", { waitUntil: "networkidle" })
|
2026-01-05 00:37:40 +09:00
|
|
|
await getIframe(page).waitFor({ state: "visible", timeout: 30000 })
|
2026-01-04 19:46:37 +09:00
|
|
|
})
|
|
|
|
|
|
2026-01-04 19:58:48 +09:00
|
|
|
test("settings dialog opens and shows configuration options", async ({
|
|
|
|
|
page,
|
|
|
|
|
}) => {
|
2026-01-05 00:37:40 +09:00
|
|
|
await openSettings(page)
|
2026-01-04 19:46:37 +09:00
|
|
|
|
|
|
|
|
const dialog = page.locator('[role="dialog"]')
|
2026-01-04 19:58:48 +09:00
|
|
|
const buttons = dialog.locator("button")
|
|
|
|
|
const buttonCount = await buttons.count()
|
|
|
|
|
expect(buttonCount).toBeGreaterThan(0)
|
2026-01-04 19:46:37 +09:00
|
|
|
})
|
|
|
|
|
})
|