From 52780f64ce235ce6334ef5d152268c8b5c495db7 Mon Sep 17 00:00:00 2001 From: Rolf Schmidt Date: Mon, 24 Jan 2022 08:55:33 +0000 Subject: [PATCH] Maintenance: Add missing click link hook to wait for empty ajax queue there as well. --- spec/support/capybara/custom_extensions.rb | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/spec/support/capybara/custom_extensions.rb b/spec/support/capybara/custom_extensions.rb index dbd72248a..b8a65287a 100644 --- a/spec/support/capybara/custom_extensions.rb +++ b/spec/support/capybara/custom_extensions.rb @@ -54,6 +54,12 @@ module ZammadCapybarActionDelegator end end + def click_link(...) + super.tap do + await_empty_ajax_queue + end + end + def click_link_or_button(...) super.tap do await_empty_ajax_queue