@@ -39,26 +39,29 @@ configs({ modes: ['ios'], directions: ['ltr'] }).forEach(({ title, config }) =>
3939 await expect ( itemSlidingEl ) . toHaveClass ( / i t e m - s l i d i n g - a c t i v e - s l i d e / ) ;
4040 } ) ;
4141
42- test ( 'should not throw errors when adding multiple items with side="end" using the Ionic CDN' , async ( { page } , testInfo ) => {
42+ test ( 'should not throw errors when adding multiple items with side="end" using the Ionic CDN' , async ( {
43+ page,
44+ } , testInfo ) => {
4345 testInfo . annotations . push ( {
4446 type : 'issue' ,
4547 description : 'https://github.com/ionic-team/ionic-framework/issues/29499' ,
4648 } ) ;
4749
4850 const errors : string [ ] = [ ] ;
49- page . on ( 'console' , msg => {
51+ page . on ( 'console' , ( msg ) => {
5052 if ( msg . type ( ) === 'error' ) {
5153 errors . push ( msg . text ( ) ) ;
5254 }
5355 } ) ;
54- page . on ( 'pageerror' , error => {
56+ page . on ( 'pageerror' , ( error ) => {
5557 errors . push ( error . message ) ;
5658 } ) ;
5759
5860 // This issue only happens when using a CDN version of Ionic
5961 // so we need to use the CDN by passing the `importIonicFromCDN` option
6062 // to setContent.
61- await page . setContent ( `
63+ await page . setContent (
64+ `
6265 <ion-header>
6366 <ion-toolbar>
6467 <ion-title>Item Sliding</ion-title>
@@ -99,7 +102,9 @@ configs({ modes: ['ios'], directions: ['ltr'] }).forEach(({ title, config }) =>
99102 });
100103 }
101104 </script>
102- ` , { ...config , importIonicFromCDN : true } ) ;
105+ ` ,
106+ { ...config , importIonicFromCDN : true }
107+ ) ;
103108
104109 // Click the button enough times to reproduce the issue
105110 const addButton = page . locator ( '#addItem' ) ;
0 commit comments