From 14afe747f94aa4853a72ece29280ef2933dce669 Mon Sep 17 00:00:00 2001 From: Thorsten Eckel Date: Tue, 24 Jul 2018 20:12:48 +0200 Subject: [PATCH] Test stabilization: Macro execution and result checking lead to race condition. --- test/browser/agent_ticket_macro_test.rb | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/test/browser/agent_ticket_macro_test.rb b/test/browser/agent_ticket_macro_test.rb index 3b2883ed7..da18df919 100644 --- a/test/browser/agent_ticket_macro_test.rb +++ b/test/browser/agent_ticket_macro_test.rb @@ -113,7 +113,10 @@ class AgentTicketMacroTest < TestCase perform_macro(name: macro_name) - exists_not(css: '.tasks > a') + watch_for_disappear( + css: '.tasks > a', + timeout: 5, + ) end def test_ux_flow_next_up_advance_to_next_ticket_from_overview