@@ -34,9 +34,9 @@ describe('getCapabilities', () => {
34
34
35
35
const defaultWebpackPath = path . resolve ( process . cwd ( ) , 'webpack.config.js' ) ;
36
36
const capabilities = getCapabilities ( options . browsers , ! ! options . gridUrl ) ;
37
-
37
+ const url = `http:// ${ options . externalHost } : ${ options . externalPort } ` ;
38
38
const expectedConfig = {
39
- baseUrl : `http:// ${ options . externalHost } : ${ options . externalPort } ` ,
39
+ baseUrl : url ,
40
40
capabilities,
41
41
hostname : options . gridUrl ,
42
42
port : 80 ,
@@ -47,6 +47,7 @@ describe('getCapabilities', () => {
47
47
buildType : BUILD_TYPE . branchEventCause ,
48
48
buildUrl : 'www.buildurl.com' ,
49
49
disableSeleniumService : true ,
50
+ disableServer : undefined ,
50
51
formFactor : options . formFactor ,
51
52
gitApiUrl : 'www.gitapiurl.com' ,
52
53
gitToken : '12345' ,
@@ -59,6 +60,8 @@ describe('getCapabilities', () => {
59
60
site : options . site ,
60
61
theme : options . theme ,
61
62
overrideTheme : options . theme ,
63
+ url,
64
+ useHttps : undefined ,
62
65
updateScreenshots : true ,
63
66
useRemoteReferenceScreenshots : true ,
64
67
webpackConfig : defaultWebpackPath ,
@@ -111,6 +114,7 @@ describe('getCapabilities', () => {
111
114
buildType : BUILD_TYPE . branchEventCause ,
112
115
buildUrl : 'www.buildurl.com' ,
113
116
disableSeleniumService : true ,
117
+ disableServer : undefined ,
114
118
formFactor : options . formFactor ,
115
119
gitApiUrl : 'www.gitapiurl.com' ,
116
120
gitToken : '12345' ,
@@ -124,6 +128,8 @@ describe('getCapabilities', () => {
124
128
theme : options . theme ,
125
129
overrideTheme : options . theme ,
126
130
updateScreenshots : true ,
131
+ url : 'http://externalHost:3000' ,
132
+ useHttps : undefined ,
127
133
useRemoteReferenceScreenshots : false ,
128
134
webpackConfig : defaultWebpackPath ,
129
135
} ,
@@ -137,9 +143,9 @@ describe('getCapabilities', () => {
137
143
it ( 'should get configuration with empty options' , async ( ) => {
138
144
const defaultWebpackPath = path . resolve ( process . cwd ( ) , 'webpack.config.js' ) ;
139
145
const capabilities = getCapabilities ( undefined , ! ! undefined ) ;
140
-
146
+ const url = `http:// ${ getIpAddress ( ) } :8080` ;
141
147
const expectedConfig = {
142
- baseUrl : `http:// ${ getIpAddress ( ) } :8080` ,
148
+ baseUrl : url ,
143
149
capabilities,
144
150
hostname : 'localhost' ,
145
151
port : 4444 ,
@@ -148,6 +154,7 @@ describe('getCapabilities', () => {
148
154
buildType : undefined ,
149
155
buildUrl : undefined ,
150
156
disableSeleniumService : false ,
157
+ disableServer : undefined ,
151
158
formFactor : undefined ,
152
159
gitApiUrl : undefined ,
153
160
gitToken : undefined ,
@@ -156,11 +163,13 @@ describe('getCapabilities', () => {
156
163
issueNumber : undefined ,
157
164
keepAliveSeleniumDockerService : undefined ,
158
165
locale : undefined ,
166
+ overrideTheme : undefined ,
159
167
port : undefined ,
160
168
site : undefined ,
161
169
theme : 'terra-default-theme' ,
162
- overrideTheme : undefined ,
163
170
updateScreenshots : undefined ,
171
+ url,
172
+ useHttps : undefined ,
164
173
useRemoteReferenceScreenshots : undefined ,
165
174
webpackConfig : defaultWebpackPath ,
166
175
} ,
0 commit comments