@@ -241,6 +241,10 @@ describe('<pf-tabs>', function() {
241
241
expect ( second ) . to . have . attribute ( 'active' ) ;
242
242
expect ( third ) . to . not . have . attribute ( 'active' ) ;
243
243
} ) ;
244
+
245
+ it ( 'should specify the selected tab to assistive technology' , async function ( ) {
246
+ expect ( await a11ySnapshot ( ) ) . to . axContainQuery ( { role : 'tabpanel' , name : 'tab-2' } ) ;
247
+ } ) ;
244
248
} ) ;
245
249
246
250
describe ( 'pressing ArrowLeft' , function ( ) {
@@ -254,6 +258,11 @@ describe('<pf-tabs>', function() {
254
258
expect ( second ) . to . not . have . attribute ( 'active' ) ;
255
259
expect ( third ) . to . have . attribute ( 'active' ) ;
256
260
} ) ;
261
+
262
+ it ( 'should specify the selected tab to assistive technology' , async function ( ) {
263
+ expect ( await a11ySnapshot ( ) ) . to . axContainQuery ( { role : 'tabpanel' , name : 'tab-3' } ) ;
264
+ } ) ;
265
+
257
266
describe ( 'then pressing ArrowRight' , function ( ) {
258
267
beforeEach ( async function ( ) {
259
268
await sendKeys ( { down : 'ArrowRight' } ) ;
@@ -267,6 +276,10 @@ describe('<pf-tabs>', function() {
267
276
expect ( second ) . to . not . have . attribute ( 'active' ) ;
268
277
expect ( third ) . to . not . have . attribute ( 'active' ) ;
269
278
} ) ;
279
+
280
+ it ( 'should specify the selected tab to assistive technology' , async function ( ) {
281
+ expect ( await a11ySnapshot ( ) ) . to . axContainQuery ( { role : 'tabpanel' , name : 'tab-1' } ) ;
282
+ } ) ;
270
283
} ) ;
271
284
} ) ;
272
285
} ) ;
0 commit comments