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

Commit

Permalink
chore(tests): fix npm test issue due to changed error messages
Browse files Browse the repository at this point in the history
Fixes our test failure introduced with #3041

Closes #3116
  • Loading branch information
juliemr committed Apr 21, 2016
1 parent 6f22d5a commit ca000b0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions lib/protractor.js
Original file line number Diff line number Diff line change
Expand Up @@ -402,8 +402,8 @@ Protractor.prototype.waitForAngular = function(opt_description) {
var errMsg = 'Timed out waiting for Protractor to synchronize with ' +
'the page after ' + timeout + '. Please see ' +
'https://github.com/angular/protractor/blob/master/docs/faq.md';
if(description.startsWith(' - Locator: ')){
errMsg += '\n' + description;
if (description.startsWith(' - Locator: ')) {
errMsg += '\nWhile waiting for element with locator' + description;
}
var pendingTimeoutsPromise;
if (self.trackOutstandingTimeouts_) {
Expand Down
2 changes: 1 addition & 1 deletion scripts/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ executor.addCommandlineTest('node built/cli.js spec/errorTest/slowHttpAndTimeout
.expectExitCode(1)
.expectErrors([
{message: 'The following tasks were pending[\\s\\S]*\\$http: slowcall'},
{message: '^((?!The following tasks were pending).)*$'}
{message: 'While waiting for element with locator - Locator: by.binding\\(\\"slowAngularTimeoutStatus\\"\\)$'}
]);

executor.execute();

0 comments on commit ca000b0

Please sign in to comment.