Refresh HiveGrid Cloud reference snapshot

This commit is contained in:
david committed 2026-08-03 15:31:14 +02:00
1 parent 5e99e14772
commit 7f88026f79
5955 files changed
+1177325 -188362

No files matched your search

@@ -0,0 +1,29 @@
// @vitest-environment jsdom
import "@testing-library/jest-dom/vitest";
import { render, screen } from "@testing-library/react";
import { describe, expect, it } from "vitest";
import { Select } from ".";
describe("Select accessibility wrapper", () => {
it("uses its string label as the combobox accessible-name fallback", () => {
render(
<Select label="Contact type" showLabel>
<Select.Item value="person">Person</Select.Item>
</Select>
);
expect(screen.getByRole("combobox", { name: "Contact type" })).toBeInTheDocument();
});
it("preserves an explicit trigger accessible name", () => {
render(
<Select label="Contact type" showLabel triggerAriaLabel="Choose contact type">
<Select.Item value="person">Person</Select.Item>
</Select>
);
expect(screen.getByRole("combobox", { name: "Choose contact type" })).toBeInTheDocument();
});
});