mirror of
https://github.com/gradio-app/gradio.git
synced 2024-12-15 02:11:15 +08:00
1f3ee97d10
* tests * changes * add changeset * chet fixes * fixes * add changeset * changes --------- Co-authored-by: Ali Abid <aliabid94@gmail.com> Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com> Co-authored-by: Abubakar Abid <abubakar@huggingface.co> Co-authored-by: aliabid94 <aabid94@gmail.com>
16 lines
528 B
TypeScript
16 lines
528 B
TypeScript
import { test, expect } from "@self/tootils";
|
|
|
|
test("submit works", async ({ page }) => {
|
|
await page.getByTestId("textbox").first().focus();
|
|
await page.getByTestId("textbox").first().fill("test");
|
|
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");
|
|
});
|