mirror of
https://github.com/gradio-app/gradio.git
synced 2024-12-21 02:19:59 +08:00
15 lines
473 B
TypeScript
15 lines
473 B
TypeScript
import { test, expect } from "@gradio/tootils";
|
|
|
|
test("submit works", async ({ page }) => {
|
|
await page.getByTestId("textbox").first().focus();
|
|
await page.keyboard.press("Enter");
|
|
|
|
await expect(page.getByLabel("Prompt", { exact: true })).toHaveValue("image");
|
|
});
|
|
|
|
test("examples work", async ({ page }) => {
|
|
await page.getByText("A serious capybara at work, wearing a suit").click();
|
|
|
|
await expect(page.getByLabel("Prompt", { exact: true })).toHaveValue("image");
|
|
});
|