gradio/js/app/test/blocks_flipper.spec.ts
pngwn 1eb4c20120
ensure kwargs are always in sync across the whole application (#7963)
* ensure kwargs are always in sync across the whole application

* add changeset

* fix test

* update accordion test

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-04-08 18:12:14 +01:00

15 lines
458 B
TypeScript

import { test, expect } from "@gradio/tootils";
test("accordion stays open when interacting with the slider", async ({
page
}) => {
await page.getByRole("button", { name: "Open for More! ▼" }).click();
await page.getByLabel("Textbox").nth(0).fill("123");
await page.getByRole("button", { name: "Flip" }).click();
await expect(page.getByLabel("Textbox").nth(1)).toHaveValue("321");
await expect(page.getByText("Look at me...")).toBeVisible();
});