gradio / js /app /test /input_output.spec.ts
mindmime's picture
Upload folder using huggingface_hub
a03b3ba verified
raw
history blame contribute delete
290 Bytes
import { test, expect } from "@gradio/tootils";
test("a component acts as both input and output", async ({ page }) => {
const textbox = await page.getByLabel("Input-Output");
await textbox.fill("test");
await page.click("button");
await expect(await textbox).toHaveValue("tset");
});