Skip to content

Commit

Permalink
fix e2e test
Browse files Browse the repository at this point in the history
  • Loading branch information
bergeron committed Aug 14, 2024
1 parent 7b4d2cb commit 3f487ba
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions test/e2e/tests/multichain/asset-picker-send.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,15 @@ describe('AssetPickerSendFlow @no-mmi', function () {
async ({ driver }: { driver: Driver }) => {
await unlockWallet(driver);

// Disable token auto detection
await driver.openNewURL(
`${driver.extensionUrl}/home.html#settings/security`,
);
await driver.clickElement(
'[data-testid="autoDetectTokens"] .toggle-button',
);
await driver.navigate();

// Open the send flow
openActionMenuAndStartSendFlow(driver);

Expand Down Expand Up @@ -72,13 +81,13 @@ describe('AssetPickerSendFlow @no-mmi', function () {

assert.equal(tokenListSecondaryValue, '$250,000.00');

// Search for BNB
// Search for CHZ
const searchInputField = await driver.waitForSelector(
'[data-testid="asset-picker-modal-search-input"]',
);
await searchInputField.sendKeys('CHZ');

// check that BNB is disabled
// check that CHZ is disabled
const [, tkn] = await driver.findElements(
'[data-testid="multichain-token-list-button"]',
);
Expand Down

0 comments on commit 3f487ba

Please sign in to comment.