Skip to content

Commit

Permalink
Merge pull request #77 from Synthetixio/dev
Browse files Browse the repository at this point in the history
promote dev to master
  • Loading branch information
drptbl authored Feb 11, 2021
2 parents 6b17d14 + 38771ad commit 9bee7d6
Show file tree
Hide file tree
Showing 4 changed files with 3,741 additions and 2,527 deletions.
7 changes: 2 additions & 5 deletions commands/metamask.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ const {
permissionsPageElements,
confirmPageElements,
} = require('../pages/metamask/notification-page');
const { setNetwork, getNetwork } = require('../helpers');
const { setNetwork } = require('../helpers');

let walletAddress;

Expand Down Expand Up @@ -128,16 +128,13 @@ module.exports = {
return true;
},
confirmTransaction: async () => {
const isTestnet = getNetwork().isTestnet;
await puppeteer.metamaskWindow().waitForTimeout(3000);
const notificationPage = await puppeteer.switchToMetamaskNotification();
const currentGasFee = await puppeteer.waitAndGetValue(
confirmPageElements.gasFeeInput,
notificationPage,
);
const newGasFee = isTestnet
? '10'
: (Number(currentGasFee) + 10).toString();
const newGasFee = (Number(currentGasFee) + 10).toString();
await puppeteer.waitAndSetValue(
newGasFee,
confirmPageElements.gasFeeInput,
Expand Down
Loading

0 comments on commit 9bee7d6

Please sign in to comment.