@@ -86,10 +86,10 @@ describe('WAI ARIA Spec', () => {
8686 function evaluateIsExpanded ( buttonHandle ) {
8787 return page
8888 . evaluate (
89- heading => heading . getAttribute ( 'aria-expanded' ) ,
89+ ( heading ) => heading . getAttribute ( 'aria-expanded' ) ,
9090 buttonHandle ,
9191 )
92- . then ( ariaExpanded => ariaExpanded === 'true' ) ;
92+ . then ( ( ariaExpanded ) => ariaExpanded === 'true' ) ;
9393 }
9494
9595 // ENTER key
@@ -132,7 +132,7 @@ describe('WAI ARIA Spec', () => {
132132 await firstButtonHandle . focus ( ) ;
133133 await page . keyboard . press ( 'Tab' ) ;
134134 const secondIsFocussed = await page . evaluate (
135- button => document . activeElement === button ,
135+ ( button ) => document . activeElement === button ,
136136 secondButtonHandle ,
137137 ) ;
138138 expect ( secondIsFocussed ) . toEqual ( true ) ;
@@ -150,7 +150,7 @@ describe('WAI ARIA Spec', () => {
150150 await page . keyboard . press ( 'Tab' ) ;
151151 await page . keyboard . up ( 'Shift' ) ;
152152 const firstIsFocussed = await page . evaluate (
153- button => document . activeElement === button ,
153+ ( button ) => document . activeElement === button ,
154154 firstButtonHandle ,
155155 ) ;
156156 expect ( firstIsFocussed ) . toEqual ( true ) ;
@@ -165,7 +165,7 @@ describe('WAI ARIA Spec', () => {
165165 await firstButtonHandle . focus ( ) ;
166166 await page . keyboard . press ( 'ArrowDown' ) ;
167167 const secondIsFocussed = await page . evaluate (
168- button => document . activeElement === button ,
168+ ( button ) => document . activeElement === button ,
169169 secondButtonHandle ,
170170 ) ;
171171 expect ( secondIsFocussed ) . toEqual ( true ) ;
@@ -185,7 +185,7 @@ describe('WAI ARIA Spec', () => {
185185 await secondButtonHandle . focus ( ) ;
186186 await page . keyboard . press ( 'ArrowUp' ) ;
187187 const firstIsFocussed = await page . evaluate (
188- button => document . activeElement === button ,
188+ ( button ) => document . activeElement === button ,
189189 firstButtonHandle ,
190190 ) ;
191191 expect ( firstIsFocussed ) . toEqual ( true ) ;
@@ -209,7 +209,7 @@ describe('WAI ARIA Spec', () => {
209209 await thirdButtonHandle . focus ( ) ;
210210 await page . keyboard . press ( 'Home' ) ;
211211 const firstIsFocussed = await page . evaluate (
212- button => document . activeElement === button ,
212+ ( button ) => document . activeElement === button ,
213213 firstButtonHandle ,
214214 ) ;
215215 expect ( firstIsFocussed ) . toEqual ( true ) ;
@@ -228,7 +228,7 @@ describe('WAI ARIA Spec', () => {
228228 await firstButtonHandle . focus ( ) ;
229229 await page . keyboard . press ( 'End' ) ;
230230 const thirdIsFocussed = await page . evaluate (
231- button => document . activeElement === button ,
231+ ( button ) => document . activeElement === button ,
232232 thirdButtonHandle ,
233233 ) ;
234234 expect ( thirdIsFocussed ) . toEqual ( true ) ;
@@ -246,7 +246,7 @@ describe('WAI ARIA Spec', () => {
246246 for ( const buttonHandle of buttonsHandles ) {
247247 expect (
248248 await page . evaluate (
249- button => button . getAttribute ( 'role' ) ,
249+ ( button ) => button . getAttribute ( 'role' ) ,
250250 buttonHandle ,
251251 ) ,
252252 ) . toBe ( 'button' ) ;
@@ -261,14 +261,14 @@ describe('WAI ARIA Spec', () => {
261261 for ( const buttonHandle of buttonsHandles ) {
262262 expect (
263263 await page . evaluate (
264- button => button . parentElement . getAttribute ( 'role' ) ,
264+ ( button ) => button . parentElement . getAttribute ( 'role' ) ,
265265 buttonHandle ,
266266 ) ,
267267 ) . toBe ( 'heading' ) ;
268268
269269 expect (
270270 await page . evaluate (
271- button =>
271+ ( button ) =>
272272 button . parentElement . getAttribute ( 'aria-level' ) ,
273273 buttonHandle ,
274274 ) ,
@@ -292,14 +292,14 @@ describe('WAI ARIA Spec', () => {
292292 for ( const handle of headingsHandles ) {
293293 expect (
294294 await page . evaluate (
295- heading => heading . childNodes . length === 1 ,
295+ ( heading ) => heading . childNodes . length === 1 ,
296296 handle ,
297297 ) ,
298298 ) . toEqual ( true ) ;
299299
300300 expect (
301301 await page . evaluate (
302- heading =>
302+ ( heading ) =>
303303 heading . firstChild . getAttribute (
304304 'data-accordion-component' ,
305305 ) === 'AccordionItemButton' ,
@@ -319,7 +319,7 @@ describe('WAI ARIA Spec', () => {
319319 // Before expanding
320320 expect (
321321 await page . evaluate (
322- button => button . getAttribute ( 'aria-expanded' ) ,
322+ ( button ) => button . getAttribute ( 'aria-expanded' ) ,
323323 handle ,
324324 ) ,
325325 ) . toEqual ( 'false' ) ;
@@ -330,7 +330,7 @@ describe('WAI ARIA Spec', () => {
330330 // After expanding
331331 expect (
332332 await page . evaluate (
333- button => button . getAttribute ( 'aria-expanded' ) ,
333+ ( button ) => button . getAttribute ( 'aria-expanded' ) ,
334334 handle ,
335335 ) ,
336336 ) . toEqual ( 'true' ) ;
@@ -351,11 +351,11 @@ describe('WAI ARIA Spec', () => {
351351 ) ;
352352
353353 const buttonAriaControls = await page . evaluate (
354- button => button . getAttribute ( 'aria-controls' ) ,
354+ ( button ) => button . getAttribute ( 'aria-controls' ) ,
355355 buttonHandle ,
356356 ) ;
357357 const panelId = await page . evaluate (
358- panel => panel . id ,
358+ ( panel ) => panel . id ,
359359 panelHandle ,
360360 ) ;
361361
@@ -375,7 +375,7 @@ describe('WAI ARIA Spec', () => {
375375 await firstButtonHandle . click ( ) ;
376376
377377 const buttonAriaDisabled = await page . evaluate (
378- button => button . getAttribute ( 'aria-disabled' ) ,
378+ ( button ) => button . getAttribute ( 'aria-disabled' ) ,
379379 firstButtonHandle ,
380380 ) ;
381381
@@ -397,15 +397,15 @@ describe('WAI ARIA Spec', () => {
397397 ) ;
398398
399399 const buttonId = await page . evaluate (
400- button => button . id ,
400+ ( button ) => button . id ,
401401 buttonHandle ,
402402 ) ;
403403 const panelAriaLabelledBy = await page . evaluate (
404- panel => panel . getAttribute ( 'aria-labelledby' ) ,
404+ ( panel ) => panel . getAttribute ( 'aria-labelledby' ) ,
405405 panelHandle ,
406406 ) ;
407407 const panelRole = await page . evaluate (
408- panel => panel . getAttribute ( 'role' ) ,
408+ ( panel ) => panel . getAttribute ( 'role' ) ,
409409 panelHandle ,
410410 ) ;
411411
0 commit comments