FEA-Bench / testbed /gradio-app__gradio /js /app /test /input_output.spec.ts
hc99's picture
Add files using upload-large-folder tool
8766bc5 verified
raw
history blame
352 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 Promise.all([
page.click("button"),
page.waitForResponse("**/run/predict")
]);
await expect(await textbox).toHaveValue("tset");
});