Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个将响应作为字符串返回的 POST API。
当我尝试嘲笑为browser.mock('**/validate').respond('SUCCESS', { statusCode: 200 });
browser.mock('**/validate').respond('SUCCESS', { statusCode: 200 });
它没有被嘲笑,而是原始 API 被击中
有人可以帮助我吗?
您是否尝试过使用 WireMock 服务?
更多信息:https ://webdriver.io/docs/wdio-wiremock-service/