Skip to content

Commit

Permalink
fix: e2e tests
Browse files Browse the repository at this point in the history
  • Loading branch information
micaelae committed Dec 10, 2024
1 parent 665b16e commit fbb0117
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion test/e2e/page-objects/pages/home/asset-list.ts
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ class AssetListPage {
*/
async hideToken(tokenName: string): Promise<void> {
console.log(`Hide token ${tokenName} on homepage`);
await this.driver.clickElement({ text: tokenName, tag: 'span' });
await this.driver.clickElement({ text: tokenName, tag: 'p' });
await this.driver.clickElement(this.assetOptionsButton);
await this.driver.clickElement(this.hideTokenButton);
await this.driver.waitForSelector(this.hideTokenConfirmationModalTitle);
Expand Down
2 changes: 1 addition & 1 deletion test/e2e/tests/dapp-interactions/block-explorer.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ describe('Block Explorer', function () {

await driver.clickElement({
text: 'TST',
tag: 'span',
tag: 'p',
});

await driver.clickElement('[data-testid="asset-options__button"]');
Expand Down
2 changes: 1 addition & 1 deletion test/e2e/tests/tokens/add-multiple-tokens.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ describe('Multiple ERC20 Watch Asset', function () {

// Check all three tokens have been added to the token list.
const addedTokens = await driver.findElements({
tag: 'span',
tag: 'p',
text: 'TST',
});
assert.equal(addedTokens.length, 3);
Expand Down
4 changes: 2 additions & 2 deletions test/e2e/tests/transaction/change-assets.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ describe('Change assets', function () {

// Click the Send button
await driver.clickElement({
css: '[data-testid="multichain-token-list-button"] span',
css: '[data-testid="multichain-token-list-button"] p',
text: 'TST',
});

Expand Down Expand Up @@ -471,7 +471,7 @@ describe('Change assets', function () {

// Click the Send button
await driver.clickElement({
css: '[data-testid="multichain-token-list-button"] span',
css: '[data-testid="multichain-token-list-button"] p',
text: 'TST',
});

Expand Down

0 comments on commit fbb0117

Please sign in to comment.