-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Description
Sometimes in your tests you want to wait for something not to happen. Like waiting for a content not being approved within some time. Conditions currently can only be used to wait for something to happen.
A typical use case for regression tests: Wait for example for a dialog not to pop up. Or another use case: You approve a document, an error dialog pops up that approve is not possible for some reason and afterwards your tests needs to ensure that the document really did not get approved.
Some thoughts:
- A condition could provide something like
assertThatWithin(Matcher,time)but is that what we want? And what is the time to specify? Following the concepts of conditions it should not be an absolute amount of time. But what to specify instead? - We could provide a Matcher which blocks for a certain time. But the matcher cannot return before time as the condition will wait until the matcher matches.