gradio/js/app/test/blocks_flipper.spec.ts
Hannah 4dc9ffbf70
Store gr.Accordion's open value (#7375)
* store open as writeable val

* add changeset

* add e2e test

* formatting

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-02-10 00:09:59 +01:00

10 lines
338 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("range slider for Slide me").fill("0.5");
await expect(page.getByText("Look at me...")).toBeVisible();
});