feat(combo-box): add hideLabel prop (#2153)

This commit is contained in:
Nick Wing 2025-04-18 12:27:14 -05:00 committed by GitHub
commit 436dea47e8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 50 additions and 1 deletions

View file

@ -96,6 +96,17 @@ describe("ComboBox", () => {
expect(screen.getByText("Contact")).toHaveClass("bx--label--disabled");
});
it("should handle hidden label", () => {
render(ComboBox, {
props: {
titleText: "Hidden Label",
hideLabel: true,
},
});
expect(screen.getByText("Hidden Label")).toHaveClass("bx--visually-hidden");
});
it("should handle invalid state", () => {
render(ComboBox, {
props: {