View on GitHub
File Changes
  , null, true);
})

                      
+
Then(/^the current and next epoch countdown are correctly displayed$/, async function() {
+
  await this.client.waitForVisible('.DelegationCenterHeader_countdownContainer');
+
  await this.client.waitForVisible('.DelegationCenterHeader_heading');
+
  await this.client.waitForVisible('.DelegationCenterHeader_epochsContainer');
+
  await this.client.waitForVisible('.CountdownWidget_timeLeftContainer');
+
})
+

                      
+
// Then(/^the current and next epoch countdown have correct data$/, async function() {
+
// })
+

                      
+
Then(/^I should see the "delegate" option$/, async function() {
+
  await this.client.waitForVisible(
+
    `//span[@class="WalletRow_actionLink" and text()="Delegate"]`
+
  );
+
})
  Background:
    Given I have completed the basic setup

                      
+
  # TODO:
  # Scenario: "Loading stake pools" message is shown on the "Delegation center" screen until we load Stake pools

                      
  Scenario: "Create rewards wallet" notification when no Rewards wallets
    And I am on the Delegation "delegation-center" screen
    Then I should only see Reward wallets listed

                      
-
  # Scenario: Delegation screen current and next epoch countdown are correctly displayed and have correct data
-
  # Scenario: Non-delegated wallets have the "Delegate" option correctly displayed on the "Delegation center" screen
+
  Scenario: Delegation screen current and next epoch countdown are correctly displayed and have correct data
+
    Given I have the following wallets:
+
      | name   |
+
      | Wallet |
+
    And I am on the Delegation "delegation-center" screen
+
    Then the current and next epoch countdown are correctly displayed
+
    # TODO:
+
    # And the current and next epoch countdown have correct data
+

                      
+
    @watch
+
  Scenario: "Delegate", "Change delegation" "Undelegate" options are correctly displayed on the "Delegation center" screen
+
    Given I have the following wallets:
+
      | name   |
+
      | Wallet |
+
    And I am on the Delegation "delegation-center" screen
+
    Then I should see the "delegate" option
+

                      
  # Scenario: Delegated wallets information is correctly displayed on the "Delegation center" screen (Stake pool ticker is correctly shown and the "Change delegation" / "Undelegate" options are available
+

                      
  # Scenario: "Unknown" stake pool is shown for the wallets being delegated to stake pools for which we don't have metadata
  # Scenario: "Delegation" wizard displays the "Delegation is unavailable" message if all of the Rewards wallet user has are empty
  # Scenario: "Delegation" wizard is not allowing delegation if the user selects a wallet which has less than 10 ADA
const createWalletsAsync = async (table, context: Object, isLegacy?: boolean) => {
  const result = await context.client.executeAsync((wallets, isLegacyWallet, done) => {
    const mnemonics = {};
-
    const request = isLegacyWallet
-
      ? daedalus.stores.wallets.restoreLegacyRequest
-
      : daedalus.stores.wallets.walletsRequest;
-
    const apiEndpoint = isLegacyWallet
-
      ? daedalus.api.ada.restoreLegacyWallet
-
      : daedalus.api.ada.createWallet;
+
    const { restoreLegacyRequest, walletsRequest } = daedalus.stores.wallets;
+
    const { restoreLegacyWallet, createWallet } = daedalus.api.ada;
+
    const request = isLegacyWallet ? restoreLegacyRequest : walletsRequest;
+
    const apiEndpoint = isLegacyWallet ? restoreLegacyWallet : createWallet;
    window.Promise.all(
      wallets.map(wallet => {
        const mnemonic = daedalus.utils.crypto.generateMnemonic();