diff --git a/staff_features/shared/step_definitions.rb b/staff_features/shared/step_definitions.rb index b00d9ea..6fcf34d 100644 --- a/staff_features/shared/step_definitions.rb +++ b/staff_features/shared/step_definitions.rb @@ -209,6 +209,8 @@ end Then('the {string} created message is displayed') do |string| + wait_for_ajax if current_url.include? 'resources' || 'digital_objects' + expect(find('.alert.alert-success.with-hide-alert').text).to match(/^#{string}.*created.*$/i) end