Updates tests with new texts

This commit is contained in:
Alberto Garcia Cabeza
2015-10-21 17:04:11 +02:00
parent 7843834c9c
commit abad54d01a
43 changed files with 201 additions and 255 deletions

View File

@@ -201,7 +201,7 @@ feature 'Admin activity' do
visit proposal_path(proposal)
within("#proposal_#{proposal.id}") do
click_link 'Ban author'
click_link 'Hide author'
end
visit admin_activity_path
@@ -221,7 +221,7 @@ feature 'Admin activity' do
visit moderation_users_path(name_or_email: user.username)
within(".admin-list") do
click_link 'Ban'
click_link 'Block'
end
visit admin_activity_path

View File

@@ -18,7 +18,7 @@ feature 'Admin comments' do
visit proposal_path(proposal)
within("#proposal_#{proposal.id}") do
click_link 'Ban author'
click_link 'Hide author'
end
visit admin_comments_path

View File

@@ -32,7 +32,7 @@ feature 'Admin officials' do
select '3', from: 'user_official_level', exact: false
click_button 'Update User'
expect(page).to have_content 'Official position saved!'
expect(page).to have_content 'Details of official saved'
visit admin_officials_path
@@ -55,7 +55,7 @@ feature 'Admin officials' do
select '4', from: 'user_official_level', exact: false
click_button 'Update User'
expect(page).to have_content 'Official position saved!'
expect(page).to have_content 'Details of official saved'
visit admin_officials_path
@@ -68,9 +68,9 @@ feature 'Admin officials' do
scenario 'Destroy' do
visit edit_admin_official_path(@official)
click_link "Remove 'Official' condition"
click_link "Remove 'Official' status"
expect(page).to have_content 'User is not an official anymore'
expect(page).to have_content 'Details saved: the user is no longer an official'
expect(current_path).to eq(admin_officials_path)
expect(page).to_not have_content @citizen.name
expect(page).to_not have_content @official.name

View File

@@ -22,7 +22,7 @@ feature 'Admin::Organizations' do
expect(page).to have_content(org.user.email)
expect(page).to_not have_content("Greentroll")
expect(page).to_not have_content("trol@troller.com")
expect(page).to have_content("There is 1 organization without user or with the user banned")
expect(page).to have_content("There is also one organisation with no users or with a hidden user")
end
end

View File

@@ -25,6 +25,6 @@ feature 'Admin settings' do
click_button 'Update'
end
expect(page).to have_content 'Setting updated!'
expect(page).to have_content 'Value updated'
end
end

View File

@@ -54,7 +54,7 @@ feature 'Admin tags' do
expect(page).to have_content tag2.name
within("#edit_tag_#{tag2.id}") do
click_link 'Delete Topic'
click_link 'Destroy Topic'
end
visit admin_tags_path
@@ -73,7 +73,7 @@ feature 'Admin tags' do
expect(page).to have_content tag2.name
within("#edit_tag_#{tag2.id}") do
click_link 'Delete Topic'
click_link 'Destroy Topic'
end
visit admin_tags_path

View File

@@ -43,7 +43,7 @@ feature 'Incomplete verifications' do
visit admin_verifications_path
within "#user_#{incompletely_verified_user.id}" do
expect(page).to have_content "Spanish ID"
expect(page).to have_content "DNI"
expect(page).to have_content incompletely_verified_user.document_number
expect(page).to have_content Date.new(1900, 1, 1)
expect(page).to have_content "28000"