Skip to content

Commit a08518f

Browse files
committed
wip
1 parent affae02 commit a08518f

File tree

8 files changed

+5
-13
lines changed

8 files changed

+5
-13
lines changed

.eslintrc.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ module.exports = {
55
commonjs: true,
66
es2021: true,
77
'cypress/globals': true,
8-
webextensions: true,
98
},
109
extends: [
1110
'eslint:recommended',

commands/metamask.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1697,7 +1697,7 @@ async function activateAdvancedSetting(
16971697
await metamask.goToAdvancedSettings();
16981698
}
16991699
}
1700-
if (!(await playwright.windows(PROVIDER).locator(toggleOn).count()) === 0) {
1700+
if ((await playwright.windows(PROVIDER).locator(toggleOn).count()) === 0) {
17011701
await playwright.waitAndClick(PROVIDER, toggleOff);
17021702
}
17031703
if (!skipSetup) {

commands/phantom.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
const log = require('debug')('synpress:phantom');
21
const playwright = require('./playwright');
32

43
const {
@@ -279,7 +278,6 @@ module.exports = {
279278

280279
await switchToPhantomIfNotActive();
281280

282-
283281
// skip welcome page
284282
try {
285283
await playwright

commands/playwright.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,7 @@ module.exports = {
269269
notificationWindows[provider] = page;
270270
retries = 0;
271271
await page.bringToFront();
272-
if (provider == 'metamask') {
272+
if (provider === 'metamask') {
273273
await module.exports.waitUntilStable(provider, page);
274274
}
275275
if (provider === 'phantom') {
@@ -297,7 +297,7 @@ module.exports = {
297297
}
298298
},
299299
async waitFor(provider, selector, page = module.exports.windows(provider)) {
300-
if (provider == 'metamask') {
300+
if (provider === 'metamask') {
301301
await module.exports.waitUntilStable(provider, page);
302302
}
303303
await page.waitForSelector(selector, { strict: false });

helpers.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ module.exports = {
101101
},
102102
getSynpressPath() {
103103
if (process.env.SYNPRESS_LOCAL_TEST) {
104-
return './node_modules/@phantom/synpress';
104+
return '.';
105105
} else {
106106
return path.dirname(require.resolve(packageJson.name));
107107
}

pages/phantom/main-page.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@ const popup = {
4444
cancelButton: `${sendPopupSelector} .btn-secondary`,
4545
transactionStatus: `${sendPopupSelector} .transaction-status`,
4646
copyTxIdButton: `${sendPopupSelector} .transaction-list-item-details__tx-hash .transaction-list-item-details__header-button a`,
47-
// todo:
4847
},
4948
};
5049

pages/phantom/notification-page.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ const priorityFeeInput = `${notificationPage} [data-testid="priority-fee-input"]
7575
const editGasLimitButton = `${notificationPage} [data-testid="advanced-gas-fee-edit"]`;
7676
const gasLimitInput = `${notificationPage} [data-testid="gas-limit-input"]`;
7777
const saveCustomGasFeeButton = `${notificationPage} .popover-container .btn-primary`;
78-
const totalLabel = `${confirmPageContent} .transaction-detail-item:nth-child(2) .transaction-detail-item__detail-values h6:nth-child(2)`; // todo: fix
78+
const totalLabel = `${confirmPageContent} .transaction-detail-item:nth-child(2) .transaction-detail-item__detail-values h6:nth-child(2)`;
7979
const customNonceInput = `${confirmPageContent} .custom-nonce-input input`;
8080
const tabs = `${confirmPageContent} .tabs`;
8181
const detailsButton = `${tabs} .tab:nth-child(1) button`;

plugins/index.js

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -289,9 +289,5 @@ module.exports = (on, config) => {
289289
config.env.SKIP_METAMASK_SETUP = true;
290290
}
291291

292-
if (process.env.PROVIDERS) {
293-
config.env.PROVIDERS = process.env.PROVIDERS;
294-
}
295-
296292
return config;
297293
};

0 commit comments

Comments
 (0)