Skip to content
This repository has been archived by the owner on Apr 12, 2024. It is now read-only.

Commit

Permalink
fix: import token flaky (#149)
Browse files Browse the repository at this point in the history
fix: import-token flakyness
  • Loading branch information
mpetrunic committed Dec 15, 2022
1 parent babdd28 commit bfce149
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/metamask/addToken.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ export const addToken = (page: Page, version?: string) => async ({
decimals = 0,
}: AddToken): Promise<void> => {
await page.bringToFront();

await clickOnButton(page, 'Assets');
await page.waitForSelector('.asset-list-item__token-button');
await clickOnElement(page, 'Import tokens');
await typeOnInputField(page, 'Token Contract Address', tokenAddress);

Expand Down

0 comments on commit bfce149

Please sign in to comment.