Files
nairobi/spec/support/common_actions/votes.rb
Javi Martín 11b8561ed8 Remove unused method
It isn't used since commit d0b8fef6.
2020-10-25 14:23:53 +01:00

23 lines
885 B
Ruby

module Votes
def expect_message_you_need_to_sign_in
expect(page).to have_content "You must sign in or sign up to continue"
expect(page).to have_selector(".in-favor", visible: false)
end
def expect_message_you_need_to_sign_in_to_vote_comments
expect(page).to have_content "You must sign in or sign up to vote"
expect(page).to have_selector(".participation-allowed", visible: false)
expect(page).to have_selector(".participation-not-allowed", visible: true)
end
def expect_message_to_many_anonymous_votes
expect(page).to have_content "Too many anonymous votes to admit vote"
expect(page).to have_selector(".in-favor a", visible: false)
end
def expect_message_only_verified_can_vote_proposals
expect(page).to have_content "Only verified users can vote on proposals"
expect(page).to have_selector(".in-favor", visible: false)
end
end