Fix polls answer this question show text

This commit is contained in:
Bertocq
2017-10-03 18:53:44 +02:00
parent 21e14776fc
commit 825671ad9b
4 changed files with 9 additions and 9 deletions

View File

@@ -494,7 +494,7 @@ en:
create_question: "Create question"
default_valid_answers: "Yes, No"
show:
answer_this_question: "Answer this question"
answer_this_question: "Go to voting page"
original_proposal: "Original proposal"
author: "Created by"
dates_title: "Participation dates"

View File

@@ -82,7 +82,7 @@ feature 'Poll Questions' do
login_as(create(:user, :level_two, geozone: geozone))
visit question_path(question)
expect(page).to have_link('Answer this question')
expect(page).to have_link('Go to voting page')
end
scenario 'Level 2 users who have already answered' do
@@ -94,7 +94,7 @@ feature 'Poll Questions' do
login_as user
visit question_path(question)
expect(page).to have_link('Answer this question')
expect(page).to have_link('Go to voting page')
end
scenario 'Level 2 users answering', :js do
@@ -104,7 +104,7 @@ feature 'Poll Questions' do
login_as user
visit question_path(question)
expect(page).to have_link('Answer this question')
expect(page).to have_link('Go to voting page')
end
scenario 'Records participation', :js do
@@ -114,7 +114,7 @@ feature 'Poll Questions' do
login_as user
visit question_path(question)
click_link 'Answer this question'
click_link 'Go to voting page'
click_link 'Han Solo'
expect(page).to_not have_link('Han Solo')

View File

@@ -12,7 +12,7 @@ feature "Voter" do
login_as user
visit question_path(question)
click_link 'Answer this question'
click_link 'Go to voting page'
click_link 'Yes'
expect(page).to_not have_link('Yes')
@@ -81,7 +81,7 @@ feature "Voter" do
login_as user
visit question_path(question)
click_link 'Answer this question'
click_link 'Go to voting page'
expect(page).to_not have_link('Yes')
expect(page).to have_content "You have already participated in a booth for this poll."
@@ -91,4 +91,4 @@ feature "Voter" do
end
end
end

View File

@@ -301,7 +301,7 @@ module CommonActions
def vote_for_poll_via_web
visit question_path(question)
click_link 'Answer this question'
click_link 'Go to voting page'
click_link 'Yes'
expect(page).to_not have_link('Yes')