mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-15 02:11:05 +00:00
fix(list-box): use aria-disabled
instead of invalid disabled
attribute (#2125)
This commit is contained in:
parent
c67e095eaf
commit
e1b3ef22c9
2 changed files with 2 additions and 2 deletions
|
@ -165,7 +165,7 @@ describe("ComboBox", () => {
|
|||
await user.click(screen.getByRole("textbox"));
|
||||
const disabledOption = screen.getByText(/Fax/).closest('[role="option"]');
|
||||
assert(disabledOption);
|
||||
expect(disabledOption).toHaveAttribute("disabled", "true");
|
||||
expect(disabledOption).toHaveAttribute("aria-disabled", "true");
|
||||
|
||||
await user.click(disabledOption);
|
||||
expect(screen.getByRole("textbox")).toHaveValue("");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue