@alwaysmeticulous/sdk-bundles-api 2.175.0 → 2.177.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/index.d.ts +4 -2
- package/dist/replay-orchestrator/bundle-to-sdk/execute-scheduled-test-run-chunk.d.ts +22 -0
- package/dist/replay-orchestrator/bundle-to-sdk/execute-scheduled-test-run-chunk.js +3 -0
- package/dist/replay-orchestrator/bundle-to-sdk/execute-scheduled-test-run-chunk.js.map +1 -0
- package/dist/replay-orchestrator/bundle-to-sdk/execute-test-run.d.ts +6 -2
- package/dist/replay-orchestrator/sdk-to-bundle/execute-replay.d.ts +8 -0
- package/dist/replay-orchestrator/sdk-to-bundle/execute-scheduled-test-run-chunk.d.ts +11 -0
- package/dist/replay-orchestrator/sdk-to-bundle/execute-scheduled-test-run-chunk.js +3 -0
- package/dist/replay-orchestrator/sdk-to-bundle/execute-scheduled-test-run-chunk.js.map +1 -0
- package/package.json +3 -3
package/dist/index.d.ts
CHANGED
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
export { RecordConfig, RecordSettings } from "./record";
|
|
2
2
|
export { MeticulousWindowConfig, NetworkResponseSanitizer, } from "./record/record-settings";
|
|
3
3
|
export * from "./record/middleware";
|
|
4
|
-
export { ReplayAndStoreResultsOptions, ReplayTarget, SnapshottedAssetsReplayTarget, URLReplayTarget, OriginalRecordedURLReplayTarget, ReplayExecutionOptions, ReplayOrchestratorScreenshottingOptions, GeneratedBy, GeneratedByNotebookRun, GeneratedByTestRun, GeneratedByReplayCommand, ScreenshotComparisonOptions, ScreenshotComparisonEnabledOptions, CompareScreenshotsTo, CompareScreenshotsToSpecificReplay, CompareScreenshotsToTestRun, DoNotCompareScreenshots, OutOfDateClientError, BeforeUserEventOptions, AppUrlConfig, } from "./replay-orchestrator/sdk-to-bundle/execute-replay";
|
|
4
|
+
export { ReplayAndStoreResultsOptions, ReplayTarget, SnapshottedAssetsReplayTarget, URLReplayTarget, OriginalRecordedURLReplayTarget, ReplayExecutionOptions, ReplayOrchestratorScreenshottingOptions, GeneratedBy, GeneratedByNotebookRun, GeneratedByTestRun, GeneratedByReplayCommand, ScreenshotComparisonOptions, ScreenshotComparisonEnabledOptions, CompareScreenshotsTo, CompareScreenshotsToSpecificReplay, CompareScreenshotsToTestRun, DoNotCompareScreenshots, OutOfDateClientError, BeforeUserEventOptions, AppUrlConfig, PreNavigationResult, } from "./replay-orchestrator/sdk-to-bundle/execute-replay";
|
|
5
5
|
export { ExecuteTestRunOptions } from "./replay-orchestrator/sdk-to-bundle/execute-test-run";
|
|
6
6
|
export { ExecuteScheduledTestRunOptions } from "./replay-orchestrator/sdk-to-bundle/execute-scheduled-test-run";
|
|
7
|
-
export {
|
|
7
|
+
export { ExecuteScheduledTestRunChunkOptions } from "./replay-orchestrator/sdk-to-bundle/execute-scheduled-test-run-chunk";
|
|
8
|
+
export { ExecuteTestRunResult, ExecutionProgress, TestRunExecution, RunningTestRunExecution, FinishedTestRunExecution, TestRunProgress, DetailedTestCaseResult, } from "./replay-orchestrator/bundle-to-sdk/execute-test-run";
|
|
8
9
|
export { InProgressTestRun } from "./replay-orchestrator/bundle-to-sdk/execute-scheduled-test-run";
|
|
10
|
+
export { InProgressTestRunChunk, ExecuteTestRunChunkResult, TestRunChunkExecution, } from "./replay-orchestrator/bundle-to-sdk/execute-scheduled-test-run-chunk";
|
|
9
11
|
export { ReplayAndStoreResultsResult, ReplayExecution, BeforeUserEventResult, IndexedReplayableEvent, } from "./replay-orchestrator/bundle-to-sdk/execute-replay";
|
|
10
12
|
export { ScreenshotDiffData } from "./replay-orchestrator/bundle-to-sdk/execute-replay";
|
|
11
13
|
export { MeticulousPublicApi } from "./window-api/public-window-api";
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { Project, TestRunChunkStatus } from "@alwaysmeticulous/api";
|
|
2
|
+
import { DetailedTestCaseResult, ExecutionProgress } from "./execute-test-run";
|
|
3
|
+
export interface ExecuteTestRunChunkResult {
|
|
4
|
+
testRunChunk: TestRunChunkExecution;
|
|
5
|
+
testCaseResults: DetailedTestCaseResult[];
|
|
6
|
+
}
|
|
7
|
+
export interface TestRunChunkExecution {
|
|
8
|
+
testRunId: string;
|
|
9
|
+
chunkNumber: number;
|
|
10
|
+
status: TestRunChunkStatus;
|
|
11
|
+
project: Project;
|
|
12
|
+
progress: ExecutionProgress;
|
|
13
|
+
testRunUrl: string;
|
|
14
|
+
}
|
|
15
|
+
export interface InProgressTestRunChunk {
|
|
16
|
+
/**
|
|
17
|
+
* The results of the tests that were executed within a test run chunk.
|
|
18
|
+
* Resolves when the test run completes.
|
|
19
|
+
*/
|
|
20
|
+
result: Promise<ExecuteTestRunChunkResult>;
|
|
21
|
+
markTestRunChunkAsFailed: () => Promise<void>;
|
|
22
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"execute-scheduled-test-run-chunk.js","sourceRoot":"","sources":["../../../src/replay-orchestrator/bundle-to-sdk/execute-scheduled-test-run-chunk.ts"],"names":[],"mappings":""}
|
|
@@ -8,7 +8,7 @@ export interface TestRunExecution {
|
|
|
8
8
|
id: string;
|
|
9
9
|
status: TestRunStatus;
|
|
10
10
|
project: Project;
|
|
11
|
-
progress:
|
|
11
|
+
progress: ExecutionProgress;
|
|
12
12
|
url: string;
|
|
13
13
|
}
|
|
14
14
|
export interface RunningTestRunExecution extends TestRunExecution {
|
|
@@ -27,12 +27,16 @@ export interface TestRunEditedCoverage {
|
|
|
27
27
|
executableLinesEdited: number;
|
|
28
28
|
executableLinesEditedAndCovered: number;
|
|
29
29
|
}
|
|
30
|
-
export interface
|
|
30
|
+
export interface ExecutionProgress {
|
|
31
31
|
failedTestCases: number;
|
|
32
32
|
flakedTestCases: number;
|
|
33
33
|
passedTestCases: number;
|
|
34
34
|
runningTestCases: number;
|
|
35
35
|
}
|
|
36
|
+
/**
|
|
37
|
+
* @deprecated Use `ExecutionProgress` instead.
|
|
38
|
+
*/
|
|
39
|
+
export type TestRunProgress = ExecutionProgress;
|
|
36
40
|
export interface DetailedTestCaseResult extends TestCaseResult {
|
|
37
41
|
screenshotDiffDataByBaseReplayId: Record<string, ScreenshotDiffData>;
|
|
38
42
|
totalNumberOfScreenshots: number;
|
|
@@ -19,6 +19,7 @@ export interface ReplayAndStoreResultsOptions {
|
|
|
19
19
|
* The git ref used if there was one e.g. refs/head/master
|
|
20
20
|
*/
|
|
21
21
|
gitRef: string | null | undefined;
|
|
22
|
+
projectId: string;
|
|
22
23
|
sessionId: string;
|
|
23
24
|
/**
|
|
24
25
|
* The ID of the session to use for seeding the application state (cookies, local storage, session storage),
|
|
@@ -63,6 +64,13 @@ export interface ReplayAndStoreResultsOptions {
|
|
|
63
64
|
* If set to true, capture snapshots of assets.
|
|
64
65
|
*/
|
|
65
66
|
snapshotAssets?: boolean;
|
|
67
|
+
/**
|
|
68
|
+
* If present, contains the result of the pre-navigation step.
|
|
69
|
+
*/
|
|
70
|
+
preNavigationResult?: PreNavigationResult;
|
|
71
|
+
}
|
|
72
|
+
export interface PreNavigationResult {
|
|
73
|
+
cookies: Cookie[];
|
|
66
74
|
}
|
|
67
75
|
export interface BeforeUserEventOptions {
|
|
68
76
|
/**
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { ExecuteTestRunOptions } from "./execute-test-run";
|
|
2
|
+
export type ExecuteScheduledTestRunChunkOptions = Pick<ExecuteTestRunOptions, "chromeExecutablePath" | "apiToken" | "parallelTasks" | "logLevel" | "logicalEnvironmentVersion"> & {
|
|
3
|
+
/**
|
|
4
|
+
* The ID of the scheduled test run to execute.
|
|
5
|
+
*/
|
|
6
|
+
testRunId: string;
|
|
7
|
+
/**
|
|
8
|
+
* The chunk number to execute.
|
|
9
|
+
*/
|
|
10
|
+
chunkNumber: number;
|
|
11
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"execute-scheduled-test-run-chunk.js","sourceRoot":"","sources":["../../../src/replay-orchestrator/sdk-to-bundle/execute-scheduled-test-run-chunk.ts"],"names":[],"mappings":""}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alwaysmeticulous/sdk-bundles-api",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.177.0",
|
|
4
4
|
"description": "Meticulous common types",
|
|
5
5
|
"license": "ISC",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
"depcheck": "depcheck --ignore-patterns=dist"
|
|
20
20
|
},
|
|
21
21
|
"devDependencies": {
|
|
22
|
-
"@alwaysmeticulous/api": "^2.
|
|
22
|
+
"@alwaysmeticulous/api": "^2.177.0"
|
|
23
23
|
},
|
|
24
24
|
"peerDependencies": {
|
|
25
25
|
"loglevel": "^1.8.0"
|
|
@@ -46,5 +46,5 @@
|
|
|
46
46
|
"bugs": {
|
|
47
47
|
"url": "https://github.com/alwaysmeticulous/meticulous-sdk/issues"
|
|
48
48
|
},
|
|
49
|
-
"gitHead": "
|
|
49
|
+
"gitHead": "99b38cab406ba8de7e0fde5fd53cd98a81449ed1"
|
|
50
50
|
}
|