Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Setup @advanced tag for e2e test scenarios - Closes #559 #597

Merged
merged 4 commits into from
Mar 23, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,7 @@ node('lisk-hub') {
# Run end-to-end tests

if [ -z $CHANGE_BRANCH ]; then
npm run --silent e2e-test -- --params.baseURL file://$WORKSPACE/app/build/index.html --params.liskCoreURL http://127.0.0.1:400$N --cucumberOpts.tags @advanced
npm run --silent e2e-test -- --params.baseURL file://$WORKSPACE/app/build/index.html --params.liskCoreURL https://testnet.lisk.io --cucumberOpts.tags @testnet --params.useTestnetPassphrase true
else
echo "Skipping @testnet end-to-end tests because we're not on 'development' branch"
Expand Down
2 changes: 1 addition & 1 deletion protractor.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ exports.config = {

cucumberOpts: {
require: 'test/e2e/step_definitions/*.js',
tags: [],
tags: ['~@advanced'],
format: 'pretty',
profile: false,
'no-source': true,
Expand Down
1 change: 1 addition & 0 deletions test/e2e/explorer.feature
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ Feature: Explorer page
When I click "search bar button"
Then I should see ID "9938914350729699234" in transaction header

@advanced
Scenario: should show search results on custom node for an account and a transactions while being logged in
Given I'm logged in as "genesis"
And I wait 1 seconds
Expand Down
18 changes: 0 additions & 18 deletions test/e2e/login.feature
Original file line number Diff line number Diff line change
@@ -1,22 +1,4 @@
Feature: Login page
@pending
Scenario: should allow to login
Given I'm on login page
When I fill in passphrase of "genesis" to "passphrase" field
And I click "login button"
Then I should be logged in as "genesis" account

@integration
Scenario: should show toast when trying to connect to an unavailable custom node
Given I'm on login page
When I fill in passphrase of "genesis" to "passphrase" field
And I select option no. 3 from "network" select
And I clear "address" field
And I fill in "http://localhost:4218" to "address" field
And I click "login button"
And I wait 2 seconds
Then I should see text "Unable to connect to the node" in "toast" element

Scenario: should allow to login to Mainnet
Given I'm on login page
When I fill in passphrase of "genesis" to "passphrase" field
Expand Down
1 change: 1 addition & 0 deletions test/e2e/savedAccounts.feature
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ Feature: Saved Accounts
And I click "edit button"
Then I should see 1 instances of "saved account card"

@advanced
Scenario: should save accounts only once
When I go to "/"
And I fill in passphrase of "empty account" to "passphrase" field
Expand Down
12 changes: 3 additions & 9 deletions test/e2e/send.feature
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,7 @@ Feature: Send dialog
And I wait 1 seconds
Then I should see text "Transaction is being processed and will be confirmed. It may take up to 15 minutes to be secured in the blockchain." in "result box message" element

@integration
Scenario: should not allow to send when not enough funds
Given I'm logged in as "empty account"
And I fill in "1" to "amount" field
And I fill in "94495548317450502L" to "recipient" field
Then I should see "Not enough LSK" error message
And "send next button" should be disabled

@advanced
Scenario: should allow to send with second passphrase
Given I'm logged in as "second passphrase account"
And I fill in "1" to "amount" field
Expand All @@ -29,7 +22,8 @@ Feature: Send dialog
Then I should see text "Transaction is being processed and will be confirmed. It may take up to 15 minutes to be secured in the blockchain." in "result box message" element

Scenario: should be able to init account if needed
Given I'm logged in as "without initialization"
Given I wait 10 seconds
And I'm logged in as "without initialization"
Then I should see "account initialization" element
When I click "account init button"
And I click "send button"
Expand Down
9 changes: 2 additions & 7 deletions test/e2e/voting.feature
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,6 @@ Feature: Voting page
When I scroll to the bottom of "delegate list"
Then I should see 200 instances of "delegate row"

Scenario: should allow to view delegates with cold account
Given I'm logged in as "empty account"
And I wait 0.1 seconds
When I go to "main/voting/"
Then I should see 100 instances of "delegate row"

Scenario: should allow to search delegates
Given I'm logged in as "any account"
And I wait 0.1 seconds
Expand All @@ -37,6 +31,7 @@ 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

@advanced
Scenario: should allow to vote with second passphrase account
Given I'm logged in as "second passphrase account"
And I wait 0.1 seconds
Expand All @@ -50,7 +45,7 @@ Feature: Voting page
And I click "confirm"
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"
Expand Down