ng-apimock / webdriverio-plugin

webdriverio client for @ng-apimock/core
MIT License
4 stars 4 forks source link

How to use with WebdriverIO 6 #4

Closed DaveGold closed 4 years ago

DaveGold commented 4 years ago

I tried to update to WebdriverIO 6 but i get errors:

ERROR @wdio/sync: ReferenceError: client is not defined ERROR @wdio/sync: TypeError: Url must be a string. Received undefined

I have this configured:

services: ['selenium-standalone', ['ng-apimock', { globalName: 'client' }]],

Somehow the client is not defined anymore.

mdasberg commented 4 years ago

@DaveGold the baseUrl is no longer available as an option. Instead is is available on the browser.config object.

I will try to make a release tomorrow

DaveGold commented 4 years ago

Hi, I see you added a commit. will this be released in newer version?

mdasberg commented 4 years ago

@DaveGold v2.0.4 has been released.

mdasberg commented 4 years ago

@DaveGold please let me know if this solves the problem.

Integration tests are now executed against webdriverio v5 and v6 (https://github.com/ng-apimock/webdriverio-plugin/runs/785570657?check_suite_focus=true)

DaveGold commented 4 years ago

@mdasberg I will try this out soon

DaveGold commented 4 years ago

@mdasberg I can confirm it works with Webdriver6