Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
setup master
Browse files Browse the repository at this point in the history
BrodyHughes committed Oct 25, 2024
1 parent 74d0c68 commit 70ffc77
Showing 2 changed files with 6 additions and 11 deletions.
13 changes: 4 additions & 9 deletions e2e/serial/swap/1_swapFlow1.test.ts
Original file line number Diff line number Diff line change
@@ -688,7 +688,6 @@ it('should be able to filter assets to buy by network', async () => {
});
});

// TODO: fix.
it('should be able to see no route explainer', async () => {
await findElementByTestIdAndClick({
id: 'token-to-buy-networks-trigger',
@@ -756,13 +755,13 @@ it('should be able to see no route explainer', async () => {
id: 'swap-confirmation-button-error',
driver,
});
expect(['No route found', 'No quote available']).toContain(confirmButtonText);
expect(confirmButtonText).toEqual('No route found');
await findElementByTestIdAndClick({
id: 'swap-confirmation-button-error',
driver,
});
const noRouteExplainer = await findElementByTestId({
id: 'explainer-sheet-swap-no-quote',
id: 'explainer-sheet-swap-no-route',
driver,
});
expect(noRouteExplainer).toBeTruthy();
@@ -844,23 +843,19 @@ it('should be able to go to review a swap', async () => {
id: `${SWAP_VARIABLES.USDC_MAINNET_ID}-favorites-token-to-buy-row`,
driver,
});
const toBuyInputUsdcSelected = await findElementByTestId({
const toBuyInputDaiSelected = await findElementByTestId({
id: `${SWAP_VARIABLES.USDC_MAINNET_ID}-token-to-buy-swap-token-input-swap-input-mask`,
driver,
});
expect(toBuyInputUsdcSelected).toBeTruthy();
await delayTime('long');
expect(toBuyInputDaiSelected).toBeTruthy();
await findElementByTestIdAndClick({
id: `${SWAP_VARIABLES.ETH_MAINNET_ID}-token-to-sell-swap-token-input-swap-input-mask`,
driver,
});
console.log('################## INPUT SELECTED');
await delayTime('long');
await clearInput({
id: `${SWAP_VARIABLES.ETH_MAINNET_ID}-token-to-sell-swap-token-input-swap-input-mask`,
driver,
});
console.log('################## INPUT CLEARED');
await typeOnTextInput({
id: `${SWAP_VARIABLES.ETH_MAINNET_ID}-token-to-sell-swap-token-input-swap-input-mask`,
text: 1,
4 changes: 2 additions & 2 deletions e2e/serial/swap/2_swapFlow2.test.ts
Original file line number Diff line number Diff line change
@@ -222,8 +222,8 @@ describe('Swap Flow 2', () => {
balanceDifference.toString(),
6,
);
console.log('USDC BALANCE DIFFERENCE: ', usdcBalanceDifference);
// expect(Number(usdcBalanceDifference)).toBe(50);

expect(Number(usdcBalanceDifference)).toBe(50);
});

it.skip('should be able to go to swap flow', async () => {

0 comments on commit 70ffc77

Please sign in to comment.