Introduction
Test Driven Development (TDD) is a beneficial practice for engineers, but in reality, it's not always feasible.
However, t...
For further actions, you may consider blocking this person and/or reporting abuse
Well done with the article 👏
Some feedback from me:
toBeVisible()instead oftoBeInDocument(), because this checks that the text is actually visible rather than just being in the DOM.userEventoverfireEventbecause it's a closer simulation to user behaviourThanks for the feedback @wemmyo.
I'm not sure I've come across
toBeVisible()before now. I'll check it out!Yes, definitely I will change the
testIDimplementation.I ran into some issues with
userEventwhere some tests were timing out after 5000ms (mostly the integration tests). I couldn't find a reliable way to increase this timeout.I wasn't sure if the platform's config (codesandbox) contributed to this, I think changing this default value should work in a normal dev environment.