File size: 490 Bytes
8766bc5
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
import { test, expect } from "@gradio/tootils";

test("renders the correct elements", async ({ page }) => {
	const textboxes = await page.getByLabel("Input");

	const textboxOne = await textboxes.first();
	const textboxTwo = await textboxes.last();

	await textboxOne.fill("hi");
	await textboxTwo.fill("dawood");
	await Promise.all([
		page.click('text="Submit"'),
		page.waitForResponse("**/run/predict")
	]);

	await expect(await page.getByLabel("Output")).toHaveValue("hi dawood");
});