mirror of
https://github.com/gradio-app/gradio.git
synced 2024-12-27 02:30:17 +08:00
2592d4e380
* test test * fix test * tweak * tweak test name
21 lines
577 B
TypeScript
21 lines
577 B
TypeScript
import { test, expect } from "@gradio/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();
|
|
});
|