Skip to content

Commit

Permalink
🔨 Add e2e test
Browse files Browse the repository at this point in the history
  • Loading branch information
michaeltomasik committed Mar 20, 2018
1 parent e742d94 commit 245b736
Showing 1 changed file with 3 additions and 12 deletions.
15 changes: 3 additions & 12 deletions test/e2e/voting.feature
Original file line number Diff line number Diff line change
Expand Up @@ -51,17 +51,8 @@ Feature: Voting page
And I wait 0.5 seconds
Then I should see text "You’re votes are being processed and will be confirmed. It may take up to 10 minutes to be secured in the blockchain." in "result box message" element

@pending
Scenario: should allow to select delegates by URL
Given I'm logged in as "delegate candidate"
When I go to "/main/voting/vote?votes=standby_27,standby_28,standby_29,nonexisting_22&unvotes=standby_33"
And I wait 3 seconds
Then I should see text "3 delegate names were successfully resolved for voting." in "upvotes message" element
And I should see text "1 of the delegate names selected for unvoting was not currently voted for:standby_33" in "notVotedYet message" element
And I should see text "1 of the provided delegate names could not be resolved:nonexisting_22" in "notFound message" element
And I should see "vote list" element with text matching regexp:
"""
standby_2[789]
standby_2[789]
standby_2[789]
"""
When I go to "/main/voting/vote?votes=genesis_12,genesis_14,genesis_16"
And I wait 1 seconds
Then I should see text "Confirm (Fee: 1 LSK)" in "confirm" element

0 comments on commit 245b736

Please sign in to comment.