Conditional Testing
What you'll learn
- When conditional testing is a good choice for your tests
- Situations where conditional testing is impossible
- Strategies to handle common scenarios of conditional testing
The problem
The problem with conditional testing is that it can only be used when the state has stabilized. In modern day applications, knowing when state is stable is oftentimes impossible.
The situations
The only way to do conditional testing on the DOM is if you are 100% sure that the state has "settled" and there is no possible way for it to change