Skip to content

Commit c217d20

Browse files
digiwandlegobeatbrad-deckertmashuang
authored andcommitted
Bump test-dapp to v7.2.0 (#21358)
## **Description** Bump test-dapp to v7.2.0 See changes MetaMask/test-dapp#261. Relates to https://github.com/MetaMask/MetaMask-planning/issues/1264 ## Manual Testing Steps 1. Check circle ci runs 2. Locally run tests in your environment yarn test:e2e:chrome --------- Co-authored-by: legobeat <109787230+legobeat@users.noreply.github.com> Co-authored-by: Brad Decker <bhdecker84@gmail.com> Co-authored-by: Thomas Huang <tmashuang@users.noreply.github.com>
1 parent 9fb46fc commit c217d20

3 files changed

Lines changed: 4 additions & 4 deletions

File tree

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -392,7 +392,7 @@
392392
"@metamask/eslint-config-typescript": "^9.0.1",
393393
"@metamask/forwarder": "^1.1.0",
394394
"@metamask/phishing-warning": "^2.1.0",
395-
"@metamask/test-dapp": "^7.1.0",
395+
"@metamask/test-dapp": "^7.2.0",
396396
"@sentry/cli": "^2.19.4",
397397
"@storybook/addon-a11y": "^7.0.11",
398398
"@storybook/addon-actions": "^7.0.11",

test/e2e/metamask-ui.spec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,7 @@ describe('MetaMask @no-mmi', function () {
232232
await driver.delay(tinyDelayMs);
233233

234234
const tokenContractAddress = await driver.waitForSelector({
235-
css: '#tokenAddress',
235+
css: '#tokenAddresses',
236236
text: '0x',
237237
});
238238
tokenAddress = await tokenContractAddress.getText();

test/e2e/tests/provider-api.spec.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,15 +52,15 @@ describe('MetaMask', function () {
5252
await driver.switchToWindowWithTitle('E2E Test Dapp', windowHandles);
5353
const switchedNetworkDiv = await driver.waitForSelector({
5454
css: '#network',
55-
text: '0x1',
55+
text: '1',
5656
});
5757
const switchedChainIdDiv = await driver.waitForSelector({
5858
css: '#chainId',
5959
text: '0x1',
6060
});
6161
const accountsDiv = await driver.findElement('#accounts');
6262

63-
assert.equal(await switchedNetworkDiv.getText(), '0x1');
63+
assert.equal(await switchedNetworkDiv.getText(), '1');
6464
assert.equal(await switchedChainIdDiv.getText(), '0x1');
6565
assert.equal(await accountsDiv.getText(), publicAddress);
6666
},

0 commit comments

Comments
 (0)