This repository was archived by the owner on Jul 29, 2024. It is now read-only.
File tree 2 files changed +3
-3
lines changed
2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -402,8 +402,8 @@ Protractor.prototype.waitForAngular = function(opt_description) {
402
402
var errMsg = 'Timed out waiting for Protractor to synchronize with ' +
403
403
'the page after ' + timeout + '. Please see ' +
404
404
'https://github.com/angular/protractor/blob/master/docs/faq.md' ;
405
- if ( description . startsWith ( ' - Locator: ' ) ) {
406
- errMsg += '\n ' + description ;
405
+ if ( description . startsWith ( ' - Locator: ' ) ) {
406
+ errMsg += '\nWhile waiting for element with locator ' + description ;
407
407
}
408
408
var pendingTimeoutsPromise ;
409
409
if ( self . trackOutstandingTimeouts_ ) {
Original file line number Diff line number Diff line change @@ -125,7 +125,7 @@ executor.addCommandlineTest('node built/cli.js spec/errorTest/slowHttpAndTimeout
125
125
. expectExitCode ( 1 )
126
126
. expectErrors ( [
127
127
{ message : 'The following tasks were pending[\\s\\S]*\\$http: slowcall' } ,
128
- { message : '^((?!The following tasks were pending).)* $' }
128
+ { message : 'While waiting for element with locator - Locator: by.binding\\(\\"slowAngularTimeoutStatus\\"\\) $' }
129
129
] ) ;
130
130
131
131
executor . execute ( ) ;
You can’t perform that action at this time.
0 commit comments