This repository has been archived by the owner on Apr 15, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 60
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch '1.3.0' into 573-multi-account-management
- Loading branch information
Showing
19 changed files
with
239 additions
and
219 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
dist | ||
node_modules | ||
coverage | ||
app/build |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
Feature: Account management | ||
Scenario: should allow to save account locally, after page reload it should require passphrase to do the first transaction, and remember the passphrase for next transactions | ||
Given I'm logged in as "genesis" | ||
When I click "save account" in main menu | ||
And I click "save account button" | ||
And I wait 1 seconds | ||
And I should see text "Account saved" in "toast" element | ||
And I refresh the page | ||
And I wait 2 seconds | ||
Then I should be logged in | ||
And I click "send button" | ||
And I should see empty "passphrase" field | ||
And I fill in "1" to "amount" field | ||
And I fill in "537318935439898807L" to "recipient" field | ||
And I fill in passphrase of "genesis" to "passphrase" field | ||
And I click "submit button" | ||
And I click "ok button" | ||
And I wait 1 seconds | ||
And I click "send button" | ||
And I fill in "2" to "amount" field | ||
And I fill in "537318935439898807L" to "recipient" field | ||
And I click "submit button" | ||
And I should see alert dialog with title "Success" and text "Your transaction of 2 LSK to 537318935439898807L was accepted and will be processed in a few seconds." | ||
|
||
Scenario: should allow to forget locally saved account | ||
Given I'm logged in as "any account" | ||
When I click "save account" in main menu | ||
And I click "save account button" | ||
And I refresh the page | ||
And I wait 2 seconds | ||
And I click "forget account" in main menu | ||
And I wait 1 seconds | ||
Then I should see text "Account was successfully forgotten." in "toast" element | ||
And I refresh the page | ||
And I should be on login page | ||
|
||
@integration | ||
Scenario: should allow to exit save account dialog with "cancel button" | ||
Given I'm logged in as "any account" | ||
When I click "save account" in main menu | ||
And I click "cancel button" | ||
Then I should see no "modal dialog" | ||
|
||
@integration | ||
Scenario: should allow to exit save account dialog with "x button" | ||
Given I'm logged in as "any account" | ||
When I click "save account" in main menu | ||
And I click "x button" | ||
Then I should see no "modal dialog" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,9 @@ | ||
Feature: Forging tab | ||
Scenario: should allow to view forging center if account is delegate | ||
Scenario: should allow to view forging center if account is delegate and should show more blocks on scroll | ||
Given I'm logged in as "delegate" | ||
When I click tab number 3 | ||
Then I should see forging center | ||
And I should see table with 20 lines | ||
And I scroll to the bottom | ||
And I should see table with 40 lines | ||
|
||
Scenario: should show more blocks on scroll | ||
Given I'm logged in as "delegate" | ||
When I click tab number 3 | ||
Then I should see table with 20 lines | ||
When I scroll to the bottom | ||
Then I should see table with 40 lines |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
Feature: Register delegate | ||
Scenario: should allow to register a delegate | ||
Given I'm logged in as "delegate candidate" | ||
When I click "register as delegate" in main menu | ||
And I fill in "test" to "username" field | ||
And I click "register button" | ||
Then I should see alert dialog with title "Success" and text "Delegate registration was successfully submitted with username: "test". It can take several seconds before it is processed." | ||
And I click "ok button" | ||
And I wait 15 seconds | ||
And I should see text "test" in "delegate name" element | ||
And There is no "register as delegate" in main menu | ||
|
||
Scenario: should allow to register a delegate with second passphrase | ||
Given I'm logged in as "second passphrase account" | ||
When I click "register as delegate" in main menu | ||
And I fill in "test2" to "username" field | ||
And I fill in second passphrase of "second passphrase account" to "second passphrase" field | ||
And I click "register button" | ||
Then I should see alert dialog with title "Success" and text "Delegate registration was successfully submitted with username: "test2". It can take several seconds before it is processed." | ||
|
||
@integration | ||
Scenario: should allow to exit delegate registration dialog | ||
Given I'm logged in as "genesis" | ||
When I click "register as delegate" in main menu | ||
And I click "cancel button" | ||
Then I should see no "modal dialog" | ||
|
||
@integration | ||
Scenario: should not allow to register delegate if not enough funds for the fee | ||
Given I'm logged in as "empty account" | ||
When I click "register as delegate" in main menu | ||
Then I should see "Insufficient funds for 25 LSK fee" error message | ||
And "register button" should be disabled | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
Feature: Register second passphrase | ||
Scenario: should allow to set 2nd passphrase | ||
Given I'm logged in as "second passphrase candidate" | ||
When I click "register second passphrase" in main menu | ||
And I click "next button" | ||
And I 250 times move mouse randomly | ||
And I remember passphrase, click "next button", fill in missing word | ||
And I click "next button" | ||
Then I should see alert dialog with title "Success" and text "Second passphrase registration was successfully submitted. It can take several seconds before it is processed." | ||
|
||
Scenario: should not allow to set 2nd passphrase again | ||
Given I'm logged in as "second passphrase account" | ||
Then There is no "register second passphrase" in main menu | ||
|
||
@integration | ||
Scenario: should not allow to set 2nd passphrase if not enough funds for the fee | ||
Given I'm logged in as "empty account" | ||
When I click "register second passphrase" in main menu | ||
Then I should see "Insufficient funds for 5 LSK fee" error message | ||
And "next button" should be disabled | ||
|
||
@integration | ||
Scenario: should allow to exit 2nd passphrase registration dialog | ||
Given I'm logged in as "genesis" | ||
When I click "register second passphrase" in main menu | ||
And I click "cancel button" | ||
Then I should see no "modal dialog" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.