Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: swap+send e2e tests #25275

Merged
merged 1 commit into from
Jun 12, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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,
};
};
Loading