I'm running into an issue with Protractor while writing my angularjs e2e tests.
The error it's throwing is Failed: Wait timed out after 1025ms
for the following code. This test is specifically for the Ionic Modal, so it has a transition that lasts less than 1000ms.
it('should close the modal on button click', function () {
expect(modal.isPresent()).toBeTruthy();
element(by.css(merchantInfoClose)).click();
// wait for close animation to complete
browser.driver.wait(function() {
return !browser.isElementPresent(modal);
}, 1000).then(function() {
expect(modal.isPresent).toBeFalsy();
});
});
I'm pretty stuck on how to resolve this issue, and have read through many of the SO posts about the timeout issues with protractor, and none of them have helped. Any ideas on what I'm doing wrong here?