mirror of
https://github.com/gradio-app/gradio.git
synced 2025-01-12 10:34:32 +08:00
15 lines
434 B
TypeScript
15 lines
434 B
TypeScript
import { test, expect, Page } from "@playwright/test";
|
|
import { mock_theme, wait_for_page, mock_api, mock_demo } from "./utils";
|
|
|
|
test("renders the correct elements", async ({ page }) => {
|
|
await mock_demo(page, "blocks_kinematics");
|
|
await mock_api(page, [[25, 45]]);
|
|
await mock_theme(page);
|
|
await wait_for_page(page);
|
|
|
|
await Promise.all([
|
|
page.click("button:has-text('Run')"),
|
|
page.waitForResponse("**/run/predict")
|
|
]);
|
|
});
|