I am facing a problem with Protractor when writing my angularjs e2e tests.
The error he throws is Failed: Wait timed out after 1025msfor the following code. This test is specifically designed for Ionic Modal , so it has a transition that lasts less than 1000 ms.
it('should close the modal on button click', function () {
expect(modal.isPresent()).toBeTruthy();
element(by.css(merchantInfoClose)).click();
browser.driver.wait(function() {
return !browser.isElementPresent(modal);
}, 1000).then(function() {
expect(modal.isPresent).toBeFalsy();
});
});
I am pretty obsessed with how to solve this problem, and have read many of the SO posts about timeout issues with protractor, and none of them have helped. Any ideas on what I'm doing wrong here?
source
share