File tree Expand file tree Collapse file tree 1 file changed +5
-6
lines changed
Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -205,22 +205,21 @@ test.describe("Permission table", () => {
205205 await accessSwitch . uncheck ( ) ;
206206 await expect ( accessSwitch ) . not . toBeChecked ( ) ;
207207
208+ await new Promise ( res => setTimeout ( res , 3000 ) ) ;
209+
208210 const podPage = await browser . newPage ( ) ;
209211 // Disable caching
210212 await podPage . route ( "**/pod1/README" , ( route ) => route . continue ( ) ) ;
211213 await podPage . goto ( "http://localhost:8080/pod1/README" ) ;
212- await expect ( podPage . getByText ( "Welcome to your pod " ) ) . toBeVisible ( ) ;
214+ await expect ( podPage . getByText ( "Not logged in " ) ) . toBeVisible ( ) ;
213215
214216 // Remove access
215217 await accessSwitch . check ( ) ;
216218 await expect ( accessSwitch ) . toBeEnabled ( ) ;
219+ await new Promise ( res => setTimeout ( res , 3000 ) ) ;
217220
218221 await podPage . reload ( ) ;
219- await expect ( podPage . getByText ( "Not logged in" ) ) . toBeVisible ( ) ;
220-
221- // Restore to default state
222- await accessSwitch . check ( ) ;
223- await expect ( accessSwitch ) . toBeEnabled ( ) ;
222+ await expect ( podPage . getByText ( "Welcome to your pod" ) ) . toBeVisible ( ) ;
224223 } ) ;
225224
226225 test ( "Removing access keeps permissions on re-enabling of access" , async ( { page } ) => {
You can’t perform that action at this time.
0 commit comments