2026-01-05 00:37:40 +09:00
|
|
|
import { expect, getIframe, test } from "./lib/fixtures"
|
2026-01-04 19:46:37 +09:00
|
|
|
|
|
|
|
|
test.describe("Chat Panel", () => {
|
|
|
|
|
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
|
|
|
})
|
|
|
|
|
|
|
|
|
|
test("page has interactive elements", async ({ page }) => {
|
|
|
|
|
const buttons = page.locator("button")
|
|
|
|
|
const count = await buttons.count()
|
|
|
|
|
expect(count).toBeGreaterThan(0)
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
test("draw.io iframe is interactive", async ({ page }) => {
|
2026-01-05 00:37:40 +09:00
|
|
|
const iframe = getIframe(page)
|
2026-01-04 19:46:37 +09:00
|
|
|
await expect(iframe).toBeVisible()
|
|
|
|
|
|
|
|
|
|
const src = await iframe.getAttribute("src")
|
|
|
|
|
expect(src).toBeTruthy()
|
|
|
|
|
})
|
|
|
|
|
})
|