Skip to content

Commit

Permalink
fix(release-check): adjust task for webpack hostname
Browse files Browse the repository at this point in the history
  • Loading branch information
3cp committed Jun 20, 2019
1 parent 243a080 commit 3f22fef
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 17 deletions.
6 changes: 3 additions & 3 deletions build/tasks/release-checks/tests/generic/au-cypress.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ class AuCypressRunsTestsDotNet extends Test {
onOutput(message) {
this.debug(message);

if (message.indexOf('Now listening on: http://localhost:') > -1 && !this.cypressCommand) {
if (message.indexOf('Now listening on: http://') > -1 && !this.cypressCommand) {
this.cypressCommand = new ExecuteCommand('au', ['cypress', '--run'], (msg) => this.onCypressOutput(msg), (msg) => this.onCypressOutput(msg));
return this.cypressCommand.executeAsNodeScript();
}
Expand All @@ -70,8 +70,8 @@ class AuCypressRunsTestsDotNet extends Test {
}

function isApplicationAvailableMessage(msg) {
return msg.indexOf('Application Available At: http://localhost') > -1 ||
msg.indexOf('Project is running at http://localhost') > -1;
return msg.indexOf('Application Available At: http://') > -1 ||
msg.indexOf('Project is running at http://') > -1;
}

function isCypressCompletedMessage(msg) {
Expand Down
6 changes: 3 additions & 3 deletions build/tasks/release-checks/tests/generic/au-protractor.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ class AuProtractorRunsTestsDotNet extends Test {
onOutput(message) {
this.debug(message);

if (message.indexOf('Now listening on: http://localhost:') > -1 && !this.protractorCommand) {
if (message.indexOf('Now listening on: http://') > -1 && !this.protractorCommand) {
this.protractorCommand = new ExecuteCommand('au', ['protractor'], (msg) => this.onProtractorOutput(msg));
this.protractorCommand.ignoreStdErr = true;
return this.protractorCommand.executeAsNodeScript();
Expand All @@ -64,8 +64,8 @@ class AuProtractorRunsTestsDotNet extends Test {
}

function isApplicationAvailableMessage(msg) {
return msg.indexOf('Application Available At: http://localhost') > -1 ||
msg.indexOf('Project is running at http://localhost') > -1;
return msg.indexOf('Application Available At: http://') > -1 ||
msg.indexOf('Project is running at http://') > -1;
}

function isProtractorCompletedMessage(msg) {
Expand Down
18 changes: 9 additions & 9 deletions build/tasks/release-checks/tests/generic/dotnet-run.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,10 +62,10 @@ class DotnetRunRendersPage extends Test {
const screenshot = new TakeScreenShotOfPage(url, path.join(context.resultOutputFolder, 'screenshot-of-dotnet-run.png'));

return new StepRunner(screenshot).run()
.then(() => {
this.success();
this.executeCommand.stop();
});
.then(() => {
this.success();
this.executeCommand.stop();
});
}
}

Expand All @@ -89,10 +89,10 @@ class DotNetRunAppLaunchesWithoutJavascriptErrors extends Test {
const checkJavascriptErrorsTask = new CheckForJavascriptErrors(url);

return new StepRunner(checkJavascriptErrorsTask).run()
.then(() => {
this.success();
this.executeCommand.stop();
});
.then(() => {
this.success();
this.executeCommand.stop();
});
}
}

Expand All @@ -103,7 +103,7 @@ class DotNetRunAppLaunchesWithoutJavascriptErrors extends Test {
}

function isApplicationAvailableMessage(msg) {
return msg.indexOf('Now listening on: http://localhost:') > -1;
return msg.indexOf('Now listening on: http://') > -1;
}

function getURL(msg) {
Expand Down
2 changes: 1 addition & 1 deletion build/tasks/release-checks/tests/requirejs/au-run.js
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ class AuRunRendersPage extends Test {
}

function isApplicationAvailableMessage(msg) {
return msg.indexOf('Application Available At: http://localhost') > -1;
return msg.indexOf('Application Available At: http://') > -1;
}

function getURL(msg) {
Expand Down
2 changes: 1 addition & 1 deletion build/tasks/release-checks/tests/webpack/au-run.js
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ class AuRunRendersPage extends Test {
}

function isApplicationAvailableMessage(msg) {
return msg.indexOf('Project is running at http://localhost') > -1;
return msg.indexOf('Project is running at http://') > -1;
}

function getURL(msg) {
Expand Down

0 comments on commit 3f22fef

Please sign in to comment.