gradio/js/spa/test/render_heavy_concurrently.spec.ts
aliabid94 19d4ee62c3
Allow concurrent renders (#10059)
* changes

* changes

* changes

* add changeset

* changes

* changes

* changes

* changes

* Update gradio/blocks.py

Co-authored-by: Abubakar Abid <abubakar@huggingface.co>

---------

Co-authored-by: Ali Abid <aliabid94@gmail.com>
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2024-11-28 12:42:15 -05:00

10 lines
326 B
TypeScript

import { test, expect } from "@self/tootils";
test("1000 total textboxes render", async ({ page }) => {
await page.getByText("DONE 1", { exact: false }).click();
await page.getByText("DONE 2", { exact: false }).click();
const textboxes = await page.getByLabel("Textbox").all();
expect(textboxes).toHaveLength(1000);
});