Skip to content

Commit

Permalink
conditional wait
Browse files Browse the repository at this point in the history
  • Loading branch information
BrodyHughes committed Sep 3, 2024
1 parent 7ea334b commit 1bd8a31
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion e2e/9_swaps.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -120,8 +120,12 @@ describe('Swap Sheet Interaction Flow', () => {

expect(inputAssetActionButton.label).toBe('ETH 􀆏');
expect(outputAssetActionButton.label).toBe('DAI 􀆏');
expect(holdToSwapButton.label).toBe('τ€Ž½ Hold to Swap');

// sometime UI is lagging. If it is, wait a bit. if not, just proceed.
if (holdToSwapButton.label === 'τ€Ž½ Review') {
await delayTime('very-long');
}
expect(holdToSwapButton.label).toBe('τ€Ž½ Hold to Swap');
await tapAndLongPress('swap-bottom-action-button', 1500);
});

Expand Down

0 comments on commit 1bd8a31

Please sign in to comment.