Skip to content

Commit

Permalink
check aria-hidden attribute instead in test
Browse files Browse the repository at this point in the history
  • Loading branch information
ZeeshanTamboli committed Sep 27, 2024
1 parent b009d7a commit 89451e8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -381,7 +381,7 @@ describe('ModalManager', () => {
modalManager.add(getDummyModal(), container2);
expect(container2.children[0]).toBeInaccessible();
for (let i = 1; i < numberOfChildren; i += 1) {
expect(container2.children[i]).not.toBeInaccessible();
expect(container2.children[i].getAttribute('aria-hidden')).to.equal(null);
}
});

Expand Down
2 changes: 1 addition & 1 deletion packages/mui-material/src/Modal/ModalManager.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -381,7 +381,7 @@ describe('ModalManager', () => {
modalManager.add(getDummyModal(), container2);
expect(container2.children[0]).toBeInaccessible();
for (let i = 1; i < numberOfChildren; i += 1) {
expect(container2.children[i]).not.toBeInaccessible();
expect(container2.children[i].getAttribute('aria-hidden')).to.equal(null);
}
});

Expand Down

0 comments on commit 89451e8

Please sign in to comment.