Skip to content

Commit

Permalink
Merge pull request #262 from Synthetixio/master
Browse files Browse the repository at this point in the history
keep dev up to date
  • Loading branch information
drptbl authored Nov 1, 2021
2 parents e3ff82e + 98704f1 commit a78db26
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 14 deletions.
28 changes: 17 additions & 11 deletions commands/metamask.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
const puppeteer = require('./puppeteer');

const { pageElements } = require('../pages/metamask/page');
const {
welcomePageElements,
firstTimeFlowPageElements,
Expand Down Expand Up @@ -79,7 +78,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 +107,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 Expand Up @@ -262,14 +261,21 @@ module.exports = {
addNetworkPageElements.chainIdInput,
network.chainId,
);
await puppeteer.waitAndType(
addNetworkPageElements.symbolInput,
network.symbol,
);
await puppeteer.waitAndType(
addNetworkPageElements.blockExplorerInput,
network.blockExplorer,
);

if (network.symbol) {
await puppeteer.waitAndType(
addNetworkPageElements.symbolInput,
network.symbol,
);
}

if (network.blockExplorer) {
await puppeteer.waitAndType(
addNetworkPageElements.blockExplorerInput,
network.blockExplorer,
);
}

await puppeteer.waitAndClick(addNetworkPageElements.saveButton);
await puppeteer.waitAndClick(settingsPageElements.closeButton);
await puppeteer.waitForText(
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@synthetixio/synpress",
"version": "1.0.0",
"version": "1.0.1-beta.2",
"description": "Synpress in an wrapper around Cypress test runner which extends its capabilities with conjunction of Puppeteer. It's used used across Synthetix projects.",
"keywords": [
"Synpress",
Expand Down

0 comments on commit a78db26

Please sign in to comment.