In the Protractor reference configuration, there is the untrackOutstandingTimeouts
setting mentioned:
// Protractor will track outstanding $timeouts by default, and report them in
// the error message if Protractor fails to synchronize with Angular in time.
// In order to do this Protractor needs to decorate $timeout.
// CAUTION: If your app decorates $timeout, you must turn on this flag. This
// is false by default.
untrackOutstandingTimeouts: false,
I've never seen anyone changing the setting. What is the practical usage of the setting? When should I set it to true
?
The outstanding timeouts are tracked so that the Protractor errors can report them. You won't get timeout information in your errors if you turn this off.
You might need to turn it off, however, if you decorate your $timeout
object (for whatever reason you need to decorate it for), since Protractor also decorates the same object and you won't see your changes to it whenever you need them.
This was added here, by user request.
untrackOutstandingTimeouts:true is for $timeout, maybe also for $interval (there i am not sure)
Simulate the passage of time in protractor?
Here's the official FAQ for the question. It's in the same line as @Vlad's answer.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With