diff --git a/features/step_definitions/shared_steps.rb b/features/step_definitions/shared_steps.rb index 2ba585890..4c122148b 100644 --- a/features/step_definitions/shared_steps.rb +++ b/features/step_definitions/shared_steps.rb @@ -120,5 +120,6 @@ Then(/^I change "([^"]*)" with "([^"]*)" in "([^"]*)" textarea field$/) do |old_ end Then(/^I should see "([^"]*)" on "([^"]*)" element$/) do |text, element| + wait_for_ajax expect(find(element)).to have_content(text) end