Skip to content

Commit

Permalink
update feature specs for pose
Browse files Browse the repository at this point in the history
  • Loading branch information
mwvolo committed Nov 29, 2023
1 parent ccb3fd3 commit 1e98978
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions spec/features/pose_terms_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,13 @@
log_in('user','password')

screenshot!
expect(page).to have_content("Terms of Use")
expect(page).to have_content("To continue, please review and agree to the following site terms")
expect(page).to have_content(t :"terms.pose.contract_acceptance_required")
find(:css, '#agreement_i_agree').click
click_button (t :"terms.pose.agree")

screenshot!
expect(page).to have_content("Privacy Policy")
expect(page).to have_content("To continue, please review and agree to the following site terms")
expect(page).to have_content(t :"terms.pose.contract_acceptance_required")
find(:css, '#agreement_i_agree').click
click_button (t :"terms.pose.agree")
Expand Down
4 changes: 2 additions & 2 deletions spec/support/feature_helpers.rb
Original file line number Diff line number Diff line change
Expand Up @@ -430,10 +430,10 @@ def complete_add_password_success_screen
def complete_terms_screens(without_privacy_policy: false)

check 'agreement_i_agree'
expect(page).to have_content('Terms of Use')
expect(page).to have_content('To continue, please review and agree to the following site terms')
click_button (t :"terms.pose.agree")
unless without_privacy_policy
expect(page).to have_content('Privacy Policy')
expect(page).to have_content('To continue, please review and agree to the following site terms')
check 'agreement_i_agree'
click_button (t :"terms.pose.agree")
end
Expand Down

0 comments on commit 1e98978

Please sign in to comment.