@alwaysmeticulous/sdk-bundles-api 2.40.4 → 2.41.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
CHANGED
|
@@ -2,7 +2,7 @@ export { RecordConfig, RecordSettings, RecordState } from "./record";
|
|
|
2
2
|
export { MeticulousWindowConfig, NetworkResponseSanitizer, } from "./record/record-settings";
|
|
3
3
|
export { ReplayUserInteractionsResult, ReplayUserInteractionsResultFull, ReplayUserInteractionsResultShort, BeforeUserEventOptions, } from "./replay/bundle-to-sdk/index";
|
|
4
4
|
export { BootstrapReplayUserInteractionsFn, BootstrapReplayUserInteractionsOptions, OnReplayTimelineEventFn, ReplayUserInteractionsFn, ReplayUserInteractionsOptions, VirtualTimeOptions, InstallVirtualEventLoopOpts, SetupReplayNetworkStubbingFn, NetworkStubbingOptions, BrowserContextSeedingOptions, SetupBrowserContextSeedingFn, ScreenshottingOptions, } from "./replay/sdk-to-bundle";
|
|
5
|
-
export { ReplayAndStoreResultsOptions,
|
|
5
|
+
export { ReplayAndStoreResultsOptions, ReplayTarget, SnapshottedAssetsReplayTarget, URLReplayTarget, OriginalRecordedURLReplayTarget, ReplayExecutionOptions, ReplayOrchestratorScreenshottingOptions, ScreenshottingEnabledOptions, StoryboardOptions, GeneratedBy, GeneratedByNotebookRun, GeneratedByTestRun, GeneratedByReplayCommand, ScreenshotComparisonOptions, ScreenshotComparisonEnabledOptions, CompareScreenshotsTo, CompareScreenshotsToSpecificReplay, CompareScreenshotsToTestRun, DoNotCompareScreenshots, } from "./replay-orchestrator/sdk-to-bundle/execute-replay";
|
|
6
6
|
export { ExecuteTestRunOptions } from "./replay-orchestrator/sdk-to-bundle/execute-test-run";
|
|
7
7
|
export { ExecuteTestRunResult, TestRunExecution, RunningTestRunExecution, FinishedTestRunExecution, TestRunProgress, DetailedTestCaseResult, } from "./replay-orchestrator/bundle-to-sdk/execute-test-run";
|
|
8
8
|
export { ReplayAndStoreResultsResult } from "./replay-orchestrator/bundle-to-sdk/execute-replay";
|
|
@@ -1,20 +1,50 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export interface ReplayAndStoreResultsOptions
|
|
1
|
+
import { ScreenshotDiffOptions } from "@alwaysmeticulous/api";
|
|
2
|
+
export interface ReplayAndStoreResultsOptions {
|
|
3
3
|
replayTarget: ReplayTarget;
|
|
4
4
|
executionOptions: ReplayExecutionOptions;
|
|
5
|
-
screenshottingOptions:
|
|
5
|
+
screenshottingOptions: ScreenshotComparisonOptions;
|
|
6
6
|
generatedBy: GeneratedBy;
|
|
7
7
|
testRunId: string | null;
|
|
8
8
|
suppressScreenshotDiffLogging: boolean;
|
|
9
|
-
}
|
|
10
|
-
export interface AdditionalReplayOptions {
|
|
11
9
|
apiToken: string | null | undefined;
|
|
12
10
|
commitSha: string | null | undefined;
|
|
13
11
|
sessionId: string;
|
|
14
|
-
baseTestRunId: string | null | undefined;
|
|
15
12
|
cookiesFile: string | null | undefined;
|
|
16
13
|
debugger: boolean;
|
|
17
14
|
}
|
|
15
|
+
/**
|
|
16
|
+
* Similar to ScreenshotAssertionsOptions, but also specifies the test run or base replay id
|
|
17
|
+
* to compare to.
|
|
18
|
+
*/
|
|
19
|
+
export type ScreenshotComparisonOptions = {
|
|
20
|
+
enabled: false;
|
|
21
|
+
} | ScreenshotComparisonEnabledOptions;
|
|
22
|
+
export interface ScreenshotComparisonEnabledOptions extends ScreenshottingEnabledOptions {
|
|
23
|
+
compareTo: CompareScreenshotsTo;
|
|
24
|
+
}
|
|
25
|
+
export type CompareScreenshotsTo = CompareScreenshotsToSpecificReplay | CompareScreenshotsToTestRun | DoNotCompareScreenshots;
|
|
26
|
+
export interface CompareScreenshotsToSpecificReplay {
|
|
27
|
+
type: "specific-replay";
|
|
28
|
+
replayId: string;
|
|
29
|
+
diffOptions: ScreenshotDiffOptions;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Compare to the appropiate 'base-screenshots' of the specified test run.
|
|
33
|
+
*
|
|
34
|
+
* The 'base-screenshots' of a test run are the screenshots that should be
|
|
35
|
+
* used when comparing to the test run as a base. By default the screenshots
|
|
36
|
+
* taken in the replays in that test run are used as the base-screenshots, but if
|
|
37
|
+
* there is a flake then we "don't update the base screenshot", and so re-use
|
|
38
|
+
* the base screenshot from the previous test run.
|
|
39
|
+
*/
|
|
40
|
+
export interface CompareScreenshotsToTestRun {
|
|
41
|
+
type: "base-screenshots-of-test-run";
|
|
42
|
+
testRunId: string;
|
|
43
|
+
diffOptions: ScreenshotDiffOptions;
|
|
44
|
+
}
|
|
45
|
+
export interface DoNotCompareScreenshots {
|
|
46
|
+
type: "do-not-compare";
|
|
47
|
+
}
|
|
18
48
|
export type ReplayTarget = SnapshottedAssetsReplayTarget | URLReplayTarget | OriginalRecordedURLReplayTarget;
|
|
19
49
|
export interface SnapshottedAssetsReplayTarget {
|
|
20
50
|
type: "snapshotted-assets";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alwaysmeticulous/sdk-bundles-api",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.41.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.41.0"
|
|
23
23
|
},
|
|
24
24
|
"peerDependencies": {
|
|
25
25
|
"loglevel": "^1.8.0",
|
|
@@ -50,5 +50,5 @@
|
|
|
50
50
|
"bugs": {
|
|
51
51
|
"url": "https://github.com/alwaysmeticulous/meticulous-sdk/issues"
|
|
52
52
|
},
|
|
53
|
-
"gitHead": "
|
|
53
|
+
"gitHead": "778895a7cd6a010538e338f9b2da225e71c53f48"
|
|
54
54
|
}
|