Skip to content

Commit b59b67a

Browse files
committed
latest from iris
1 parent 610e532 commit b59b67a

File tree

3 files changed

+13
-13
lines changed

3 files changed

+13
-13
lines changed

Diff for: visual-js/visual-cypress/src/index.ts

+4-4
Original file line numberDiff line numberDiff line change
@@ -200,23 +200,23 @@ class CypressSauceVisual {
200200
try {
201201
const { id, url } = await this.api.createBuild({
202202
name:
203-
SAUCE_VISUAL_BUILD_NAME ||
204203
config.saucelabs?.buildName ||
204+
SAUCE_VISUAL_BUILD_NAME ||
205205
'Cypress Visual Testing',
206206
project:
207+
config.saucelabs?.project ||
207208
SAUCE_VISUAL_PROJECT ||
208209
SAUCE_VISUAL_PROJECT_NAME ||
209-
config.saucelabs?.project ||
210210
null,
211211
branch:
212+
config.saucelabs?.branch ||
212213
SAUCE_VISUAL_BRANCH ||
213214
SAUCE_VISUAL_BRANCH_NAME ||
214-
config.saucelabs?.branch ||
215215
null,
216216
defaultBranch:
217+
config.saucelabs?.defaultBranch ||
217218
SAUCE_VISUAL_DEFAULT_BRANCH ||
218219
SAUCE_VISUAL_DEFAULT_BRANCH_NAME ||
219-
config.saucelabs?.defaultBranch ||
220220
null,
221221
customId: SAUCE_VISUAL_CUSTOM_ID || null,
222222
});

Diff for: visual-js/visual-nightwatch/nightwatch/globals.js

+5-5
Original file line numberDiff line numberDiff line change
@@ -57,11 +57,11 @@ const globals = {
5757
({ url: visualBuildUrl } = build);
5858
} else {
5959
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,
6565
};
6666
try {
6767
({ id: visualBuildId, url: visualBuildUrl } = await getApi(

Diff for: visual-js/visual-wdio/src/SauceVisualService.ts

+4-4
Original file line numberDiff line numberDiff line change
@@ -292,13 +292,13 @@ export default class SauceVisualService implements Services.ServiceInstance {
292292
try {
293293
build = await this.apiClient.createBuild({
294294
name:
295-
SAUCE_VISUAL_BUILD_NAME ||
296295
this.options.buildName ||
296+
SAUCE_VISUAL_BUILD_NAME ||
297297
'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,
300300
defaultBranch:
301-
SAUCE_VISUAL_DEFAULT_BRANCH || this.options.defaultBranch || null,
301+
this.options.defaultBranch || SAUCE_VISUAL_DEFAULT_BRANCH || null,
302302
});
303303
} catch (e: unknown) {
304304
const errorMessage = ensureError(e).message ?? 'Unknown error';

0 commit comments

Comments
 (0)