UNPKG

wdio-cloud-container-service

Version:

This WebdriverIO service triggers a cloud run service, or other container-based cloud container service on any platform. Examples include Google Cloud Run and Heroku. The service performs the trigger, and a health check, by requesting the /status endpoint

23 lines (20 loc) 536 B
class WdioBrowserSpy { constructor() { this._pauseIsCalled = false; this._pauseCalledWith; global.browser = { pause: (interval) => { console.log('pause is called. marking as called...'); this._pauseIsCalled = true; this._pauseCalledWith = interval; } } } isPauseCalled() { return this._pauseIsCalled; } pauseCalledWith() { return this._pauseCalledWith; } } module.exports = WdioBrowserSpy;