mirror of
https://github.com/DayuanJiang/next-ai-draw-io.git
synced 2026-01-10 02:02:31 +08:00
20 lines
648 B
TypeScript
20 lines
648 B
TypeScript
|
|
import { expect, test } from "@playwright/test"
|
||
|
|
|
||
|
|
test.describe("Save Dialog", () => {
|
||
|
|
test.beforeEach(async ({ page }) => {
|
||
|
|
await page.goto("/", { waitUntil: "networkidle" })
|
||
|
|
await page
|
||
|
|
.locator("iframe")
|
||
|
|
.waitFor({ state: "visible", timeout: 30000 })
|
||
|
|
})
|
||
|
|
|
||
|
|
test("save/download buttons exist", async ({ page }) => {
|
||
|
|
// Check that buttons with icons exist (save/download functionality)
|
||
|
|
const buttons = page
|
||
|
|
.locator("button")
|
||
|
|
.filter({ has: page.locator("svg") })
|
||
|
|
const count = await buttons.count()
|
||
|
|
expect(count).toBeGreaterThan(0)
|
||
|
|
})
|
||
|
|
})
|