-
Notifications
You must be signed in to change notification settings - Fork 96
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added request token test for when there is a message and amount is sp…
…ecifically 0
- Loading branch information
1 parent
e7f8b9c
commit da498d8
Showing
6 changed files
with
53 additions
and
24 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
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,16 +1,32 @@ | ||
Feature: Request Token | ||
Background: Add an account and navigate to wallet | ||
Given I add an account with passphrase "peanut hundred pen hawk invite exclude brain chunk gadget wait wrong ready" password "Password1$" name 'test_acc' | ||
Then I go to page "wallet" | ||
|
||
Scenario: Request token should generate a copy link | ||
Given I click on a button with text "Request" | ||
And I go to page "wallet" | ||
And I wait for "2 seconds" | ||
And I click on a button with text "Request" | ||
Then I should see "Request tokens" | ||
And "lisk_mainchain" should be selected in "Recipient application" dropdown | ||
And "Lisk" should be selected in "Token" dropdown | ||
And button with text 'Copy link' should be disabled | ||
And Element 'qrContainer' should contain class 'disabled' | ||
|
||
Scenario: Request token should not generate a copy link if amount is 0 | ||
Given I type "0" in "amount" | ||
Then button with text 'Copy link' should be disabled | ||
And Element 'qrContainer' should contain class 'disabled' | ||
|
||
Scenario: Request token should generate a copy link | ||
Given I type "10" in "amount" | ||
Then button with text "Copy link" should be enabled | ||
And I click on a button with text "Copy link" | ||
And Element 'qrContainer' should not contain class 'disabled' | ||
Given I click on a button with text "Copy link" | ||
Then Clipboard should contain "lisk://wallet?modal=send&recipient=lskm9syv4wrjcjczpegz65zqxhk2cp9dkejs5wbjb&amount=10&token=0400000000000000&recipientChain=04000000" | ||
|
||
Scenario: Request token should generate a copy link with message | ||
Given I type "10" in "amount" | ||
Then button with text "Copy link" should be enabled | ||
And Element 'qrContainer' should not contain class 'disabled' | ||
Given I click on a button with text "Add message (Optional)" | ||
And I type "hello" in "reference-field" | ||
And I click on a button with text "Copy link" | ||
Then Clipboard should contain "lisk://wallet?modal=send&recipient=lskm9syv4wrjcjczpegz65zqxhk2cp9dkejs5wbjb&amount=10&reference=hello&token=0400000000000000&recipientChain=04000000" |
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,3 +1,3 @@ | ||
export const fixture = { | ||
page: undefined, | ||
page: null, | ||
} |
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
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