Maintenance: Improves reliability of TicketZoom Capybara/Rspec test

This commit is contained in:
Mantas Masalskis 2021-05-11 17:43:47 +03:00 committed by Thorsten Eckel
parent 041bf51b52
commit 96f6376461

View file

@ -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