Skip to content

Commit 8ffc80b

Browse files
authored
change default (#118)
1 parent ccf9f78 commit 8ffc80b

File tree

4 files changed

+11
-3
lines changed

4 files changed

+11
-3
lines changed

package-lock.json

+3
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/synthetics-sdk-broken-links/src/options_func.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,7 @@ export function setDefaultOptions(
245245
per_link_options: {},
246246
total_synthetic_timeout_millis: 60000,
247247
screenshot_options: {
248-
capture_condition: ApiCaptureCondition.FAILING,
248+
capture_condition: ApiCaptureCondition.NONE,
249249
storage_location: '',
250250
},
251251
};

packages/synthetics-sdk-broken-links/test/unit/navigation_func.spec.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,7 @@ describe('GCM Synthetics Broken Links Navigation Functionality', async () => {
269269
link_start_time: 'NA',
270270
link_end_time: 'NA',
271271
is_origin: false,
272-
screenshot_output: successfulScreenshotOuput,
272+
screenshot_output: emptyScreenshotOutput,
273273
};
274274

275275
expect(synLinkResult)
@@ -326,7 +326,7 @@ describe('GCM Synthetics Broken Links Navigation Functionality', async () => {
326326
link_start_time: 'NA',
327327
link_end_time: 'NA',
328328
is_origin: false,
329-
screenshot_output: successfulScreenshotOuput,
329+
screenshot_output: emptyScreenshotOutput,
330330
};
331331

332332
expect(synLinkResult)

packages/synthetics-sdk-broken-links/test/unit/options_func.spec.ts

+5
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ import { expect } from 'chai';
1818
// Internal Project Files
1919
import {
2020
BrokenLinksResultV1_BrokenLinkCheckerOptions_LinkOrder,
21+
BrokenLinksResultV1_BrokenLinkCheckerOptions_ScreenshotOptions_CaptureCondition as ApiCaptureCondition,
2122
ResponseStatusCode,
2223
ResponseStatusCode_StatusClass,
2324
} from '@google-cloud/synthetics-sdk-api';
@@ -95,6 +96,10 @@ describe('GCM Synthetics Broken Links options_func suite testing', () => {
9596
},
9697
};
9798
expect(options.per_link_options).to.deep.equal(link_options);
99+
100+
expect(options.screenshot_options?.capture_condition).to.equal(
101+
ApiCaptureCondition.NONE
102+
);
98103
});
99104

100105
describe('validateInputOptions', () => {

0 commit comments

Comments
 (0)