Skip to content

Commit

Permalink
fix: loading indicator race-condition while importing/creating wallet
Browse files Browse the repository at this point in the history
Signed-off-by: Jakub Mucha <[email protected]>
  • Loading branch information
drptbl committed Nov 1, 2021
1 parent 65e0c0b commit b1acdd7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions commands/metamask.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ module.exports = {
await puppeteer.waitAndClick(firstTimeFlowFormPageElements.termsCheckbox);
await puppeteer.waitAndClick(firstTimeFlowFormPageElements.importButton);

await puppeteer.waitFor(pageElements.loadingSpinner);
await puppeteer.waitFor(endOfFlowPageElements.endOfFlowPage);
await puppeteer.waitAndClick(endOfFlowPageElements.allDoneButton);
await puppeteer.waitFor(mainPageElements.walletOverview);

Expand Down Expand Up @@ -108,7 +108,7 @@ module.exports = {
);
await puppeteer.waitAndClick(firstTimeFlowFormPageElements.importButton);

await puppeteer.waitFor(pageElements.loadingSpinner);
await puppeteer.waitFor(secureYourWalletPageElements.secureYourWalletPage);
await puppeteer.waitAndClick(secureYourWalletPageElements.nextButton);
await puppeteer.waitAndClick(revealSeedPageElements.remindLaterButton);
await puppeteer.waitFor(mainPageElements.walletOverview);
Expand Down

0 comments on commit b1acdd7

Please sign in to comment.