Skip to content

Commit

Permalink
fix: swap+send e2e tests
Browse files Browse the repository at this point in the history
  • Loading branch information
micaelae committed Jun 12, 2024
1 parent 4a1b4e8 commit 4a72af4
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 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
4 changes: 2 additions & 2 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
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 4a72af4

Please sign in to comment.