-
-
Notifications
You must be signed in to change notification settings - Fork 4
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
Feature/5 multiremote support #6
Conversation
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.
How difficult is it to make this work with multiremote as well:
it('should verify urlContains method', async () => {
await browser.url('https://webdriver.io');
expect(await urlContains('io')).toBe(true);
});
?
It will not work with a single instance and multiremote either. |
Yeah, in the original issue my example was referring to a single browser instance: const matrix = await multiremote({ browser1: {...} })
await matrix.browser1.waitUntil(
titleContains('expected conditions'),
{
timeout: 5000,
timeoutMsg: 'expected title....'
}
) but I wonder if we can also allow: await matrix.waitUntil(
titleContains('expected conditions'),
{
timeout: 5000,
timeoutMsg: 'expected title....'
}
) in which case the conditions need to be fulfilled for all browser instances. |
Actually, it works now. // Passed
it('should pass for specific instance urlContains method', async () => {
await browser.url('https://the-internet.herokuapp.com')
await browserB.url('https://webdriver.io/docs/wdio-wait-for/#api');
//@ts-ignore
await browser.browserB.waitUntil(
titleContains('expected conditions'),
{
timeout: 1000,
timeoutMsg: 'expected title for browser B'
}
)
});
// Passed
it('should pass for two instances urlContains method', async () => {
await browser.url('https://webdriver.io/docs/wdio-wait-for/#api')
await browser.waitUntil(
titleContains('expected conditions'),
{
timeout: 1000,
timeoutMsg: 'expected title for two instances'
}
)
});
// Failed
it('should fail for two instances urlContains method', async () => {
await browser.url('https://the-internet.herokuapp.com');
await browserB.url('https://webdriver.io/docs/wdio-wait-for/#api');
await browser.waitUntil(
titleContains('expected conditions'),
{
timeout: 1000,
timeoutMsg: 'expected title for two instances'
}
)
}); |
Do we need to enhance the tests or do they already cover this? |
They cover it, in our tests I do the same, except I don't use the |
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.
Awesome, shit it
@elaichenkov to release trigger the |
@christian-bromann |
feature: #5 Multiremote support
Added:
Updated:
this
instead of thebrowser
instance