@@ -27,7 +27,9 @@ configs({ directions: ['ltr'] }).forEach(({ title, screenshot, config }) => {
2727 await expect ( input ) . toHaveScreenshot ( screenshot ( `input-disabled` ) ) ;
2828 } ) ;
2929
30- test ( 'should maintain consistent height when password toggle is hidden on disabled input' , async ( { page } , testInfo ) => {
30+ test ( 'should maintain consistent height when password toggle is hidden on disabled input' , async ( {
31+ page,
32+ } , testInfo ) => {
3133 testInfo . annotations . push ( {
3234 type : 'issue' ,
3335 description : 'https://github.com/ionic-team/ionic-framework/issues/29562' ,
@@ -44,21 +46,22 @@ configs({ directions: ['ltr'] }).forEach(({ title, screenshot, config }) => {
4446 const input = page . locator ( 'ion-input' ) ;
4547
4648 // Get the height when input is enabled
47- const enabledHeight = await input . boundingBox ( ) . then ( box => box ?. height ) ;
49+ const enabledHeight = await input . boundingBox ( ) . then ( ( box ) => box ?. height ) ;
4850
4951 // Disable the input
50- await input . evaluate ( el => el . setAttribute ( 'disabled' , 'true' ) ) ;
52+ await input . evaluate ( ( el ) => el . setAttribute ( 'disabled' , 'true' ) ) ;
5153 await page . waitForChanges ( ) ;
5254
5355 // Get the height when input is disabled
54- const disabledHeight = await input . boundingBox ( ) . then ( box => box ?. height ) ;
56+ const disabledHeight = await input . boundingBox ( ) . then ( ( box ) => box ?. height ) ;
5557
5658 // Verify heights are the same
5759 expect ( enabledHeight ) . toBe ( disabledHeight ) ;
5860 } ) ;
5961
60-
61- test ( 'should maintain consistent height when password toggle is hidden on readonly input' , async ( { page } , testInfo ) => {
62+ test ( 'should maintain consistent height when password toggle is hidden on readonly input' , async ( {
63+ page,
64+ } , testInfo ) => {
6265 testInfo . annotations . push ( {
6366 type : 'issue' ,
6467 description : 'https://github.com/ionic-team/ionic-framework/issues/29562' ,
@@ -75,14 +78,14 @@ configs({ directions: ['ltr'] }).forEach(({ title, screenshot, config }) => {
7578 const input = page . locator ( 'ion-input' ) ;
7679
7780 // Get the height when input is enabled
78- const enabledHeight = await input . boundingBox ( ) . then ( box => box ?. height ) ;
81+ const enabledHeight = await input . boundingBox ( ) . then ( ( box ) => box ?. height ) ;
7982
8083 // Make the input readonly
81- await input . evaluate ( el => el . setAttribute ( 'readonly' , 'true' ) ) ;
84+ await input . evaluate ( ( el ) => el . setAttribute ( 'readonly' , 'true' ) ) ;
8285 await page . waitForChanges ( ) ;
8386
8487 // Get the height when input is readonly
85- const readonlyHeight = await input . boundingBox ( ) . then ( box => box ?. height ) ;
88+ const readonlyHeight = await input . boundingBox ( ) . then ( ( box ) => box ?. height ) ;
8689
8790 // Verify heights are the same
8891 expect ( enabledHeight ) . toBe ( readonlyHeight ) ;
0 commit comments