-
Notifications
You must be signed in to change notification settings - Fork 4.6k
Allow extra options for rest requests in E2E utils #70444
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
Conversation
|
Size Change: 0 B Total Size: 1.85 MB ℹ️ View Unchanged
|
|
As I understand it, this error occurs when the server drops the connection. Therefore, adding an option to the REST request may not fundamentally solve will comment on woocommerce/woocommerce#58749 with my proposed solution. |
|
@t-hamano thanks for your input!
Thanks, it seems that |
What?
Closes
Allow consumers of the playwright E2E utils to pass additional rest options to helpers that make requests
Why?
We are experiencing some flakiness in the WooCommerce E2E tests and I believe allowing consumers of the package to define a number of retries would be beneficial.
I don't think setting this at util level is a good idea as it's better not to assume what the user wants to do.
How?
Each util that makes a
restrequest will get an additional, optional parameter that would contain options applicable to the rest request. It is spread into the request's options first, then overwritten with existing options.Batch requests also have these options applied.
Testing Instructions
Testing Instructions for Keyboard
Screenshots or screencast