Skip to content
This repository was archived by the owner on Jul 29, 2024. It is now read-only.

Commit ca000b0

Browse files
committed
chore(tests): fix npm test issue due to changed error messages
Fixes our test failure introduced with #3041 Closes #3116
1 parent 6f22d5a commit ca000b0

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

lib/protractor.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -402,8 +402,8 @@ Protractor.prototype.waitForAngular = function(opt_description) {
402402
var errMsg = 'Timed out waiting for Protractor to synchronize with ' +
403403
'the page after ' + timeout + '. Please see ' +
404404
'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;
407407
}
408408
var pendingTimeoutsPromise;
409409
if (self.trackOutstandingTimeouts_) {

scripts/test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ executor.addCommandlineTest('node built/cli.js spec/errorTest/slowHttpAndTimeout
125125
.expectExitCode(1)
126126
.expectErrors([
127127
{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\\"\\)$'}
129129
]);
130130

131131
executor.execute();

0 commit comments

Comments
 (0)