@alwaysmeticulous/api 2.39.0 → 2.40.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.
|
@@ -28,7 +28,6 @@ export interface ScreenshotAssertionsEnabledOptions extends ScreenshottingEnable
|
|
|
28
28
|
}
|
|
29
29
|
export interface ScreenshottingEnabledOptions {
|
|
30
30
|
enabled: true;
|
|
31
|
-
screenshotSelector: string | null;
|
|
32
31
|
storyboardOptions: StoryboardOptions;
|
|
33
32
|
}
|
|
34
33
|
export declare type StoryboardOptions = {
|
|
@@ -46,10 +45,19 @@ export type ScreenshotDiffResult = {
|
|
|
46
45
|
identifier: ScreenshotIdentifier;
|
|
47
46
|
} & (SingleTryScreenshotDiffResult | ScreenshotDiffResultFlake);
|
|
48
47
|
export type ScreenshotIdentifier = EndStateScreenshot | ScreenshotAfterEvent;
|
|
49
|
-
export interface
|
|
48
|
+
export interface LogicVersioned {
|
|
49
|
+
/**
|
|
50
|
+
* The version of the logic used to generate the screenshot. This should be bumped
|
|
51
|
+
* whenever the Meticulous code changes such that two screenshots on different logic versions
|
|
52
|
+
* are incomparable. This field is used to avoid falsely flagging a diff to our users when
|
|
53
|
+
* the logic to generate a screenshot or execute a replay changes.
|
|
54
|
+
*/
|
|
55
|
+
logicVersion?: number;
|
|
56
|
+
}
|
|
57
|
+
export interface EndStateScreenshot extends LogicVersioned {
|
|
50
58
|
type: "end-state";
|
|
51
59
|
}
|
|
52
|
-
export interface ScreenshotAfterEvent {
|
|
60
|
+
export interface ScreenshotAfterEvent extends LogicVersioned {
|
|
53
61
|
type: "after-event";
|
|
54
62
|
/** 0 indexed */
|
|
55
63
|
eventNumber: number;
|
|
@@ -18,7 +18,6 @@ export interface TestCaseReplayOptions extends Partial<ScreenshotDiffOptions> {
|
|
|
18
18
|
* If present will run the session against a local server serving up previously snapshotted assets (HTML, JS, CSS etc.) from the specified prior replay, instead of against a URL.
|
|
19
19
|
*/
|
|
20
20
|
simulationIdForAssets?: string | undefined;
|
|
21
|
-
screenshotSelector?: string;
|
|
22
21
|
moveBeforeClick?: boolean;
|
|
23
22
|
}
|
|
24
23
|
export interface TestRunArguments {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alwaysmeticulous/api",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.40.0",
|
|
4
4
|
"description": "Meticulous API types",
|
|
5
5
|
"license": "ISC",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -34,5 +34,5 @@
|
|
|
34
34
|
"bugs": {
|
|
35
35
|
"url": "https://github.com/alwaysmeticulous/meticulous-sdk/issues"
|
|
36
36
|
},
|
|
37
|
-
"gitHead": "
|
|
37
|
+
"gitHead": "46c8a774b634b1e43ca8e792a6ed573adba296ef"
|
|
38
38
|
}
|