diff --git a/spec/support/feature_helpers.rb b/spec/support/feature_helpers.rb index 16cd540..f8e5dab 100644 --- a/spec/support/feature_helpers.rb +++ b/spec/support/feature_helpers.rb @@ -359,7 +359,7 @@ def form_is_filled_in_by_form_filler(live_form_link, yes_branch: false, confirma end # rubocop:enable Style/IdenticalConditionalBranches - if filler_answer_email_enabled? + if page.find("h1").has_content?("Do you want to get an email with a copy of your answers?") logger.info "And I am asked if I want a copy of my answers" expect(page.find("h1")).to have_content "Do you want to get an email with a copy of your answers?" choose "No", visible: false @@ -587,10 +587,6 @@ def skip_file_upload? ENV.fetch("SKIP_FILE_UPLOAD", false) end - def filler_answer_email_enabled? - Settings.features.filler_answer_email_enabled - end - def visit_product_page logger.info "Visiting product pages at #{forms_product_page_url}" visit forms_product_page_url