Created
August 30, 2016 15:11
-
-
Save dreamerkumar/d2a8e55c5cf4dd64950c1ffcfb701d05 to your computer and use it in GitHub Desktop.
e2e protractor test showing how to wait for the browser to reload after mocking an api causes this reload
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
this.Given(/^My api is mocked with "([^"]*)" mock data$/, function (mockName) { | |
return mocks.mocking_json[mockName]().then(function () { | |
return browser.wait(function () { | |
return myPage.$myWaitElement.isPresent(); | |
}, 30000) | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment