Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unify matcher decoration mechanism #29

Closed
AlexanderTolmachev opened this issue Feb 28, 2013 · 0 comments
Closed

Unify matcher decoration mechanism #29

AlexanderTolmachev opened this issue Feb 28, 2013 · 0 comments
Assignees

Comments

@AlexanderTolmachev
Copy link
Member

It would be great to provide unified matcher decoration mechanism, not only WaitForMatcher and RefreshMatcher.
The desired usage is the following:

  1. assertThat(element, should(exist()).if(conditionIsSatisfied())) - matcher decoration with some condition.
  2. assertThat(element, should(exist()).after(actionIsPerformed())) - matcher decoration with some action.
  3. assertThat(element, should(exist()).until(timeoutHasExpired())) - matcher decoration with timeout or waiter.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant