mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-15 10:21:05 +00:00
feat(combo-box): add hideLabel
prop (#2153)
This commit is contained in:
parent
7754ea3691
commit
436dea47e8
7 changed files with 50 additions and 1 deletions
|
@ -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: {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue