From 96f637646164eb6e6ff798620f4c8dc6455c7c69 Mon Sep 17 00:00:00 2001 From: Mantas Masalskis Date: Tue, 11 May 2021 17:43:47 +0300 Subject: [PATCH] Maintenance: Improves reliability of TicketZoom Capybara/Rspec test --- spec/system/ticket/zoom_spec.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/spec/system/ticket/zoom_spec.rb b/spec/system/ticket/zoom_spec.rb index 741c94374..8c5b83d74 100644 --- a/spec/system/ticket/zoom_spec.rb +++ b/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