Changes test for verification process
This commit is contained in:
@@ -30,7 +30,7 @@ feature 'Verify email' do
|
||||
expect(page).to have_content "You are now a verified user"
|
||||
|
||||
expect(page).to_not have_link "Verify my account"
|
||||
expect(page).to have_content "You are a level 3 user"
|
||||
expect(page).to have_content "Verified account"
|
||||
end
|
||||
|
||||
scenario "Errors on token verification" do
|
||||
|
||||
@@ -10,7 +10,7 @@ feature 'Verify Letter' do
|
||||
|
||||
click_button "Send me a letter"
|
||||
|
||||
expect(page).to have_content "You will receive a letter to your home address"
|
||||
expect(page).to have_content "Thank you for requesting a code maximum security in a few days we will send it to the address on your census data. Remember that you can save shipping collecting your code in any of the Office of Citizen Services."
|
||||
end
|
||||
|
||||
scenario "Error accessing address from CensusApi" do
|
||||
@@ -34,7 +34,7 @@ feature 'Verify Letter' do
|
||||
|
||||
click_button "Send me a letter"
|
||||
|
||||
expect(page).to have_content "You will receive a letter to your home address"
|
||||
expect(page).to have_content "Thank you for requesting a code maximum security in a few days we will send it to the address on your census data. Remember that you can save shipping collecting your code in any of the Office of Citizen Services."
|
||||
end
|
||||
|
||||
scenario "Deny access unless verified residence" do
|
||||
@@ -53,7 +53,7 @@ feature 'Verify Letter' do
|
||||
login_as(user)
|
||||
visit new_letter_path
|
||||
|
||||
expect(page).to have_content 'You have not yet confirmed your personal data'
|
||||
expect(page).to have_content 'You have not yet enter the confirmation code'
|
||||
expect(URI.parse(current_url).path).to eq(new_sms_path)
|
||||
end
|
||||
|
||||
|
||||
@@ -28,10 +28,10 @@ feature 'Level three verification' do
|
||||
|
||||
expect(page).to have_content 'Correct code'
|
||||
|
||||
expect(page).to have_content "You are now a verified user"
|
||||
expect(page).to have_content "Correct code. Your account is verified"
|
||||
|
||||
expect(page).to_not have_link "Verify my account"
|
||||
expect(page).to have_content "You are a level 3 user"
|
||||
expect(page).to have_content "Verified account"
|
||||
end
|
||||
|
||||
scenario 'Verification with residency and verified email' do
|
||||
@@ -61,7 +61,7 @@ feature 'Level three verification' do
|
||||
expect(page).to have_content "You are now a verified user"
|
||||
|
||||
expect(page).to_not have_link "Verify my account"
|
||||
expect(page).to have_content "You are a level 3 user"
|
||||
expect(page).to have_content "Verified account"
|
||||
end
|
||||
|
||||
scenario 'Verification with residency and sms and letter' do
|
||||
@@ -87,6 +87,6 @@ feature 'Level three verification' do
|
||||
|
||||
click_button "Send me a letter"
|
||||
|
||||
expect(page).to have_content "You will receive a letter to your home address"
|
||||
expect(page).to have_content "Thank you for requesting a code maximum security in a few days we will send it to the address on your census data. Remember that you can save shipping collecting your code in any of the Office of Citizen Services."
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user