This is a follow-up after a discussion on Discord.
In exercice 6, we need to use act(). When doing the exercice, I used waitForElementToBeRemoved(). Isn't this better than manually awaiting for the promise? Maybe, waiting for the promise in this lesson was for introducing when/how to use act() ?
If you change it, it might also impact the "extra credit 1" as there is no promise there and act is used.
This is a follow-up after a discussion on Discord.
In exercice 6, we need to use
act()
. When doing the exercice, I usedwaitForElementToBeRemoved()
. Isn't this better than manually awaiting for the promise? Maybe, waiting for the promise in this lesson was for introducing when/how to useact()
?If you change it, it might also impact the "extra credit 1" as there is no promise there and
act
is used.