2026-01-04 19:46:37 +09:00
|
|
|
import { expect, test } from "@playwright/test"
|
|
|
|
|
|
|
|
|
|
test.describe("Model Configuration", () => {
|
|
|
|
|
test.beforeEach(async ({ page }) => {
|
|
|
|
|
await page.goto("/", { waitUntil: "networkidle" })
|
|
|
|
|
await page
|
|
|
|
|
.locator("iframe")
|
|
|
|
|
.waitFor({ state: "visible", timeout: 30000 })
|
|
|
|
|
})
|
|
|
|
|
|
2026-01-04 19:58:48 +09:00
|
|
|
test("settings dialog opens and shows configuration options", async ({
|
|
|
|
|
page,
|
|
|
|
|
}) => {
|
2026-01-04 19:46:37 +09:00
|
|
|
// Open settings
|
|
|
|
|
const settingsButton = page.locator(
|
|
|
|
|
'button[aria-label*="settings"], button:has(svg[class*="settings"])',
|
|
|
|
|
)
|
2026-01-04 19:58:48 +09:00
|
|
|
await expect(settingsButton).toBeVisible()
|
2026-01-04 19:46:37 +09:00
|
|
|
await settingsButton.click()
|
|
|
|
|
|
|
|
|
|
const dialog = page.locator('[role="dialog"]')
|
|
|
|
|
await expect(dialog).toBeVisible({ timeout: 5000 })
|
|
|
|
|
|
2026-01-04 19:58:48 +09:00
|
|
|
// Settings dialog should have some configuration UI
|
|
|
|
|
const buttons = dialog.locator("button")
|
|
|
|
|
const buttonCount = await buttons.count()
|
|
|
|
|
expect(buttonCount).toBeGreaterThan(0)
|
2026-01-04 19:46:37 +09:00
|
|
|
})
|
|
|
|
|
})
|