mirror of
https://github.com/gradio-app/gradio.git
synced 2024-12-15 02:11:15 +08:00
2b6cbf2590
* rename * save patch * fix everything * format * rm file * fix stuff * tweaks * tweaks * tweaks * tweaks * tweaks * asd * asd * asd * asd * asd * asd * asd * fix * Fix scripts/run_lite.sh and scripts/build_lite.sh (#9170) * fixes * fixes * asd * asd * asd * review comments * fiux types * fiux types * make fileexpolorer public * format * lint * lint --------- Co-authored-by: Yuichiro Tachibana (Tsuchiya) <t.yic.yt@gmail.com>
21 lines
575 B
TypeScript
21 lines
575 B
TypeScript
import { test, expect } from "@self/tootils";
|
|
|
|
test("renders the correct elements", async ({ page }) => {
|
|
const textbox = await page.getByLabel("Name");
|
|
|
|
await textbox.fill("Frank");
|
|
await expect(await textbox).toHaveValue("Frank");
|
|
await expect(await page.getByLabel("Output")).toHaveValue(
|
|
"Welcome! This page has loaded for Frank"
|
|
);
|
|
});
|
|
|
|
test("renders the footer text", async ({ page }) => {
|
|
const footer = page.locator("footer");
|
|
|
|
await expect(footer).toBeVisible();
|
|
await expect(
|
|
footer.getByText("Use via API · Built with Gradio ")
|
|
).toBeVisible();
|
|
});
|