@alwaysmeticulous/api 2.172.0 → 2.175.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
|
@@ -5,7 +5,7 @@ export { TestCase, TestCaseReplayOptions, TestRunStatus, TestCaseResult, TestCas
|
|
|
5
5
|
export * from "./sdk-bundle-api/sdk-to-bundle/test-run-environment";
|
|
6
6
|
export { ReplayableEvent } from "./sdk-bundle-api/bidirectional/replayable-event";
|
|
7
7
|
export { HarEntry, HarLog, HarRequest, HarResponse, } from "./sdk-bundle-api/sdk-to-bundle/har-log";
|
|
8
|
-
export { Cookie, SessionData, UrlHistoryEvent, WindowData, ApplicationSpecificData, StorageEntry, EarlyRequest, SerializedIDBValidKey, IDBObjectStoreMetadata, IDBObjectStoreWithEntries, CustomData, } from "./sdk-bundle-api/sdk-to-bundle/session-data";
|
|
8
|
+
export { Cookie, SessionData, UrlHistoryEvent, WindowData, ApplicationSpecificData, StorageEntry, EarlyRequest, SerializedIDBValidKey, IDBObjectStoreMetadata, IDBObjectStoreWithEntries, CustomData, CustomUserEvent, } from "./sdk-bundle-api/sdk-to-bundle/session-data";
|
|
9
9
|
export { SequenceNumber, WebSocketConnectionData, WebSocketConnectionEvent, WebSocketConnectionCreatedEvent, WebSocketConnectionOpenedEvent, EncodedArrayBuffer, EncodedBlob, WebSocketConnectionMessageEvent, WebSocketConnectionErrorEvent, WebSocketConnectionClosedEvent, } from "./sdk-bundle-api/sdk-to-bundle/websocket-data";
|
|
10
10
|
export { Replay } from "./replay/replay.types";
|
|
11
11
|
export { ScreenshotAssertionsOptions, ScreenshotAssertionsEnabledOptions, ScreenshottingEnabledOptions, StoryboardOptions, ScreenshotDiffOptions, ElementToIgnore, CSSSelectorToIgnore, } from "./sdk-bundle-api/sdk-to-bundle/screenshotting-options";
|
|
@@ -32,6 +32,11 @@ export interface DivergenceConsoleError {
|
|
|
32
32
|
numHeadAppearances: number;
|
|
33
33
|
numBaseAppearances: number;
|
|
34
34
|
}
|
|
35
|
+
/**
|
|
36
|
+
* Initially we only classified divergences with this indicator based on console error timeline
|
|
37
|
+
* entries, but as of Nov 18, 2024 we also classify divergences with this indicator based on
|
|
38
|
+
* unhandled-window-error and unhandled-promise-rejection timeline events.
|
|
39
|
+
*/
|
|
35
40
|
export interface ConsoleErrorDivergenceIndicator {
|
|
36
41
|
type: "console-error";
|
|
37
42
|
beforeErrors: DivergenceConsoleError[];
|
|
@@ -76,10 +76,16 @@ export interface ScreenshotDiffResultCompared {
|
|
|
76
76
|
* The result of comparing the redacted screenshots (i.e. screenshots taken after elements
|
|
77
77
|
* to ignore have been hidden/removed).
|
|
78
78
|
*
|
|
79
|
-
* Present
|
|
80
|
-
*
|
|
79
|
+
* Present if there were redacted screenshots to compare and either:
|
|
80
|
+
* 1. the original normal screenshots differed or
|
|
81
|
+
* 2. this comparison was a retry and the original comparison result was from the redacted screenshots
|
|
81
82
|
*/
|
|
82
|
-
redactedScreenshotsComparisonResult?:
|
|
83
|
+
redactedScreenshotsComparisonResult?: {
|
|
84
|
+
/**
|
|
85
|
+
* This field will only be true if we are in situation 2 above and the original comparison was a no diff.
|
|
86
|
+
*/
|
|
87
|
+
wasOriginalComparisonNoDiff?: boolean;
|
|
88
|
+
} & (RedactedScreenshotsCompared | RedactedScreenshotIncompatible);
|
|
83
89
|
}
|
|
84
90
|
export interface ScreenshotDiffResultNoDifference extends ScreenshotDiffResultCompared {
|
|
85
91
|
outcome: "no-diff";
|
|
@@ -133,7 +139,16 @@ export interface ScreenshotDiffResultFlake {
|
|
|
133
139
|
*/
|
|
134
140
|
diffsToHeadScreenshotOnRetries: ScreenshotDiffRetryResult[];
|
|
135
141
|
}
|
|
136
|
-
|
|
142
|
+
/**
|
|
143
|
+
* - **varied-results-on-retry**: The head screenshot was retaken one or more times and at least one of
|
|
144
|
+
* the new head screenshots differed from the first head screenshot.
|
|
145
|
+
*
|
|
146
|
+
* - **varied-redacted-results-on-retry**: The comparison between the retry screenshot and the original screenshot did not have
|
|
147
|
+
* a diff but when we compared the redacted versions of the screenshot we found a diff.
|
|
148
|
+
*
|
|
149
|
+
* - **diff-is-known-flake**: The diff screenshot's hash matches the hash of a flake that was previously detected by one of the methods above.
|
|
150
|
+
*/
|
|
151
|
+
export type FlakeEvidence = "varied-results-on-retry" | "varied-redacted-results-on-retry" | "diff-is-known-flake";
|
|
137
152
|
export type ScreenshotDiffRetryResult = SingleTryScreenshotDiffRetryResult | ScreenshotDiffResultMissingBaseAndHead;
|
|
138
153
|
export type SingleTryScreenshotDiffRetryResult = {
|
|
139
154
|
/**
|
|
@@ -26,6 +26,7 @@ export interface ScreenshotDiffOptions {
|
|
|
26
26
|
diffThreshold: number;
|
|
27
27
|
diffPixelThreshold: number;
|
|
28
28
|
diffHashesToIgnoreByScreenshotFilename?: Record<string, string[]>;
|
|
29
|
+
shouldUseRedactedScreenshotByScreenshotFilename?: Record<string, boolean>;
|
|
29
30
|
}
|
|
30
31
|
export type ElementToIgnore = CSSSelectorToIgnore;
|
|
31
32
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alwaysmeticulous/api",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.175.0",
|
|
4
4
|
"description": "Meticulous API types",
|
|
5
5
|
"license": "ISC",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -35,5 +35,5 @@
|
|
|
35
35
|
"bugs": {
|
|
36
36
|
"url": "https://github.com/alwaysmeticulous/meticulous-sdk/issues"
|
|
37
37
|
},
|
|
38
|
-
"gitHead": "
|
|
38
|
+
"gitHead": "600b5e17072eea1fb83d54e536dc644a7c95a87f"
|
|
39
39
|
}
|