mirror of
https://github.com/gradio-app/gradio.git
synced 2024-12-21 02:19:59 +08:00
2b6cbf2590
* 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>
26 lines
564 B
TypeScript
26 lines
564 B
TypeScript
import { test, describe, assert, afterEach, vi } from "vitest";
|
|
import { cleanup, render } from "@self/tootils";
|
|
|
|
import Group from "./Index.svelte";
|
|
|
|
describe("Group", () => {
|
|
afterEach(() => {
|
|
cleanup();
|
|
});
|
|
|
|
test("setting visible to false hides the Group", async () => {
|
|
render(Group, {
|
|
elem_id: "group",
|
|
visible: false
|
|
});
|
|
|
|
const groupElement = document.getElementById("group");
|
|
|
|
assert(groupElement !== null, "Group element not found.");
|
|
assert(
|
|
groupElement.classList.contains("hide"),
|
|
"Group element is not hidden."
|
|
);
|
|
});
|
|
});
|