Skip to content
Permalink
Browse files

Refreshing correctly the wallet information after importing a snapshot

  • Loading branch information...
YankoFelipe committed Jul 11, 2019
1 parent d5b8df6 commit 9552c0b6e3bd9e58010fbfddf3123e7d218144cc
@@ -3,7 +3,7 @@ Feature: Ada Redemption
Background:
Given I have opened the extension
And I have completed the basic setup
Given There is a wallet stored named empty-wallet
Given There is a wallet stored named empty-wallet
And I go to the ada redemption screen

Scenario: User accepts "Daedalus Redemption Disclaimer"
@@ -12,7 +12,6 @@ Feature: Main UI
@it-15
Scenario: Main Screen Tabs Switching (IT-15)
When I import a snapshot named empty-wallet
And I refresh the page
And I go to the send transaction screen
Then I should see send transaction screen
When I go to the receive screen
@@ -23,7 +22,6 @@ Feature: Main UI
@it-21
Scenario: Yoroi Wallet "Home Button" Test (IT-21)
When I import a snapshot named empty-wallet
And I refresh the page
And I am on the Daedalus Transfer instructions screen
And I go to the main screen
Then I should see the transactions screen
@@ -34,7 +32,6 @@ Feature: Main UI
@it-25
Scenario: Ensure user can copy Wallet address to Windows clipboard via "Copy address" buttons (IT-25)
When I import a snapshot named empty-wallet
And I refresh the page
When I go to the receive screen
Then I should see the Receive screen
When I click on "copy to clipboard" button
@@ -62,7 +59,6 @@ Feature: Main UI
@it-110
Scenario: Ensure user can hide balance (IT-110)
And I import a snapshot named many-tx-wallet
And I refresh the page
And I click on hide balance button
Then I should see my balance hidden
When I refresh the page
@@ -6,7 +6,6 @@ Feature: Wallet UI Settings
@it-12
Scenario Outline: User can't change password if it doesn't meet complexity requirements (IT-12)
And I import a snapshot named empty-wallet
And I refresh the page
And I navigate to the general settings screen
And I click on secondary menu "wallet" item
And I click on the "change" password label
@@ -25,7 +24,6 @@ Feature: Wallet UI Settings
@it-94
Scenario Outline: User is able to change spending password (IT-94)
And I import a snapshot named tx-big-input-wallet
And I refresh the page
And I have a wallet with funds
And I navigate to the general settings screen
And I click on secondary menu "wallet" item
@@ -58,7 +56,6 @@ Feature: Wallet UI Settings
@it-91
Scenario Outline: Password should be case-sensitive [Wallet password changing] (IT-91)
And I import a snapshot named empty-wallet
And I refresh the page
And I navigate to the general settings screen
And I click on secondary menu "wallet" item
And I click on the "change" password label
@@ -80,7 +77,6 @@ Feature: Wallet UI Settings
@it-8
Scenario Outline: Wallet renaming (IT-8)
And I import a snapshot named empty-wallet
And I refresh the page
And I navigate to the general settings screen
And I click on secondary menu "wallet" item
And I click on "name" input field
@@ -102,7 +98,6 @@ Feature: Wallet UI Settings
@it-41
Scenario Outline: Wallet can't be renamed if new wallet name doesn't meet requirements (IT-41)
And I import a snapshot named empty-wallet
And I refresh the page
And I navigate to the general settings screen
And I click on secondary menu "wallet" item
And I click on "name" input field
@@ -120,7 +115,6 @@ Feature: Wallet UI Settings
@it-14
Scenario: User can't change the password without entering old password (IT-14)
And I import a snapshot named empty-wallet
And I refresh the page
And I navigate to the general settings screen
And I click on secondary menu "wallet" item
And I click on the "change" password label
@@ -135,7 +129,6 @@ Feature: Wallet UI Settings
@it-40
Scenario: User can't change password without filling Password repeat field (IT-40)
And I import a snapshot named empty-wallet
And I refresh the page
And I navigate to the general settings screen
And I click on secondary menu "wallet" item
And I click on the "change" password label
@@ -194,6 +194,9 @@ Given(/^I export a snapshot named ([^"]*)$/, async function (snapshotName) {

Given(/^I import a snapshot named ([^"]*)$/, async function (snapshotName) {
await importYoroiSnapshot(this, snapshotsDir.concat(snapshotName));
await this.driver.sleep(100);
await this.driver.navigate().refresh();
await refreshWallet(this);
});

function refreshWallet(client) {

0 comments on commit 9552c0b

Please sign in to comment.
You can’t perform that action at this time.