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

Add operators for ensuring wait condition stability #251

Open
sbergen opened this issue Nov 6, 2024 · 0 comments
Open

Add operators for ensuring wait condition stability #251

sbergen opened this issue Nov 6, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@sbergen
Copy link
Owner

sbergen commented Nov 6, 2024

Use case

In UI tests, you might wait for some larger part of the users actions to be completed once you return to the previous page. However, it's not too uncommon for there to be some indeterministic short periods where an underlying page will be shown for a brief moment (e.g. one frame), triggering a false completion. It would be nice to be able to add robustness by waiting for a condition to be true for some amount of frames, and possibly seconds.

Solution

Add operators on wait conditions:

  • ToBeStableForFrames(int frames)
  • ToBeStableForSeconds(double seconds)

So that you can do something like WaitForConditionOn(...).ToBeStableForFrames(2)

@sbergen sbergen added the enhancement New feature or request label Nov 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant