Skip to content

Wait for nothing to happen #3

@mmichaelis

Description

@mmichaelis

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions