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

Improve account switcher e2e tests - Closes #541 #458

Merged
merged 1 commit into from
Mar 14, 2018
Merged
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
24 changes: 23 additions & 1 deletion test/e2e/savedAccounts.feature
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Feature: Saved Accounts
Scenario: should save account locally, after page reload it should require passphrase to do the first transaction, and remember the passphrase for next transactions
When I go to "main/add-account/"
When I go to "/"
Given I'm logged in as "genesis"
When I wait 1 seconds
And I refresh the page
Expand Down Expand Up @@ -45,3 +45,25 @@ Feature: Saved Accounts
And I click "remove button"
And I click "edit button"
Then I should see 1 instances of "saved account card"

Scenario: should save accounts only once
When I go to "/"
And I fill in passphrase of "empty account" to "passphrase" field
And I click "login button"
Then I should be logged in as "empty account" account
When I click "saved accounts" in main menu
And I click "add lisk id card"
And I fill in passphrase of "genesis" to "passphrase" field
And I click "login button"
And I click "saved accounts" in main menu
Then I should see 2 instances of "saved account card"
When I click "add lisk id card"
And I fill in passphrase of "empty account" to "passphrase" field
And I click "login button"
When I click "saved accounts" in main menu
Then I should see 2 instances of "saved account card"
And I click "add lisk id card"
And I fill in passphrase of "genesis" to "passphrase" field
And I click "login button"
And I click "saved accounts" in main menu
Then I should see 2 instances of "saved account card"