You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
By extending the WebdriverIO `namespace` in TypeScript (see [documentation](https://webdriver.io/docs/multiremote/#extending-typescript-types)), you can directly access each instance and use `expect` on them.
110
122
111
123
```ts
112
124
it('should have title per browsers', async () => {
* Using array algorithm to handle both single and multiple conditions uniformly
59
-
* Technically, this is an o(n3) operation, but practically, we process either a single promise with Array or an Array of promises. Review later if we can simplify and only have an array of promises
59
+
* Technically, this is an o(n3) operation, but practically, we process either a single promise returning Array or an Array of promises. Review later if we can simplify and only have an array of promises
it('should throw error if expected values length does not match instances length',()=>{
114
104
constexpected=['expectedA']
115
-
expect(()=>getInstancesWithExpected(browser,expected)).toThrow('Expected values length (1) does not match number of browser instances (2) in multi-remote setup.')
105
+
expect(()=>mapExpectedValueWithInstances(browser,expected)).toThrow('Expected values length (1) does not match number of browser instances (2) in multi-remote setup.')
0 commit comments