Skip to content

Commit

Permalink
fix: swap+send e2e tests (#25275)
Browse files Browse the repository at this point in the history
  • Loading branch information
dbrans authored Jun 12, 2024
1 parent d8e0cd1 commit dda8d96
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions test/e2e/tests/swap-send/swap-send-erc20.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,8 @@ describe('Swap-Send ERC20', function () {

await swapSendPage.verifyQuoteDisplay(
'1 TST = 0.000002634 ETH',
'879687 ETH',
'≈ $2,647,857,870.00',
'0.0075669 ETH',
'≈ $22.78',
);

await swapSendPage.submitSwap();
Expand Down
6 changes: 3 additions & 3 deletions test/e2e/tests/swap-send/swap-send-eth.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,8 @@ describe('Swap-Send ETH', function () {

await swapSendPage.verifyQuoteDisplay(
'1 ETH = 301075.4807 TST',
'1500000 ETH', // TODO this looks weird
'≈ $4,515,000,000.00',
'0.0129028 ETH',
'≈ $38.84',
);

await swapSendPage.submitSwap();
Expand Down Expand Up @@ -114,7 +114,7 @@ describe('Swap-Send ETH', function () {

await swapSendPage.verifyMaxButtonClick(
['ETH', 'ETH'],
['24.995559472', '24.995559472'],
['24.9970184730279925', '24.9970184730279925'],
);
},
);
Expand Down
4 changes: 2 additions & 2 deletions test/e2e/tests/swap-send/swap-send-test-utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { strict as assert } from 'assert';
import { Mockttp } from 'mockttp';
import FixtureBuilder from '../../fixture-builder';
import { SWAPS_API_V2_BASE_URL } from '../../../../shared/constants/swaps';
import { defaultGanacheOptions } from '../../helpers';
import { generateGanacheOptions } from '../../helpers';
import { SMART_CONTRACTS } from '../../seeder/smart-contracts';
import { SWAP_SEND_QUOTES_RESPONSE_ETH_TST } from './mocks/eth-data';

Expand Down Expand Up @@ -297,7 +297,7 @@ export const getSwapSendFixtures = (
smartContract: SMART_CONTRACTS.HST,
ethConversionInUsd: ETH_CONVERSION_RATE_USD,
testSpecificMock: mockSwapsApi(swapsQuotes),
ganacheOptions: defaultGanacheOptions,
ganacheOptions: generateGanacheOptions({ hardfork: 'london' }),
title,
};
};

0 comments on commit dda8d96

Please sign in to comment.