At first glance, it seems that React Testing Library (abbreviated RTL) await waitFor + get
can be replaced with find
everywhere, but it’s not so.
![Observation regarding RTL getby and findby interchangeability](/images/codsen-article-021-m.png)
getby
and findby
interchangeabilityAt first glance, it seems that React Testing Library (abbreviated RTL) await waitFor + get
can be replaced with find
everywhere, but it’s not so.