View on GitHub
File Changes
      | キュビズム |
    And I click outside "name" input field
    Then I should see new wallet name "キュビズム"
+

                      
+
  Scenario: User force Rewards Wallet resync
+
    Given I am on the "first" wallet "settings" screen
+
    When I click "Resync wallet" button
+
    And I see "Resync wallet" button spinner
+
    Then I should see the restore status notification while restore is running
+
    And I should not see the restore status notification once restore is finished
+
    And I should not see "Resync wallet" button spinner anymore
+

                      
+
  @watch
+
  Scenario: User force Balance Wallet resync
+
    Given I restore "Test balance Wallet" balance wallet with funds
+
    And I am on the "Test balance Wallet" wallet "settings" screen
+
    And I should not see the restore status notification once restore is finished
+
    When I click "Resync wallet" button
+
    And I see "Resync wallet" button spinner
+
    Then I should see the restore status notification while restore is running
+
    And I should not see the restore status notification once restore is finished
+
    And I should not see "Resync wallet" button spinner anymore
+
  
+
    
\ No newline at end of file
    return this.client.waitForVisible('.ChangeSpendingPasswordDialog_error');
  }
);
+

                      
+
When(/^I click "Resync wallet" button$/, function() {
+
  return this.client.click('.ResyncWalletButton_root');
+
});
+

                      
+
When(/^I see "Resync wallet" button spinner$/, function() {
+
  return this.client.waitForVisible('.ResyncWalletButton_isSubmitting');
+
});
+

                      
+
When(/^I should not see "Resync wallet" button spinner anymore$/, function() {
+
  return this.client.waitForVisible('.ResyncWalletButton_isSubmitting', null, true);
+
});
  }
};

                      
+
export const restoreLegacyWallet = async (client: Object, { walletName, recoveryPhrase }: { walletName: string, hasFunds?: boolean, recoveryPhrase?: Array<string> }) =>
+
  client.executeAsync((name, recoveryPhrase, done) => {
+
    daedalus.api.ada
+
      .restoreByronRandomWallet({
+
        walletName: name,
+
        recoveryPhrase:
+
          recoveryPhrase || ['arctic', 'decade', 'pink', 'easy', 'jar', 'index', 'base', 'bright', 'vast', 'ocean', 'hard', 'pizza'],
+
        spendingPassword: 'Secret1234',
+
      })
+
      .then(() =>
+
        daedalus.stores.wallets
+
          .refreshWalletsData()
+
          .then(done)
+
          .catch(error => done(error))
+
      )
+
      .catch(error => done(error));
+
  }, walletName, recoveryPhrase);
+

                      
export const fillOutWalletSendForm = async function(values: Object) {
  const formSelector = '.WalletSendForm_component';
  await this.client.setValue(
  waitUntilWalletIsLoaded,
  addOrSetWalletsForScenario,
  restoreWalletWithFunds,
+
  restoreLegacyWallet,
  waitUntilUrlEquals,
  navigateTo,
  i18n,
  this.waitAndClick('.Dialog_actions button');
});

                      
+
Given(/^I restore "([^"]*)" balance wallet with funds$/, async function(walletName) {
+
  await restoreLegacyWallet(this.client, { walletName });
+
  const wallet = await waitUntilWalletIsLoaded.call(this, walletName);
+
  addOrSetWalletsForScenario.call(this, wallet);
+
});
+

                      
Then(
  /^I should see section "([^"]*)"$/,
  async function(text) {