@@ -281,6 +281,7 @@ test.describe.serial('Red Hat Authentication extension verification', () => {
281281 test ( 'User signed in status is propagated into Podman Desktop' , async ( { page, navigationBar } ) => {
282282 // activate Podman Desktop again
283283 await page . bringToFront ( ) ;
284+ await handleConfirmationDialog ( page , 'Allow Access' , true , 'Allow' , 'Deny' , 10_000 ) ;
284285 if ( isLinux ) {
285286 try {
286287 await handleConfirmationDialog ( page , 'Red Hat Authentication' , true , 'OK' , '' , 10_000 ) ;
@@ -311,32 +312,26 @@ test.describe.serial('Red Hat Authentication extension verification', () => {
311312 test ( 'Tasks Configuring Red Hat Registry and Activating Red Hat Subscription are completed' , async ( { page } ) => {
312313 test . setTimeout ( 120_000 ) ;
313314 test . skip ( isCI && ( isMac || isLinux ) , 'Mac/Linux issue on CI: https://github.com/redhat-developer/podman-desktop-redhat-account-ext/issues/898' ) ;
314- console . log ( 'Finding Tasks in status Bar' ) ;
315315 const statusBar = new StatusBar ( page ) ;
316- await statusBar . tasksButton . click ( ) ;
317- console . log ( 'Opened Tasks in status Bar' ) ;
318- const tasksManager = page . getByTitle ( 'Tasks Manager' ) ;
319- await playExpect ( tasksManager ) . toBeVisible ( ) ;
316+ const tasks = await statusBar . openTasksPage ( ) ;
317+ await playExpect ( tasks . heading ) . toBeVisible ( ) ;
320318 // tasks are present in the Tasks Manager
321- const taskRegistry = tasksManager . getByTitle ( ' Configuring Red Hat Registry') ;
319+ const taskRegistry = tasks . taskList . getByRole ( 'row' , { name : ' Configuring Red Hat Registry' } ) ;
322320 await playExpect ( taskRegistry ) . toBeVisible ( ) ;
323- const taskSubscription = tasksManager . getByTitle ( ' Activating Red Hat Subscription') ;
321+ const taskSubscription = tasks . taskList . getByRole ( 'row' , { name : ' Activating Red Hat Subscription' } ) ;
324322 await playExpect ( taskSubscription ) . toBeVisible ( ) ;
325323 // Registry is added
326- const successImgRegistry = tasksManager . getByRole ( 'img' , { name : 'success icon of task Configuring Red Hat Registry' } ) ;
327- await playExpect ( successImgRegistry ) . toBeVisible ( { timeout : 20_000 } ) ;
324+ await playExpect ( taskRegistry . getByRole ( 'status' , { name : 'completed status for' } ) ) . toHaveText ( 'success' , { timeout : 20_000 } ) ;
328325 // subscription activation is finished
329326 // this runs endless on CI windows
330327 if ( isWindows && isCI ) {
331328 console . log ( 'Skipping waiting for subscription activation on Windows CI' ) ;
332329 } else {
333- const successImgSubscription = tasksManager . getByRole ( 'img' , { name : 'success icon of task Activating Red Hat Subscription' } ) ;
334- await playExpect ( successImgSubscription ) . toBeVisible ( { timeout : 60_000 } ) ;
330+ await playExpect ( taskSubscription . getByRole ( 'status' , { name : 'completed status for' } ) ) . toHaveText ( 'success' , { timeout : 60_000 } ) ;
335331 }
336332 // close tasks manager
337- const hideButton = tasksManager . getByRole ( 'button' ) . and ( tasksManager . getByTitle ( 'Hide' ) ) ;
338- await playExpect ( hideButton ) . toBeVisible ( ) ;
339- await hideButton . click ( ) ;
333+ await playExpect ( tasks . closeButton ) . toBeVisible ( ) ;
334+ await tasks . closeButton . click ( ) ;
340335 } ) ;
341336
342337 test . fail ( 'Logged in state in authentication page persists for at least 30 seconds' , async ( { navigationBar } ) => {
0 commit comments