Protractor E2E test scripts using Mocha BDD framework does not pass every
time (pass rate is very less, inconsistent) when we run both in local and
We are using classic promise chaining concept instead of promise manager in
our E2E test scripts
We reffered here https://github.com/SeleniumHQ/selenium/wiki/WebDriverJs
We also used two different types of approach using MochaDone(done) callback
and with try/catch block returning a promise.
Mocha Unhandled Promise rejection exceptions:
This was one of the major issue we faced commonly with Mocha. We tried the
below to over come this exception , but failed to resolve.
• Returning promise without done callback.
• Use of async(),await.
Node Version: 8.9.4 ``
Protractor Version: 5.3.0 ``
Mocha Version: 3.5.0 ``
Angular Version: 1.6``
Browser(s): Google Chrome 62,63,64``
Operating System and Version: Windows 7, 10 ``
You received this message because you are subscribed to the Google Groups
"Angular and AngularJS discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email
To post to this group, send email to firstname.lastname@example.org.
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.