Fix polls answer this question show text
This commit is contained in:
@@ -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"
|
||||
|
||||
@@ -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')
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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')
|
||||
|
||||
Reference in New Issue
Block a user