gradio/js/spa/test/rapid_generation.spec.ts
pngwn 2b6cbf2590
Fix published package exports (#9163)
* rename

* save patch

* fix everything

* format

* rm file

* fix stuff

* tweaks

* tweaks

* tweaks

* tweaks

* tweaks

* asd

* asd

* asd

* asd

* asd

* asd

* asd

* fix

* Fix scripts/run_lite.sh and scripts/build_lite.sh (#9170)

* fixes

* fixes

* asd

* asd

* asd

* review comments

* fiux types

* fiux types

* make fileexpolorer public

* format

* lint

* lint

---------

Co-authored-by: Yuichiro Tachibana (Tsuchiya) <t.yic.yt@gmail.com>
2024-08-22 16:38:45 +00:00

17 lines
675 B
TypeScript

import { test, expect } from "@self/tootils";
test("No errors on generation", async ({ page }) => {
await page.getByRole("button", { name: "Start" }).click();
const conversation = page.getByLabel("chatbot conversation");
const num_a = page.getByLabel("a", { exact: true });
const num_b = page.getByLabel("b", { exact: true });
const num_c = page.getByLabel("c", { exact: true });
const num_d = page.getByLabel("d", { exact: true });
await expect(conversation).toContainText("26 26 26 26 26 26 26 26");
await expect(num_a).toHaveValue("52");
await expect(num_b).toHaveValue("51");
await expect(num_c).toHaveValue("52");
await expect(num_d).toHaveValue("51");
});