Skip to content

Commit

Permalink
test(send_txn): remove unit test that checks for "waiting" message
Browse files Browse the repository at this point in the history
The unit test for checking for the "waiting" message was finicky and failed unpredicably because the
"waiting" message may not have lasted long enough for it to be accurately detected in a unit test.
The test can be removed because the check for the "waiting" is part of the manual tests.
  • Loading branch information
No-Cash-7970 committed Jan 19, 2024
1 parent 8b467d5 commit 98616a5
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions src/app/[lang]/txn/send/components/SendTxn.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -56,12 +56,6 @@ describe('Send Transaction Component', () => {
expect(await screen.findByText('success.heading')).toBeInTheDocument();
});

it('shows "waiting" message if waiting for transaction confirmation', async () => {
sessionStorage.setItem('signedTxn', '"data:application/octet-stream;base64,"');
render(<SendTxn />);
expect(await screen.findByText('txn_confirm_wait')).toBeInTheDocument();
});

it('shows success message if transaction is successful', async () => {
sessionStorage.setItem('signedTxn', '"data:application/octet-stream;base64,"');
render(<SendTxn />);
Expand Down

0 comments on commit 98616a5

Please sign in to comment.