Merge pull request #875 from palomahnhp/inform_users_in_vote_comments
show link to sign in for no connect users
This commit is contained in:
@@ -158,6 +158,12 @@ module CommonActions
|
||||
expect(page).to have_selector('.in-favor a', 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('.logged', visible: false)
|
||||
expect(page).to have_selector('.not-logged', 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)
|
||||
|
||||
Reference in New Issue
Block a user