In the last chapter, you learned about waits, which play a very important part in making tests stable. On the other side of the spectrum, if a test case fails, it should fail as quickly as possible.
A specified time is allowed to elapse in a test script before an error message is displayed to the user; this is called the timeout period . If there is a failure during the test, timeouts ensure that it happens as quickly as possible, ending with a timeout message so the user doesn’t have to wait indefinitely and blocking the rest of the test ...