Skip to content

Commit 629e5d2

Browse files
committed
fix(test): add racing condition to wait render before testing
1 parent 4733d65 commit 629e5d2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/features/transaction-wizard/utils/transactions-url-search-params.test.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -618,7 +618,8 @@ describe('Render transactions page with search params', () => {
618618
}),
619619
})
620620

621-
expect(await screen.findByText(assetId)).toBeInTheDocument()
621+
// Wait for transaction to be parsed and rendered
622+
expect(await screen.findByText(assetId, {}, { timeout: 3000 })).toBeInTheDocument()
622623
expect(await screen.findByText(`0 ${unitName}`)).toBeInTheDocument()
623624
// Find the yellow sender link (auto-populated)
624625
const senderLinks = await screen.findAllByText(localnetDispenderAccount.addr.toString())

0 commit comments

Comments
 (0)