@@ -91,11 +91,11 @@ describe('SectionFilter', function() {
91
91
92
92
// Put the filter into the "inclusion" state, with nothing selected initially.
93
93
assert . deepEqual (
94
- await driver . findAll ( '.test-filter-menu-bulk-action:not(: disabled)' , ( e ) => e . getText ( ) ) ,
94
+ await driver . findAll ( '.test-filter-menu-bulk-action:not([aria- disabled="true"] )' , ( e ) => e . getText ( ) ) ,
95
95
[ 'None' ] ) ;
96
96
await driver . findContent ( '.test-filter-menu-bulk-action' , / N o n e / ) . click ( ) ;
97
97
assert . deepEqual (
98
- await driver . findAll ( '.test-filter-menu-bulk-action:not(: disabled)' , ( e ) => e . getText ( ) ) ,
98
+ await driver . findAll ( '.test-filter-menu-bulk-action:not([aria- disabled="true"] )' , ( e ) => e . getText ( ) ) ,
99
99
[ 'All' ] ) ;
100
100
101
101
// Include only "Apples".
@@ -233,7 +233,7 @@ describe('SectionFilter', function() {
233
233
{ checked : true , value : 'Bar' , count : 1 } ,
234
234
{ checked : true , value : 'Foo' , count : 1 }
235
235
] ) ;
236
- await menu . findContent ( 'label' , / ^ $ / ) . click ( ) ;
236
+ await menu . findContent ( 'label .test-filter-menu-value ' , / ^ $ / ) . click ( ) ;
237
237
await menu . findContent ( 'label' , / B a r / ) . click ( ) ;
238
238
assert . deepEqual ( await gu . getVisibleGridCells ( 0 , [ 1 , 2 , 3 , 4 , 5 , 6 , 7 ] ) ,
239
239
[ 'Foo' , '1' , '2.0' , '2016-01-01' , '5+6' , '' , undefined ] ) ;
@@ -255,7 +255,7 @@ describe('SectionFilter', function() {
255
255
{ checked : true , value : '6.00' , count : 1 } ,
256
256
{ checked : true , value : '7.00' , count : 1 } ,
257
257
] ) ;
258
- await menu . findContent ( 'label' , / ^ $ / ) . click ( ) ;
258
+ await menu . findContent ( 'label .test-filter-menu-value ' , / ^ $ / ) . click ( ) ;
259
259
await menu . findContent ( 'label' , / 7 / ) . click ( ) ;
260
260
await menu . findContent ( 'label' , / f o o / ) . click ( ) ;
261
261
assert . deepEqual ( await gu . getVisibleGridCells ( 1 , [ 1 , 2 , 3 , 4 , 5 , 6 ] ) ,
@@ -277,7 +277,7 @@ describe('SectionFilter', function() {
277
277
{ checked : true , value : '2019-06-05' , count : 1 } ,
278
278
{ checked : true , value : '2019-06-07' , count : 1 } ,
279
279
] ) ;
280
- await menu . findContent ( 'label' , / ^ $ / ) . click ( ) ;
280
+ await menu . findContent ( 'label .test-filter-menu-value ' , / ^ $ / ) . click ( ) ;
281
281
await menu . findContent ( 'label' , / 2 0 1 9 - 0 6 - 0 5 / ) . click ( ) ;
282
282
await menu . findContent ( 'label' , / b a r / ) . click ( ) ;
283
283
assert . deepEqual ( await gu . getVisibleGridCells ( 2 , [ 1 , 2 , 3 , 4 , 5 , 6 ] ) ,
@@ -293,7 +293,7 @@ describe('SectionFilter', function() {
293
293
{ checked : true , value : '2019-06-07' , count : 1 }
294
294
] ) ;
295
295
assert . deepEqual (
296
- await menu . findAll ( '.test-filter-menu-list label ' , ( e ) => e . getText ( ) ) ,
296
+ await menu . findAll ( '.test-filter-menu-list .test-filter-menu-value ' , ( e ) => e . getText ( ) ) ,
297
297
[ '2019-06-07' ]
298
298
) ;
299
299
await menu . findContent ( '.test-filter-menu-bulk-action' , / A l l S h o w n / ) . click ( ) ;
@@ -341,7 +341,7 @@ describe('SectionFilter', function() {
341
341
{ checked : true , value : 'carol' , count : 1 } ,
342
342
] ) ;
343
343
344
- await menu . findContent ( 'label' , / ^ $ / ) . click ( ) ;
344
+ await menu . findContent ( 'label .test-filter-menu-value ' , / ^ $ / ) . click ( ) ;
345
345
await menu . findContent ( 'label' , / # I n v a l i d R e f : d e n i s / ) . click ( ) ;
346
346
await menu . findContent ( 'label' , / b o b / ) . click ( ) ;
347
347
@@ -387,7 +387,7 @@ describe('SectionFilter', function() {
387
387
388
388
assert . deepEqual ( boldFonts , [ 'Foo' ] ) ;
389
389
390
- await menu . findContent ( 'label' , / ^ $ / ) . click ( ) ;
390
+ await menu . findContent ( 'label .test-filter-menu-value ' , / ^ $ / ) . click ( ) ;
391
391
await menu . findContent ( 'label' , / B a r / ) . click ( ) ;
392
392
await menu . findContent ( 'label' , / B a z / ) . click ( ) ;
393
393
@@ -415,7 +415,7 @@ describe('SectionFilter', function() {
415
415
{ checked : true , value : 'D' , count : 0 } ,
416
416
] ) ;
417
417
418
- await menu . findContent ( 'label' , / ^ $ / ) . click ( ) ;
418
+ await menu . findContent ( 'label .test-filter-menu-value ' , / ^ $ / ) . click ( ) ;
419
419
await menu . findContent ( 'label' , / # T y p e E r r o r / ) . click ( ) ;
420
420
await menu . findContent ( 'label' , / 2 5 \. 0 / ) . click ( ) ;
421
421
await menu . findContent ( 'label' , / 3 6 \. 0 / ) . click ( ) ;
@@ -495,7 +495,7 @@ describe('SectionFilter', function() {
495
495
{ checked : true , value : 'carol' , count : 2 }
496
496
] ) ;
497
497
498
- await menu . findContent ( 'label' , / ^ $ / ) . click ( ) ;
498
+ await menu . findContent ( 'label .test-filter-menu-value ' , / ^ $ / ) . click ( ) ;
499
499
await menu . findContent ( 'label' , / b o b / ) . click ( ) ;
500
500
await menu . findContent ( 'label' , / # I n v a l i d R e f L i s t : \[ u ' 0 ' \] / ) . click ( ) ;
501
501
0 commit comments