We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e1716c0 commit 9447b77Copy full SHA for 9447b77
src/elements/hx-modal/index.spec.js
@@ -135,7 +135,15 @@ describe('<hx-modal> component tests', () => {
135
const attr = component.hasAttribute('open');
136
137
expect(attr).to.be.true;
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
147
});
148
149
describe('test for click event listener', () => {
0 commit comments