-
-
Notifications
You must be signed in to change notification settings - Fork 59
feat: Alpha Support for Multi-remote Browser #1985
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
base: main
Are you sure you want to change the base?
Conversation
f5096ff to
79e6464
Compare
7853377 to
589a309
Compare
| To assert all remotes with a default value, overriding specific ones: | ||
| ```ts | ||
| await expect(multiRemoteBrowser).toHaveTitle({ | ||
| default : 'My Default Site Title', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What does default mean here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It would provide a default value to assert on all remotes. So instead of enumerating them all when you only have one exception, you can still offer one value for all and another for the exception.
- Simple working case expecting one value
- Use `waitUntilResult` optimize to rerun per instance and now returns results with multiple information easing the processing. Also support condition returning an array of result or an array of promise - Use `formatFailureMessage` both compatible for multi-remote and not - Streamline and unify the processing of browser + get of actual value to use same algo to support easier both multi-remote and not multi-remote
4563fc9 to
1fd463b
Compare
Backporting fixes of issue webdriverio#1986 and PR webdriverio#1987 to multi-remote
Fixes partially #106
PR serving as a starting point to support the multi-remote case.
toHaveTitlebrowser matcherswaitUntilwas reviewed to support multiple instances better so that we can retry only those that failed, optimizing the fetching process.CompareResultto be more flexible and returns more information for the assertions.Next:
Draft TODOs: