protractor icon indicating copy to clipboard operation
protractor copied to clipboard

unexpected behaviour - Jasmine spec timeout issue

Open TwinkleA opened this issue 9 years ago • 3 comments

My jasmine specs work fine only with protractor version 4.0.3, The moment I update the protractor version the same scripts start failing with below error.

Timeout - Async callback was not invoked within timeout specified by jasmine.DEFAULT_TIMEOUT_INTERVAL.

The angualar pages load properly and step executes successfully but, above error message is thrown on console when it moves to next step,

jamine1

jasmine2

===================================================

Please fill in the following from the docs

Bug report

  • Node Version: ``
  • Protractor Version: ``
  • Angular Version: ``
  • Browser(s): ``
  • Operating System and Version ``
  • Your protractor configuration file
  • A relevant example test
  • Output from running the test
  • Steps to reproduce the bug
  • The URL you are running your tests against (if relevant)

Feature Request

  • Reasons for adopting new feature
  • Is this a breaking change? (How will this affect existing functionality)

TwinkleA avatar Jul 21 '17 09:07 TwinkleA

If this is a bug, please use the form I've added into your issue. Also provide a example script we can use to debug your issue.

Tnx

wswebcreation avatar Jul 23 '17 06:07 wswebcreation

@wswebcreation - I found that the issue is with jasmine version. the above mentioned issue occurs with jasmine - "jasmine": "2.7.0" (wherein jasminewd2 - 0.0.10 gets installed by default) I updated package.json to use "jasmine": "2.6.0", "jasminewd2": "^2.1.0", and it worked.

hence there is some issue with latest version of jasmine library

TwinkleA avatar Aug 07 '17 10:08 TwinkleA

Hi @TwinkleA ,

Is there still a problem now? Or can this be closed. By the way, there were some breaking changes in protractor 5 that could have to do with your poroblem, hence the upgrade to version 5.0.0

wswebcreation avatar Aug 10 '17 19:08 wswebcreation