mirror of
https://github.com/gradio-app/gradio.git
synced 2024-12-27 02:30:17 +08:00
d6b6c87c4f
* changes * changes * remove mocks * fix scripts * tweak port * add logs * add logs * do tests again * tweaks * fixes * regen notebooks * change workers * change workers * try to speed up ci * try again * try again * try again * try again * try again * fix actions * again * again * again * again * again * again * try again * try again * try again * try again * try again * try again * try again * try again * try again * try again * try again * try again * try again * try again * try again * try again * try again * try again * try again * try again * try again * try again * try again * try again * try again * try again * try again * try again * try again * try again * try again * try again * try again * try again * try again * try again * try again * add names to frontend ci steps
18 lines
490 B
TypeScript
18 lines
490 B
TypeScript
import { test, expect } from "@gradio/tootils";
|
|
|
|
test("renders the correct elements", async ({ page }) => {
|
|
const textboxes = await page.getByLabel("Input");
|
|
|
|
const textboxOne = await textboxes.first();
|
|
const textboxTwo = await textboxes.last();
|
|
|
|
await textboxOne.fill("hi");
|
|
await textboxTwo.fill("dawood");
|
|
await Promise.all([
|
|
page.click('text="Submit"'),
|
|
page.waitForResponse("**/run/predict")
|
|
]);
|
|
|
|
await expect(await page.getByLabel("Output")).toHaveValue("hi dawood");
|
|
});
|