Skip to content

Commit 9447b77

Browse files
test(review changes): surf2014
1 parent e1716c0 commit 9447b77

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

src/elements/hx-modal/index.spec.js

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,15 @@ describe('<hx-modal> component tests', () => {
135135
const attr = component.hasAttribute('open');
136136

137137
expect(attr).to.be.true;
138-
});
138+
});
139+
it('should have aria-hidden attribute and set to true', async () => {
140+
const component = /** @type {HXModalElement} */ await fixture(template);
141+
const hasAttr = component.hasAttribute('aria-hidden');
142+
const attr = component.getAttribute('aria-hidden');
143+
144+
expect(hasAttr).to.be.true;
145+
expect(attr).to.be.equal(String(true));
146+
});
139147
});
140148

141149
describe('test for click event listener', () => {

0 commit comments

Comments
 (0)