Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
atmgrifter00 committed Feb 28, 2024
1 parent aedd65e commit 7e5ec79
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/nimble-components/src/select/tests/select.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -244,16 +244,16 @@ describe('Select', () => {
await disconnect();
});

it('updating hidden attribute sets/removes ".hidden-option" class', async () => {
it('updating hidden attribute sets/removes visually-hidden attribute', async () => {
const { element, connect, disconnect } = await setup();
await connect();
await waitForUpdatesAsync();
const option = element.options[0]!;
const option = element.options[0]! as ListOption;
option.hidden = true;
expect(option.classList.contains('hidden-option')).toBeTrue();
expect(option.visuallyHidden).toBeTrue();

option.hidden = false;
expect(option.classList.contains('hidden-option')).toBeFalse();
expect(option.visuallyHidden).toBeFalse();

await disconnect();
});
Expand Down

0 comments on commit 7e5ec79

Please sign in to comment.