Browse Source

Maintenance: Mobile - Stabilize live users test.

Dusan Vuckovic 1 year ago
parent
commit
c604dd8217
1 changed files with 2 additions and 1 deletions
  1. 2 1
      spec/system/apps/mobile/tickets/viewer/live_users_spec.rb

+ 2 - 1
spec/system/apps/mobile/tickets/viewer/live_users_spec.rb

@@ -66,7 +66,8 @@ RSpec.describe 'Mobile > Ticket > Viewers > Live Users', app: :mobile, authentic
       another_taskbar_item = create(:taskbar, user_id: third_agent.id, key: "Ticket-#{ticket.id}", app: 'mobile')
       update_taskbar_item(another_taskbar_item, { editing: true }, third_agent.id, 4)
 
-      wait_for_viewers_subscription(number: 5)
+      # Wait until the third viewer name element appears.
+      find 'div', exact_text: third_agent.fullname, wait: 60
 
       expect(page)
         .to have_text('Opened in tabs')