Skip to content

Commit

Permalink
chore: upgrade tokenSearchHttp version (#1671)
Browse files Browse the repository at this point in the history
  • Loading branch information
derHowie authored Sep 6, 2024
1 parent 2af5d1a commit 572aa99
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 13 deletions.
14 changes: 2 additions & 12 deletions e2e/serial/swap/1_swapFlow1.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -474,25 +474,15 @@ it('should be able to open remove token to buy and check favorites and verified
});

it('should be able to favorite a token and check the info button is present', async () => {
await findElementByTestIdAndClick({
id: `${SWAP_VARIABLES.ZEROX_MAINNET_ID}-verified-token-to-buy-row-favorite-button`,
driver,
});
await delayTime('short');
await findElementByTestIdAndClick({
id: `${SWAP_VARIABLES.ZEROX_MAINNET_ID}-favorites-token-to-buy-row-info-button`,
id: `${SWAP_VARIABLES.WBTC_MAINNET_ID}-favorites-token-to-buy-row-info-button`,
driver,
});
await findElementByTestIdAndClick({
id: `${SWAP_VARIABLES.ZEROX_MAINNET_ID}-favorites-token-to-buy-row-info-button-copy`,
id: `${SWAP_VARIABLES.WBTC_MAINNET_ID}-favorites-token-to-buy-row-info-button-copy`,
driver,
});
if (isFirefox) {
await findElementByTestIdAndClick({
id: `${SWAP_VARIABLES.ZEROX_MAINNET_ID}-token-to-buy-token-input-remove`,
driver,
});
}
await findElementByTestIdAndClick({
id: `${SWAP_VARIABLES.WBTC_MAINNET_ID}-favorites-token-to-buy-row`,
driver,
Expand Down
1 change: 1 addition & 0 deletions e2e/walletVariables.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ export const SWAP_VARIABLES = {
USDC_MAINNET_ADDRESS: '0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48',
WBTC_MAINNET_ID: '0x2260fac5e5542a773aa44fbcfedf7c193bc2c599_1',
ZEROX_MAINNET_ID: '0xe41d2489571d322189246dafa5ebde1f4699f498_1',
REKT_MAINNET_ID: '0x4f8b986ecffe7bed5dbeb2b49310fb00ca85a539_1',
};

export const HARDWARE_WALLETS = {
Expand Down
2 changes: 1 addition & 1 deletion src/core/network/tokenSearch.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { createHttpClient } from './internal/createHttpClient';

export const tokenSearchHttp = createHttpClient({
baseUrl: 'https://token-search.rainbow.me/v2',
baseUrl: 'https://token-search.rainbow.me/v3/tokens',
params: {},
});

0 comments on commit 572aa99

Please sign in to comment.