angularjs - protractor E2E tests stopped working on 11 second timeout -
i using protractor 1.4 e2e test our angular website. had suite of tests running , passing perfectly, until week ago when of them started fail on 11 seconds timeout ("timed out waiting protractor synchronize page after 11001ms")
since wanted backtrack , find if there piece of code somewhere resposible that, reverted commit ok , marked tests passing , nada - still same issue.
at point don't know cause , how continue. seems in environment has changed (that reverting didnt change back) not sure can be. thought might chrome version tried firefox - same results.
i highly appreciate given.
example test fails on that:
it('should succeed new user , fail registered one', function () { //check create account link var createaccountlink = element(by.id('createnewaccountlink')); expect(createaccountlink.gettext()).toequal("or create account"); createaccountlink.click(); //check create account title expect(element(by.css('#createaccounttitle > span')).gettext()).toequal("create account"); //insert new phone element(by.model('phone.number')).sendkeys(e2ehelpermethods.testedphonenumber); element(by.id('sendpincodebtn')).click(); //check pin code message expect(element(by.css('#pincodesentmsg > span')).gettext()).tocontain(e2ehelpermethods.testedphonenumber); element(by.buttontext('ok')).click(); //check pin code input screen element(by.model('model.pincode')).sendkeys(e2ehelpermethods.defaultpin); element(by.id('validatepincodebtn')).click(); //enter new password user element(by.model('model.password')).sendkeys(e2ehelpermethods.defaultpassword); element(by.model('model.repeatpassword')).sendkeys(e2ehelpermethods.defaultpassword); element(by.id('updatenewpasswordbtn')).click(); //verify got home screen expect(browser.getcurrenturl()).toequal(e2ehelpermethods.defaultwebsiteuri + 'home'); //now log out , try create same user again , verify failing browser.get(""); <-------------here hangs , gives me createaccountlink.click(); element(by.model('phone.number')).sendkeys(e2ehelpermethods.testedphonenumber); element(by.id('sendpincodebtn')).click(); expect(element(by.css('#numberalreadyregisteredmsg > span')).gettext()).tocontain("your number registered. please enter password login."); });
maybe worth mentioning @ point of failure website starts into.js tour - maybe that's issue?
turns out, used $timeout on start of web application monitor user inactivity. disabling feature testing environments solved main issue. still intro.js framework seems have result using browser.driver instance since reason, hangs , throw 11 seconds exception.
Comments
Post a Comment