@alwaysmeticulous/cli 2.37.0 → 2.38.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/command-utils/common-options.d.ts +0 -10
- package/dist/command-utils/common-options.js +0 -6
- package/dist/commands/create-test/create-test.command.d.ts +0 -5
- package/dist/commands/create-test/create-test.command.js +1 -2
- package/dist/commands/replay/replay.command.d.ts +1 -6
- package/dist/commands/replay/replay.command.js +1 -2
- package/dist/commands/run-all-tests/run-all-tests.command.d.ts +0 -5
- package/dist/commands/run-all-tests/run-all-tests.command.js +1 -2
- package/package.json +3 -3
|
@@ -20,11 +20,6 @@ export declare const OPTIONS: {
|
|
|
20
20
|
readonly description: "Enables bypass CSP in the browser (danger: this could mean you tests hit your production backend)";
|
|
21
21
|
readonly default: false;
|
|
22
22
|
};
|
|
23
|
-
readonly padTime: {
|
|
24
|
-
readonly boolean: true;
|
|
25
|
-
readonly description: "Pad replay time according to recording duration. Please note this option will be ignored if running with the '--skipPauses' option.";
|
|
26
|
-
readonly default: true;
|
|
27
|
-
};
|
|
28
23
|
readonly shiftTime: {
|
|
29
24
|
readonly boolean: true;
|
|
30
25
|
readonly description: "Shift time during simulation to be set as the recording time";
|
|
@@ -120,11 +115,6 @@ export declare const COMMON_REPLAY_OPTIONS: {
|
|
|
120
115
|
readonly description: "Enables bypass CSP in the browser (danger: this could mean you tests hit your production backend)";
|
|
121
116
|
readonly default: false;
|
|
122
117
|
};
|
|
123
|
-
padTime: {
|
|
124
|
-
readonly boolean: true;
|
|
125
|
-
readonly description: "Pad replay time according to recording duration. Please note this option will be ignored if running with the '--skipPauses' option.";
|
|
126
|
-
readonly default: true;
|
|
127
|
-
};
|
|
128
118
|
shiftTime: {
|
|
129
119
|
readonly boolean: true;
|
|
130
120
|
readonly description: "Shift time during simulation to be set as the recording time";
|
|
@@ -33,11 +33,6 @@ exports.OPTIONS = {
|
|
|
33
33
|
description: "Enables bypass CSP in the browser (danger: this could mean you tests hit your production backend)",
|
|
34
34
|
default: false,
|
|
35
35
|
},
|
|
36
|
-
padTime: {
|
|
37
|
-
boolean: true,
|
|
38
|
-
description: "Pad replay time according to recording duration. Please note this option will be ignored if running with the '--skipPauses' option.",
|
|
39
|
-
default: true,
|
|
40
|
-
},
|
|
41
36
|
shiftTime: {
|
|
42
37
|
boolean: true,
|
|
43
38
|
description: "Shift time during simulation to be set as the recording time",
|
|
@@ -109,7 +104,6 @@ exports.COMMON_REPLAY_OPTIONS = {
|
|
|
109
104
|
headless: exports.OPTIONS.headless,
|
|
110
105
|
devTools: exports.OPTIONS.devTools,
|
|
111
106
|
bypassCSP: exports.OPTIONS.bypassCSP,
|
|
112
|
-
padTime: exports.OPTIONS.padTime,
|
|
113
107
|
shiftTime: exports.OPTIONS.shiftTime,
|
|
114
108
|
networkStubbing: exports.OPTIONS.networkStubbing,
|
|
115
109
|
skipPauses: exports.OPTIONS.skipPauses,
|
|
@@ -20,11 +20,6 @@ export declare const createTestCommand: import("yargs").CommandModule<unknown, i
|
|
|
20
20
|
readonly description: "Enables bypass CSP in the browser (danger: this could mean you tests hit your production backend)";
|
|
21
21
|
readonly default: false;
|
|
22
22
|
};
|
|
23
|
-
padTime: {
|
|
24
|
-
readonly boolean: true;
|
|
25
|
-
readonly description: "Pad replay time according to recording duration. Please note this option will be ignored if running with the '--skipPauses' option.";
|
|
26
|
-
readonly default: true;
|
|
27
|
-
};
|
|
28
23
|
shiftTime: {
|
|
29
24
|
readonly boolean: true;
|
|
30
25
|
readonly description: "Shift time during simulation to be set as the recording time";
|
|
@@ -59,7 +59,7 @@ apiToken, commitSha, devTools, bypassCSP,
|
|
|
59
59
|
// Record options
|
|
60
60
|
width, height, uploadIntervalMs, incognito, trace,
|
|
61
61
|
// Replay options
|
|
62
|
-
headless, screenshotSelector,
|
|
62
|
+
headless, screenshotSelector, shiftTime, networkStubbing, moveBeforeClick, cookiesFile, disableRemoteFonts, noSandbox, skipPauses, }) => {
|
|
63
63
|
const logger = loglevel_1.default.getLogger(common_1.METICULOUS_LOGGER_NAME);
|
|
64
64
|
logger.info("Creating a new Meticulous test");
|
|
65
65
|
logger.info("Step 1: record a new test");
|
|
@@ -96,7 +96,6 @@ headless, screenshotSelector, padTime, shiftTime, networkStubbing, moveBeforeCli
|
|
|
96
96
|
bypassCSP,
|
|
97
97
|
screenshot: true,
|
|
98
98
|
screenshotSelector,
|
|
99
|
-
padTime,
|
|
100
99
|
shiftTime,
|
|
101
100
|
disableRemoteFonts,
|
|
102
101
|
noSandbox,
|
|
@@ -36,7 +36,7 @@ interface AdditionalReplayOptions {
|
|
|
36
36
|
cookiesFile: string | null | undefined;
|
|
37
37
|
debugger: boolean;
|
|
38
38
|
}
|
|
39
|
-
export declare const rawReplayCommandHandler: ({ apiToken, commitSha, sessionId, appUrl, simulationIdForAssets, headless, devTools, bypassCSP, screenshot, screenshotSelector, diffThreshold, diffPixelThreshold,
|
|
39
|
+
export declare const rawReplayCommandHandler: ({ apiToken, commitSha, sessionId, appUrl, simulationIdForAssets, headless, devTools, bypassCSP, screenshot, screenshotSelector, diffThreshold, diffPixelThreshold, shiftTime, networkStubbing, moveBeforeClick, cookiesFile, disableRemoteFonts, noSandbox, skipPauses, maxDurationMs, maxEventCount, storyboard, essentialFeaturesOnly, debugger: enableStepThroughDebugger, }: RawReplayCommandHandlerOptions) => Promise<Replay>;
|
|
40
40
|
export declare const getReplayTarget: ({ appUrl, simulationIdForAssets, }: {
|
|
41
41
|
appUrl: string | null;
|
|
42
42
|
simulationIdForAssets: string | null;
|
|
@@ -72,11 +72,6 @@ export declare const replayCommand: import("yargs").CommandModule<unknown, impor
|
|
|
72
72
|
readonly description: "Enables bypass CSP in the browser (danger: this could mean you tests hit your production backend)";
|
|
73
73
|
readonly default: false;
|
|
74
74
|
};
|
|
75
|
-
padTime: {
|
|
76
|
-
readonly boolean: true;
|
|
77
|
-
readonly description: "Pad replay time according to recording duration. Please note this option will be ignored if running with the '--skipPauses' option.";
|
|
78
|
-
readonly default: true;
|
|
79
|
-
};
|
|
80
75
|
shiftTime: {
|
|
81
76
|
readonly boolean: true;
|
|
82
77
|
readonly description: "Shift time during simulation to be set as the recording time";
|
|
@@ -232,12 +232,11 @@ const serveOrGetAppUrl = async (client, replayTarget) => {
|
|
|
232
232
|
const unknownReplayTargetType = (replayTarget) => {
|
|
233
233
|
throw new Error(`Unknown type of replay target: ${JSON.stringify(replayTarget)}`);
|
|
234
234
|
};
|
|
235
|
-
const rawReplayCommandHandler = async ({ apiToken, commitSha, sessionId, appUrl, simulationIdForAssets, headless, devTools, bypassCSP, screenshot, screenshotSelector, diffThreshold, diffPixelThreshold,
|
|
235
|
+
const rawReplayCommandHandler = async ({ apiToken, commitSha, sessionId, appUrl, simulationIdForAssets, headless, devTools, bypassCSP, screenshot, screenshotSelector, diffThreshold, diffPixelThreshold, shiftTime, networkStubbing, moveBeforeClick, cookiesFile, disableRemoteFonts, noSandbox, skipPauses, maxDurationMs, maxEventCount, storyboard, essentialFeaturesOnly, debugger: enableStepThroughDebugger, }) => {
|
|
236
236
|
const executionOptions = {
|
|
237
237
|
headless,
|
|
238
238
|
devTools,
|
|
239
239
|
bypassCSP,
|
|
240
|
-
padTime,
|
|
241
240
|
shiftTime,
|
|
242
241
|
networkStubbing,
|
|
243
242
|
skipPauses,
|
|
@@ -30,11 +30,6 @@ export declare const runAllTestsCommand: import("yargs").CommandModule<unknown,
|
|
|
30
30
|
readonly description: "Enables bypass CSP in the browser (danger: this could mean you tests hit your production backend)";
|
|
31
31
|
readonly default: false;
|
|
32
32
|
};
|
|
33
|
-
readonly padTime: {
|
|
34
|
-
readonly boolean: true;
|
|
35
|
-
readonly description: "Pad replay time according to recording duration. Please note this option will be ignored if running with the '--skipPauses' option.";
|
|
36
|
-
readonly default: true;
|
|
37
|
-
};
|
|
38
33
|
readonly shiftTime: {
|
|
39
34
|
readonly boolean: true;
|
|
40
35
|
readonly description: "Shift time during simulation to be set as the recording time";
|
|
@@ -7,12 +7,11 @@ const command_builder_1 = require("../../command-utils/command-builder");
|
|
|
7
7
|
const common_options_1 = require("../../command-utils/common-options");
|
|
8
8
|
const run_all_tests_1 = require("../../parallel-tests/run-all-tests");
|
|
9
9
|
const commit_sha_utils_1 = require("../../utils/commit-sha.utils");
|
|
10
|
-
const handler = async ({ apiToken, commitSha: commitSha_, baseCommitSha, appUrl, headless, devTools, bypassCSP, diffThreshold, diffPixelThreshold,
|
|
10
|
+
const handler = async ({ apiToken, commitSha: commitSha_, baseCommitSha, appUrl, headless, devTools, bypassCSP, diffThreshold, diffPixelThreshold, shiftTime, networkStubbing, githubSummary, parallelize, parallelTasks: parrelelTasks_, deflake, maxRetriesOnFailure, useCache, testsFile, disableRemoteFonts, noSandbox, skipPauses, moveBeforeClick, maxDurationMs, maxEventCount, storyboard, essentialFeaturesOnly, baseTestRunId, }) => {
|
|
11
11
|
const executionOptions = {
|
|
12
12
|
headless,
|
|
13
13
|
devTools,
|
|
14
14
|
bypassCSP,
|
|
15
|
-
padTime,
|
|
16
15
|
shiftTime,
|
|
17
16
|
networkStubbing,
|
|
18
17
|
disableRemoteFonts,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alwaysmeticulous/cli",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.38.0",
|
|
4
4
|
"description": "The Meticulous CLI",
|
|
5
5
|
"license": "ISC",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
"test": "jest"
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"@alwaysmeticulous/common": "^2.
|
|
29
|
+
"@alwaysmeticulous/common": "^2.38.0",
|
|
30
30
|
"@sentry/node": "^7.36.0",
|
|
31
31
|
"@sentry/tracing": "^7.36.0",
|
|
32
32
|
"adm-zip": "^0.5.9",
|
|
@@ -95,5 +95,5 @@
|
|
|
95
95
|
"coverageDirectory": "../coverage",
|
|
96
96
|
"testEnvironment": "node"
|
|
97
97
|
},
|
|
98
|
-
"gitHead": "
|
|
98
|
+
"gitHead": "2c4fbc9225d5e0dc09f14a1e90a67008a5e3f376"
|
|
99
99
|
}
|