From dfc09404d34d53fca3da86ba47789896fb20c72c Mon Sep 17 00:00:00 2001 From: blacksmith-welder Date: Sun, 5 Jan 2025 12:05:48 +0200 Subject: [PATCH] Fix failing tests (#61) --- staff_features/shared/step_definitions.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/staff_features/shared/step_definitions.rb b/staff_features/shared/step_definitions.rb index 41ffe60..87cf803 100644 --- a/staff_features/shared/step_definitions.rb +++ b/staff_features/shared/step_definitions.rb @@ -232,7 +232,7 @@ end Then('the {string} created message is displayed') do |string| - wait_for_ajax if current_url.include? 'resources' + wait_for_ajax if current_url.include?('resources' || 'digital_objects') expect(find('.alert.alert-success.with-hide-alert').text).to match(/^#{string}.*created.*$/i)