Skip to content
This repository has been archived by the owner on May 22, 2024. It is now read-only.

[terra-functional-testing] update logger output for the --disable-server flag #852

Merged
merged 1 commit into from
Mar 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,9 @@ const getConfigurationOptions = (options) => {
useSeleniumStandaloneService,
} = options;

const url = `http://${externalHost || getIpAddress()}:${externalPort || 8080}`;
return {
baseUrl: `http://${externalHost || getIpAddress()}:${externalPort || 8080}`,
baseUrl: url,
capabilities: getCapabilities(browsers, !!gridUrl),
hostname: seleniumServiceUrl || gridUrl || (useSeleniumStandaloneService ? 'standalone-chrome' : 'localhost'),
port: seleniumServicePort || (gridUrl ? 80 : 4444),
Expand All @@ -60,6 +61,7 @@ const getConfigurationOptions = (options) => {
port: assetServerPort,
site,
updateScreenshots,
url,
useHttps,
useRemoteReferenceScreenshots,
...(theme ? { theme } : { theme: getDefaultThemeName() }),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ class AssetServerService {

try {
if (this.options.disableServer) {
logger.info(`Internal asset server disabled; Connecting to server on 0.0.0.0:${this.options.port}`);
logger.info(`Internal asset server disabled; Connecting to server on ${this.options.url}`);
return;
}

Expand Down
Loading