Skip to content

Commit

Permalink
fix: Update e2e background state after feature flag gets turned on
Browse files Browse the repository at this point in the history
  • Loading branch information
gambinish committed Nov 22, 2024
1 parent ef47c5b commit 93fb977
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,11 @@
"redesignedTransactionsEnabled": "boolean",
"tokenSortConfig": "object",
"tokenNetworkFilter": {
"0x539": "boolean"
"0x1": "boolean",
"0x539": "boolean",
"0xaa36a7": "boolean",
"0xe705": "boolean",
"0xe708": "boolean"
},
"shouldShowAggregatedBalancePopover": "boolean"
},
Expand Down Expand Up @@ -323,7 +327,9 @@
"TokenListController": {
"tokenList": "object",
"tokensChainsCache": {
"0x539": "object"
"0x1": "object",
"0x539": "object",
"0xe708": "object"
},
"preventPollingOnNetworkRestart": false
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,11 @@
"redesignedTransactionsEnabled": "boolean",
"tokenSortConfig": "object",
"tokenNetworkFilter": {
"0x539": "boolean"
"0x1": "boolean",
"0x539": "boolean",
"0xaa36a7": "boolean",
"0xe705": "boolean",
"0xe708": "boolean"
},
"shouldShowAggregatedBalancePopover": "boolean"
},
Expand Down Expand Up @@ -177,7 +181,9 @@
"nonRPCGasFeeApisDisabled": "boolean",
"tokenList": "object",
"tokensChainsCache": {
"0x539": "object"
"0x1": "object",
"0x539": "object",
"0xe708": "object"
},
"tokenBalances": "object",
"preventPollingOnNetworkRestart": false,
Expand Down
7 changes: 7 additions & 0 deletions test/e2e/tests/tokens/import-tokens.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,13 @@ describe('Import flow', function () {
'[data-testid="token-list-loading-message"]',
);

await driver.assertElementNotPresent(
'[data-testid="token-list-loading-message"]',
);

await driver.clickElement('[data-testid="sort-by-networks"]');
await driver.clickElement('[data-testid="network-filter-current"]');

const expectedTokenListElementsAreFound =
await driver.elementCountBecomesN('.multichain-token-list-item', 4);
assert.equal(expectedTokenListElementsAreFound, true);
Expand Down
2 changes: 1 addition & 1 deletion test/e2e/tests/tokens/token-details.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ describe('Token Details', function () {

const openTokenDetails = async (driver: Driver) => {
await driver.clickElement('[data-testid="account-overview__asset-tab"]');
const [, tkn] = await driver.findElements(
const [, , tkn] = await driver.findElements(
'[data-testid="multichain-token-list-button"]',
);
await tkn.click();
Expand Down

0 comments on commit 93fb977

Please sign in to comment.