Skip to content
Permalink
Browse files

fix(release-check): adjust task for webpack hostname

  • Loading branch information...
3cp committed Jun 20, 2019
1 parent 243a080 commit 3f22fef1fe534d97a0e006c352f89b409ff59391
@@ -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();
}
@@ -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) {
@@ -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();
@@ -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) {
@@ -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();
});
}
}

@@ -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();
});
}
}

@@ -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) {
@@ -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) {
@@ -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) {

0 comments on commit 3f22fef

Please sign in to comment.
You can’t perform that action at this time.