Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 1 addition & 5 deletions spec/support/feature_helpers.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
Loading