View on GitHub
File Changes
  return this.client.waitForVisible('.StakePools_component');
});

                      
+
Then(/^I should see the "Loading stake pools" message/, async function () {
+
  await this.client.executeAsync(() => {
+
    daedalus.stores.staking.fetchingStakePoolsFailed = true;
+
  });
+
  return this.client.waitForVisible('.StakePools_component.isLoading');
+
});
+

                      
Then(/^I should see "([^"]*)" stake pools loaded by rank$/, async function (numberOfStakePools) {
  const stakePools = await this.client.executeAsync(done => {
    daedalus.stores.staking.stakePoolsRequest
      .execute()
      .then(done)
      .catch(error => done(error));
  });
-
  // const stakePools2 = await this.client.execute(() => daedalus.stores.staking.stakePoolsRequest);
  const result = stakePools && stakePools.value ? stakePools.value : [];
  expect(result.length).to.equal(parseInt(numberOfStakePools));
});