[Feature]: timeout option for test.step #33475
Labels
feature-test-runner
Playwright test specific issues
open-to-a-pull-request
The feature request looks good, we are open to reviewing a PR
v1.50
🚀 Feature Request
A new timeout option for test.step.
Optionally, step timeouts can be configured to be independant from the test timeout (like fixture timeouts).
Example
Motivation
We have test cases where different steps aren't supposed to take more than x seconds to complete.
They belong to the same test case, so splitting them up into individual tests is very cumbersome.
expect.toPass is the goto workaround but then you need to dynamically adjust the test.setTimeout value when using dynamic timeout values and it looks kind of ugly.
A timeout option for test.step would be prettier and simpler to use.
The text was updated successfully, but these errors were encountered: