File tree 3 files changed +13
-13
lines changed
visual-nightwatch/nightwatch
3 files changed +13
-13
lines changed Original file line number Diff line number Diff line change @@ -200,23 +200,23 @@ class CypressSauceVisual {
200
200
try {
201
201
const { id, url } = await this . api . createBuild ( {
202
202
name :
203
- SAUCE_VISUAL_BUILD_NAME ||
204
203
config . saucelabs ?. buildName ||
204
+ SAUCE_VISUAL_BUILD_NAME ||
205
205
'Cypress Visual Testing' ,
206
206
project :
207
+ config . saucelabs ?. project ||
207
208
SAUCE_VISUAL_PROJECT ||
208
209
SAUCE_VISUAL_PROJECT_NAME ||
209
- config . saucelabs ?. project ||
210
210
null ,
211
211
branch :
212
+ config . saucelabs ?. branch ||
212
213
SAUCE_VISUAL_BRANCH ||
213
214
SAUCE_VISUAL_BRANCH_NAME ||
214
- config . saucelabs ?. branch ||
215
215
null ,
216
216
defaultBranch :
217
+ config . saucelabs ?. defaultBranch ||
217
218
SAUCE_VISUAL_DEFAULT_BRANCH ||
218
219
SAUCE_VISUAL_DEFAULT_BRANCH_NAME ||
219
- config . saucelabs ?. defaultBranch ||
220
220
null ,
221
221
customId : SAUCE_VISUAL_CUSTOM_ID || null ,
222
222
} ) ;
Original file line number Diff line number Diff line change @@ -57,11 +57,11 @@ const globals = {
57
57
( { url : visualBuildUrl } = build ) ;
58
58
} else {
59
59
const sauceBuildData = {
60
- name : SAUCE_VISUAL_BUILD_NAME || buildName || 'Nightwatch Visual Demo' ,
61
- project :
62
- SAUCE_VISUAL_PROJECT || project || 'Nightwatch Visual Examples' ,
63
- branch : SAUCE_VISUAL_BRANCH || branch || 'main' ,
64
- defaultBranch : SAUCE_VISUAL_DEFAULT_BRANCH || defaultBranch ,
60
+ name :
61
+ buildName || SAUCE_VISUAL_BUILD_NAME || 'Nightwatch Visual Testing' ,
62
+ project : project || SAUCE_VISUAL_PROJECT ,
63
+ branch : branch || SAUCE_VISUAL_BRANCH ,
64
+ defaultBranch : defaultBranch || SAUCE_VISUAL_DEFAULT_BRANCH ,
65
65
} ;
66
66
try {
67
67
( { id : visualBuildId , url : visualBuildUrl } = await getApi (
Original file line number Diff line number Diff line change @@ -292,13 +292,13 @@ export default class SauceVisualService implements Services.ServiceInstance {
292
292
try {
293
293
build = await this . apiClient . createBuild ( {
294
294
name :
295
- SAUCE_VISUAL_BUILD_NAME ||
296
295
this . options . buildName ||
296
+ SAUCE_VISUAL_BUILD_NAME ||
297
297
'WebdriverIO Visual Testing' ,
298
- project : SAUCE_VISUAL_PROJECT || this . options . project || null ,
299
- branch : SAUCE_VISUAL_BRANCH || this . options . branch || null ,
298
+ project : this . options . project || SAUCE_VISUAL_PROJECT || null ,
299
+ branch : this . options . branch || SAUCE_VISUAL_BRANCH || null ,
300
300
defaultBranch :
301
- SAUCE_VISUAL_DEFAULT_BRANCH || this . options . defaultBranch || null ,
301
+ this . options . defaultBranch || SAUCE_VISUAL_DEFAULT_BRANCH || null ,
302
302
} ) ;
303
303
} catch ( e : unknown ) {
304
304
const errorMessage = ensureError ( e ) . message ?? 'Unknown error' ;
You can’t perform that action at this time.
0 commit comments