@@ -118,8 +118,8 @@ test('Instance networking tab — Detach / Attach Ephemeral IPs', async ({ page
118118 // We start out with an ephemeral IP attached
119119 await expect ( ephemeralCell ) . toBeVisible ( )
120120
121- // The 'Attach ephemeral IP' button should be hidden when there is still an existing ephemeral IP
122- await expect ( attachEphemeralIpButton ) . toBeHidden ( )
121+ // The 'Attach ephemeral IP' button should be disabled when there is already an ephemeral IP
122+ await expect ( attachEphemeralIpButton ) . toBeDisabled ( )
123123
124124 // Detach the existing ephemeral IP
125125 await clickRowAction ( page , 'ephemeral' , 'Detach' )
@@ -146,8 +146,8 @@ test('Instance networking tab — Detach / Attach Ephemeral IPs', async ({ page
146146 'IP pool' : 'ip-pool-1' ,
147147 } )
148148
149- // The 'Attach ephemeral IP' button should be hidden after attaching an ephemeral IP
150- await expect ( attachEphemeralIpButton ) . toBeHidden ( )
149+ // The 'Attach ephemeral IP' button should be disabled after attaching an ephemeral IP
150+ await expect ( attachEphemeralIpButton ) . toBeDisabled ( )
151151
152152 // Detach and test with explicit pool selection
153153 await clickRowAction ( page , 'ephemeral' , 'Detach' )
@@ -168,8 +168,8 @@ test('Instance networking tab — Detach / Attach Ephemeral IPs', async ({ page
168168 'IP pool' : 'ip-pool-2' ,
169169 } )
170170
171- // The 'Attach ephemeral IP' button should be hidden after attaching an ephemeral IP
172- await expect ( attachEphemeralIpButton ) . toBeHidden ( )
171+ // The 'Attach ephemeral IP' button should be disabled after attaching an ephemeral IP
172+ await expect ( attachEphemeralIpButton ) . toBeDisabled ( )
173173} )
174174
175175test ( 'Instance networking tab — floating IPs' , async ( { page } ) => {
0 commit comments