File size: 352 Bytes
8766bc5 | 1 2 3 4 5 6 7 8 9 10 11 12 13 | 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");
});
|