shows voting button for sps only if voting allowed

This commit is contained in:
Juanjo Bazán
2016-04-18 12:04:50 +02:00
parent 11bcdf0211
commit c939339020
3 changed files with 16 additions and 8 deletions

View File

@@ -176,7 +176,7 @@ module CommonActions
def expect_message_voting_not_allowed
expect(page).to have_content 'Voting phase is closed'
expect(page).to have_selector('.in-favor a', visible: false)
expect(page).to_not have_selector('.in-favor a')
end
def create_featured_proposals