The min amounts are calculated, so can have a race condition here.
Use await screen.findByText for values that are expected to appear after async.
Differential D17090
[Cashtab] Improve flakiness in orderbook tests bytesofman on Wed, Nov 6, 18:09. Authored by Tags None Subscribers None
Details
The min amounts are calculated, so can have a race condition here. Use await screen.findByText for values that are expected to appear after async. npm test
Diff Detail
Event TimelineComment Actions Build Bitcoin ABC Diffs / Diff Testing (cashtab-tests) failed.
Failed tests logs: ====== CashTab Unit Tests: <SendXec /> Pass a valid alias and bip21 query string with invalid amount param (too many decimals) to Send To field ====== Error: expect(element).toHaveValue(chicken.xec?amount=500.123) Expected the element to have value: chicken.xec?amount=500.123 Received: chicken.xec?amount=500.23 at Object.toHaveValue (/work/cashtab/src/components/Send/__tests__/SendXec.test.js:815:32) Each failure log is accessible here: |