Skip to content

Commit bea6520

Browse files
committed
Fix more tests
1 parent 0dfe3bc commit bea6520

File tree

4 files changed

+14
-9
lines changed

4 files changed

+14
-9
lines changed

test/e2e/tests/connections/edit-networks-permissions.spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,8 @@ describe('Edit Networks Permissions', function () {
4141
// Disconnect Mainnet
4242
await sitePermissionPage.editPermissionsForNetwork(['Ethereum']);
4343

44-
// Default Chains Connected: Ethereum, Linea, Base, Arbitrum, BSC, Optimism, Polygon, Solana, BTC
45-
await sitePermissionPage.checkConnectedNetworksNumber(12);
44+
// Default Chains Connected: Ethereum, Linea, Base, Arbitrum, BSC, Optimism, Polygon, Sei, Solana, BTC
45+
await sitePermissionPage.checkConnectedNetworksNumber(11);
4646
},
4747
);
4848
});

test/e2e/tests/multichain/web-socket-connection.spec.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@ describe('Multichain account Web Socket', function (this: Suite) {
2424
await accountListPage.checkPageIsLoaded();
2525
await accountListPage.addMultichainAccount();
2626

27+
// intended delay to allow for network requests to complete
28+
await driver.delay(2000);
2729
const connectionCount =
2830
LocalWebSocketServer.getServerInstance().getWebsocketConnectionCount();
2931
assert.equal(

test/e2e/tests/tokens/watch-asset-call-add-token.spec.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ describe('Add token using wallet_watchAsset', function () {
4949
await driver.switchToWindowWithTitle(
5050
WINDOW_TITLES.ExtensionInFullScreenView,
5151
);
52-
await new AssetListPage(driver).checkTokenAmountIsDisplayed('0 TST');
52+
await new AssetListPage(driver).checkTokenAmountIsDisplayed('10 TST');
5353
},
5454
);
5555
});
@@ -60,6 +60,7 @@ describe('Add token using wallet_watchAsset', function () {
6060
dappOptions: { numberOfTestDapps: 1 },
6161
fixtures: new FixtureBuilder()
6262
.withPermissionControllerConnectedToTestDapp()
63+
.withEnabledNetworks({ eip155: { '0x1': true } })
6364
.build(),
6465
smartContract,
6566
title: this.test?.fullTitle(),

test/e2e/tests/transaction/send-hex-address.spec.js

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -118,9 +118,10 @@ describe('Send ERC20 to a 40 character hexadecimal address', function () {
118118
'[data-testid="account-overview__asset-tab"]',
119119
);
120120

121-
await driver.clickElement(
122-
'[data-testid="multichain-token-list-button"]',
123-
);
121+
await driver.clickElement({
122+
css: '[data-testid="multichain-token-list-button"]',
123+
text: 'Ethereum',
124+
});
124125
await driver.clickElement('[data-testid="coin-overview-send"]');
125126
// Paste address without hex prefix
126127
await driver.pasteIntoField(
@@ -177,9 +178,10 @@ describe('Send ERC20 to a 40 character hexadecimal address', function () {
177178
await driver.clickElement(
178179
'[data-testid="account-overview__asset-tab"]',
179180
);
180-
await driver.clickElement(
181-
'[data-testid="multichain-token-list-button"]',
182-
);
181+
await driver.clickElement({
182+
css: '[data-testid="multichain-token-list-button"]',
183+
text: 'Ethereum',
184+
});
183185
await driver.clickElement('[data-testid="coin-overview-send"]');
184186

185187
// Type address without hex prefix

0 commit comments

Comments
 (0)