Skip to content

Commit

Permalink
update specs
Browse files Browse the repository at this point in the history
  • Loading branch information
mwvolo committed Sep 18, 2024
1 parent c8fdef5 commit 1aaf6f2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@
<td style="font-family: Arial, Helvetica, sans-serif;padding-top: 10px;padding-right: 30px;padding-bottom: 20px;padding-left: 30px;">
<p style="color: rgb(0, 0, 0); font-family: Helvetica, Arial, Helvetica, sans-serif; font-weight: normal; margin: 0px; line-height: 2;">
<div style="text-align: center">
Verify your email by clicking the button below or use your pin: <b><%= @confirmation_pin %></b>
Verify your email by clicking the button below or use your pin: <b id='pin'><%= @confirmation_pin %></b>
</div>
</p>
</td>
Expand Down
8 changes: 4 additions & 4 deletions spec/features/newflow/student_signup_flow_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ module Newflow

example 'verify email by entering PIN sent in the email' do
# ... with a link
pin = current_email.find('b').text
pin = current_email.find('#pin').text
fill_in('confirm_pin', with: pin)
screenshot!
click_on('commit')
Expand Down Expand Up @@ -120,7 +120,7 @@ module Newflow
expect(current_email).to be_truthy

# ... with a link
pin = current_email.find('b').text
pin = current_email.find('#pin').text
fill_in('confirm_pin', with: pin)
screenshot!
click_on('commit')
Expand Down Expand Up @@ -175,7 +175,7 @@ module Newflow
open_email email
# capture_email!(address: email)
expect(current_email).to be_truthy
old_pin = current_email.find('b').text
old_pin = current_email.find('#pin').text
old_confirmation_code_url = get_path_from_absolute_link(current_email, '#confirm-link')

# edit email
Expand All @@ -196,7 +196,7 @@ module Newflow
# a different pin is sent in the edited email
open_email new_email
capture_email!(address: new_email)
pin = current_email.find('b').text
pin = current_email.find('#pin').text
expect(pin).not_to eq(old_pin)
# ...as well as a different confirmation code url
confirmation_code_url = get_path_from_absolute_link(current_email, '#confirm-link')
Expand Down

0 comments on commit 1aaf6f2

Please sign in to comment.