Browse Source

Maintenance: Improves reliability of TicketZoom Capybara/Rspec test

Mantas Masalskis 3 years ago
parent
commit
96f6376461
1 changed files with 3 additions and 1 deletions
  1. 3 1
      spec/system/ticket/zoom_spec.rb

+ 3 - 1
spec/system/ticket/zoom_spec.rb

@@ -1191,8 +1191,10 @@ RSpec.describe 'Ticket zoom', type: :system do
 
     def open_nth_item(nth)
       within :active_content do
-        find_all('.table tr.item .user-popover')[nth].click
+        find_all('.table tr.item a[href^="#ticket/zoom"]')[nth].click
       end
+
+      await_empty_ajax_queue
     end
   end