docs(mock): 'matches' -> 'calls' property#10129
docs(mock): 'matches' -> 'calls' property#10129christian-bromann merged 1 commit intowebdriverio:mainfrom
Conversation
|
Thanks for raising the PR. I think this is an issue with the docs. The user is suppose to use |
Ok, i will update the docs in this PR. Also, about mocks: i need an ability to check if mock (spy) has some pending requests. Will you approve a feature, which emits something like |
Seems like a reasonable feature request. Yeah totally!
For WebDriver we will have to use the new WebDriver Bidi features which have not landed yet. While you can already get request information, it is not yet possible to mock/replace requests and responses. So we can ignore this for now and have it throw an |
calls property
calls property|
Also, do you mind if i add documentation about |
Good call, let's add it to https://webdriver.io/docs/api/environment |
Proposed changes
Change
Mockinterface in docs (usecallsproperty instead ofmatches)Types of changes
Checklist
Reviewers: @webdriverio/project-committers