diff --git a/elements/pf-tabs/test/pf-tabs.spec.ts b/elements/pf-tabs/test/pf-tabs.spec.ts index a8c7c3484d..419f3b28cd 100644 --- a/elements/pf-tabs/test/pf-tabs.spec.ts +++ b/elements/pf-tabs/test/pf-tabs.spec.ts @@ -241,6 +241,10 @@ describe('', function() { expect(second).to.have.attribute('active'); expect(third).to.not.have.attribute('active'); }); + + it('should specify the selected tab to assistive technology', async function() { + expect(await a11ySnapshot()).to.axContainQuery({ role: 'tabpanel', name: 'tab-2' }); + }); }); describe('pressing ArrowLeft', function() { @@ -254,6 +258,11 @@ describe('', function() { expect(second).to.not.have.attribute('active'); expect(third).to.have.attribute('active'); }); + + it('should specify the selected tab to assistive technology', async function() { + expect(await a11ySnapshot()).to.axContainQuery({ role: 'tabpanel', name: 'tab-3' }); + }); + describe('then pressing ArrowRight', function() { beforeEach(async function() { await sendKeys({ down: 'ArrowRight' }); @@ -267,6 +276,10 @@ describe('', function() { expect(second).to.not.have.attribute('active'); expect(third).to.not.have.attribute('active'); }); + + it('should specify the selected tab to assistive technology', async function() { + expect(await a11ySnapshot()).to.axContainQuery({ role: 'tabpanel', name: 'tab-1' }); + }); }); }); });