fixes specs for exact link texts
This commit is contained in:
@@ -19,7 +19,7 @@ feature 'Verify email' do
|
|||||||
|
|
||||||
within("#verified_user_#{verified_user.id}_email") do
|
within("#verified_user_#{verified_user.id}_email") do
|
||||||
expect(page).to have_content 'roc*@example.com'
|
expect(page).to have_content 'roc*@example.com'
|
||||||
click_button "Send"
|
click_button "Send code"
|
||||||
end
|
end
|
||||||
|
|
||||||
expect(page).to have_content 'We have send you a confirmation email to your email account: rock@example.com'
|
expect(page).to have_content 'We have send you a confirmation email to your email account: rock@example.com'
|
||||||
@@ -58,7 +58,7 @@ feature 'Verify email' do
|
|||||||
visit verified_user_path
|
visit verified_user_path
|
||||||
|
|
||||||
verified_user.destroy
|
verified_user.destroy
|
||||||
click_button "Send"
|
click_button "Send code"
|
||||||
|
|
||||||
expect(page).to have_content "There was a problem sending you an email to your account"
|
expect(page).to have_content "There was a problem sending you an email to your account"
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -25,7 +25,7 @@ feature 'Verify Letter' do
|
|||||||
login_as(user)
|
login_as(user)
|
||||||
visit new_letter_path
|
visit new_letter_path
|
||||||
|
|
||||||
expect(page).to have_link "Office of Citizen", href: "http://www.madrid.es/portales/munimadrid/es/Inicio/El-Ayuntamiento/Atencion-al-ciudadano/Oficinas-de-Atencion-al-Ciudadano?vgnextfmt=default&vgnextchannel=5b99cde2e09a4310VgnVCM1000000b205a0aRCRD"
|
expect(page).to have_link "See Office of Citizen", href: "http://www.madrid.es/portales/munimadrid/es/Inicio/El-Ayuntamiento/Atencion-al-ciudadano/Oficinas-de-Atencion-al-Ciudadano?vgnextfmt=default&vgnextchannel=5b99cde2e09a4310VgnVCM1000000b205a0aRCRD"
|
||||||
end
|
end
|
||||||
|
|
||||||
scenario 'Errors on verification code' do
|
scenario 'Errors on verification code' do
|
||||||
@@ -51,7 +51,7 @@ feature 'Verify Letter' do
|
|||||||
|
|
||||||
allow_any_instance_of(CensusApi).to receive(:address).and_return(nil)
|
allow_any_instance_of(CensusApi).to receive(:address).and_return(nil)
|
||||||
|
|
||||||
click_button "Send me a letter"
|
click_button "Send me a letter with the code"
|
||||||
|
|
||||||
expect(page).to have_content "We could not verify your address with the Census please try again later"
|
expect(page).to have_content "We could not verify your address with the Census please try again later"
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -17,7 +17,7 @@ feature 'Level three verification' do
|
|||||||
verify_residence
|
verify_residence
|
||||||
|
|
||||||
within("#verified_user_#{verified_user.id}_phone") do
|
within("#verified_user_#{verified_user.id}_phone") do
|
||||||
click_button "Send"
|
click_button "Send code"
|
||||||
end
|
end
|
||||||
|
|
||||||
expect(page).to have_content 'Security code confirmation'
|
expect(page).to have_content 'Security code confirmation'
|
||||||
@@ -48,7 +48,7 @@ feature 'Level three verification' do
|
|||||||
verify_residence
|
verify_residence
|
||||||
|
|
||||||
within("#verified_user_#{verified_user.id}_email") do
|
within("#verified_user_#{verified_user.id}_email") do
|
||||||
click_button "Send"
|
click_button "Send code"
|
||||||
end
|
end
|
||||||
|
|
||||||
expect(page).to have_content 'We have send you a confirmation email to your email account: rock@example.com'
|
expect(page).to have_content 'We have send you a confirmation email to your email account: rock@example.com'
|
||||||
|
|||||||
@@ -15,7 +15,7 @@ feature 'Residence' do
|
|||||||
fill_in 'residence_postal_code', with: '28013'
|
fill_in 'residence_postal_code', with: '28013'
|
||||||
check 'residence_terms_of_service'
|
check 'residence_terms_of_service'
|
||||||
|
|
||||||
click_button 'Verify'
|
click_button 'Verify residence'
|
||||||
|
|
||||||
expect(page).to have_content 'Residence verified'
|
expect(page).to have_content 'Residence verified'
|
||||||
end
|
end
|
||||||
@@ -27,7 +27,7 @@ feature 'Residence' do
|
|||||||
visit account_path
|
visit account_path
|
||||||
click_link 'Verify my account'
|
click_link 'Verify my account'
|
||||||
|
|
||||||
click_button 'Verify'
|
click_button 'Verify residence'
|
||||||
|
|
||||||
expect(page).to have_content /\d errors? prevented your residence verification/
|
expect(page).to have_content /\d errors? prevented your residence verification/
|
||||||
end
|
end
|
||||||
@@ -47,7 +47,7 @@ feature 'Residence' do
|
|||||||
fill_in 'residence_postal_code', with: '28013'
|
fill_in 'residence_postal_code', with: '28013'
|
||||||
check 'residence_terms_of_service'
|
check 'residence_terms_of_service'
|
||||||
|
|
||||||
click_button 'Verify'
|
click_button 'Verify residence'
|
||||||
|
|
||||||
expect(page).to have_content 'The census of the city of Madrid could not verify your information'
|
expect(page).to have_content 'The census of the city of Madrid could not verify your information'
|
||||||
end
|
end
|
||||||
@@ -68,11 +68,11 @@ feature 'Residence' do
|
|||||||
fill_in 'residence_postal_code', with: '28013'
|
fill_in 'residence_postal_code', with: '28013'
|
||||||
check 'residence_terms_of_service'
|
check 'residence_terms_of_service'
|
||||||
|
|
||||||
click_button 'Verify'
|
click_button 'Verify residence'
|
||||||
expect(page).to have_content 'The census of the city of Madrid could not verify your information'
|
expect(page).to have_content 'The census of the city of Madrid could not verify your information'
|
||||||
end
|
end
|
||||||
|
|
||||||
click_button 'Verify'
|
click_button 'Verify residence'
|
||||||
expect(page).to have_content 'You have reached the maximum number of Census verification tries'
|
expect(page).to have_content 'You have reached the maximum number of Census verification tries'
|
||||||
expect(URI.parse(current_url).path).to eq(account_path)
|
expect(URI.parse(current_url).path).to eq(account_path)
|
||||||
|
|
||||||
|
|||||||
@@ -73,7 +73,7 @@ feature 'Verified users' do
|
|||||||
visit verified_user_path
|
visit verified_user_path
|
||||||
|
|
||||||
within("#verified_user_#{verified_user.id}_email") do
|
within("#verified_user_#{verified_user.id}_email") do
|
||||||
click_button "Send"
|
click_button "Send code"
|
||||||
end
|
end
|
||||||
|
|
||||||
expect(page).to have_content 'We have send you a confirmation email to your email account: rock@example.com'
|
expect(page).to have_content 'We have send you a confirmation email to your email account: rock@example.com'
|
||||||
@@ -95,7 +95,7 @@ feature 'Verified users' do
|
|||||||
visit verified_user_path
|
visit verified_user_path
|
||||||
|
|
||||||
within("#verified_user_#{verified_user.id}_phone") do
|
within("#verified_user_#{verified_user.id}_phone") do
|
||||||
click_button "Send"
|
click_button "Send code"
|
||||||
end
|
end
|
||||||
|
|
||||||
expect(page).to have_content 'Enter the confirmation code'
|
expect(page).to have_content 'Enter the confirmation code'
|
||||||
|
|||||||
@@ -105,7 +105,7 @@ module CommonActions
|
|||||||
fill_in 'residence_postal_code', with: '28013'
|
fill_in 'residence_postal_code', with: '28013'
|
||||||
check 'residence_terms_of_service'
|
check 'residence_terms_of_service'
|
||||||
|
|
||||||
click_button 'Verify'
|
click_button 'Verify residence'
|
||||||
expect(page).to have_content 'Residence verified'
|
expect(page).to have_content 'Residence verified'
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user