mirror of
https://github.com/DayuanJiang/next-ai-draw-io.git
synced 2026-01-09 09:42:30 +08:00
20 lines
648 B
TypeScript
20 lines
648 B
TypeScript
|
|
import { expect, getIframe, openSettings, test } from "./lib/fixtures"
|
||
|
|
|
||
|
|
test.describe("Model Configuration", () => {
|
||
|
|
test.beforeEach(async ({ page }) => {
|
||
|
|
await page.goto("/", { waitUntil: "networkidle" })
|
||
|
|
await getIframe(page).waitFor({ state: "visible", timeout: 30000 })
|
||
|
|
})
|
||
|
|
|
||
|
|
test("settings dialog opens and shows configuration options", async ({
|
||
|
|
page,
|
||
|
|
}) => {
|
||
|
|
await openSettings(page)
|
||
|
|
|
||
|
|
const dialog = page.locator('[role="dialog"]')
|
||
|
|
const buttons = dialog.locator("button")
|
||
|
|
const buttonCount = await buttons.count()
|
||
|
|
expect(buttonCount).toBeGreaterThan(0)
|
||
|
|
})
|
||
|
|
})
|