Changes test for verification process

This commit is contained in:
Alberto Garcia Cabeza
2015-09-02 12:51:32 +02:00
parent da86c5d6e0
commit c06491db57
3 changed files with 8 additions and 8 deletions

View File

@@ -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

View File

@@ -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

View File

@@ -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