mirror of
https://github.com/gradio-app/gradio.git
synced 2025-03-07 11:46:51 +08:00
* changes * asd * fix tests * fix lint * fix ts * fix ts * cleanup * cleanup * fix * Apply suggestions from code review Co-authored-by: Yuichiro Tachibana (Tsuchiya) <t.yic.yt@gmail.com> * fix * add changeset * fix gitignore * fix changeset * fix lockfile * format * fix * add changeset * githunore * kit bopilerplate * add changeset * fix website * add changeset --------- Co-authored-by: Yuichiro Tachibana (Tsuchiya) <t.yic.yt@gmail.com> Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
15 lines
428 B
TypeScript
15 lines
428 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 page.click('text="Submit"');
|
|
|
|
await expect(await page.getByLabel("Output")).toHaveValue("hi dawood");
|
|
});
|