@alwaysmeticulous/api 2.291.2 → 2.292.1
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
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export { Organization } from "./organization.types";
|
|
2
2
|
export { Project, ProjectSettingsScreenshottingOptions } from "./project.types";
|
|
3
3
|
export { EndStateScreenshot, ScreenshotAfterEvent, ScreenshotAuxiliary, ScreenshotDiffResult, ScreenshotDiffResultCompared, ScreenshotDiffResultDifferentSize, ScreenshotDiffResultMissingBase, ScreenshotDiffResultMissingBaseAndHead, ScreenshotDiffResultMissingHead, ScreenshotDiffResultDifference, ScreenshotDiffResultNoDifference, ScreenshotIdentifier, ScreenshotVariant, SingleTryScreenshotDiffResult, ScreenshotDiffRetryResult, SingleTryScreenshotDiffRetryResult, RedactedScreenshotIncompatible, RedactedScreenshotsCompared, RedactedScreenshotsComparison, } from "./sdk-bundle-api/bundle-to-sdk/screenshot-diff-result";
|
|
4
|
-
export { SessionRelevance, isPrAuthorRelevance, TestCase, TestCaseReplayOptions, TestRunStatus, TestCaseResult, TestCaseResultStatus, AppContainerLogsLocations, TestRunDataLocations, TestRun, ExecuteSecureTunnelTestRunOptions, ExecuteSecureTunnelTestRunResponse, } from "./replay/test-run.types";
|
|
4
|
+
export { SessionRelevance, isPrAuthorRelevance, TestCase, TestCaseReplayOptions, TestRunStatus, TestCaseResult, TestCaseResultStatus, AppContainerLogsLocations, TestRunDataLocations, TestRun, TestRunNetworkPatchingResult, ExecuteSecureTunnelTestRunOptions, ExecuteSecureTunnelTestRunResponse, } from "./replay/test-run.types";
|
|
5
5
|
export { BaseResolutionDetails, FailedForOtherReason, RequiredNewWorkflowRunButFailedDueToNewCommitToBaseBranch, SuitableTestRunAlreadyExisted, TestRunTriggerDebugContext, TriggeredNewWorkflowRunSuccessfully, WaitedForExistingWorkflowRun, } from "./replay/test-run-debug-context.types";
|
|
6
6
|
export { TestRunChunkStatus } from "./replay/test-run-chunk.types";
|
|
7
7
|
export * from "./sdk-bundle-api/sdk-to-bundle/test-run-environment";
|
|
@@ -12,7 +12,7 @@ export { SequenceNumber, WebSocketConnectionData, WebSocketConnectionEvent, WebS
|
|
|
12
12
|
export * from "./sdk-bundle-api/sdk-to-bundle/event-source-data";
|
|
13
13
|
export { StreamingFetchChunk, StreamingFetchResponseData, } from "./sdk-bundle-api/sdk-to-bundle/streaming-fetch-data";
|
|
14
14
|
export { Replay } from "./replay/replay.types";
|
|
15
|
-
export { ScreenshotAssertionsOptions, ScreenshotAssertionsEnabledOptions, ScreenshottingEnabledOptions, StoryboardOptions, ScreenshotDiffOptions, ElementToIgnore, CSSSelectorToIgnore, } from "./sdk-bundle-api/sdk-to-bundle/screenshotting-options";
|
|
15
|
+
export { ScreenshotAssertionsOptions, ScreenshotAssertionsEnabledOptions, ScreenshottingEnabledOptions, StoryboardOptions, ScreenshotDiffOptions, ElementToIgnore, CSSSelectorToIgnore, ElementRedactionMode, } from "./sdk-bundle-api/sdk-to-bundle/screenshotting-options";
|
|
16
16
|
export { NetworkStubbingMode, StubAllRequests, StubNonSSRRequests, PassthroughAppRequests, NoStubbing, CustomStubbing, RequestFilter, CustomTransformation, CustomTransformationWhere, } from "./sdk-bundle-api/sdk-to-bundle/network-stubbing";
|
|
17
17
|
export { ConsoleMessageWithStackTracePointer, VirtualTimeChange, MeticulousConsoleMessage, ApplicationConsoleMessage, ConsoleMessageCoreData, ConsoleMessageType, ConsoleMessageLocation, } from "./sdk-bundle-api/bundle-to-sdk/console-message";
|
|
18
18
|
export { InjectableRequestHeader, StaticHeaderValue, DynamicHeaderValue, AllRequests, AppUrlRequestsOnly, CustomRequests, } from "./sdk-bundle-api/sdk-to-bundle/header-injection";
|
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="
|
|
2
|
+
!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="6a3818e5-6f74-5ea1-a8aa-358d088295ca")}catch(e){}}();
|
|
3
3
|
|
|
4
4
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
5
5
|
if (k2 === undefined) k2 = k;
|
|
@@ -29,4 +29,4 @@ Object.defineProperty(exports, "NETWORK_REQUESTS_SNAPSHOT_TYPE", { enumerable: t
|
|
|
29
29
|
Object.defineProperty(exports, "CUSTOM_CHECK_SUMMARY_MAX_LENGTH", { enumerable: true, get: function () { return custom_checks_types_1.CUSTOM_CHECK_SUMMARY_MAX_LENGTH; } });
|
|
30
30
|
Object.defineProperty(exports, "CUSTOM_CHECK_RESULTS_STATUSES", { enumerable: true, get: function () { return custom_checks_types_1.CUSTOM_CHECK_RESULTS_STATUSES; } });
|
|
31
31
|
//# sourceMappingURL=index.js.map
|
|
32
|
-
//# debugId=
|
|
32
|
+
//# debugId=6a3818e5-6f74-5ea1-a8aa-358d088295ca
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../src/index.ts"],"sourceRoot":"","names":[],"mappings":";;;;;;;;;;;;;;;;;;;AAuBA,
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../src/index.ts"],"sourceRoot":"","names":[],"mappings":";;;;;;;;;;;;;;;;;;;AAuBA,0DAciC;AAb/B,kHAAA,gBAAgB,OAAA;AAChB,qHAAA,mBAAmB,OAAA;AAuBrB,sFAAoE;AAQpE,4EAsBqD;AATnD,8HAAA,8BAA8B,OAAA;AAsBhC,mFAAiE;AA4DjE,6DAiB+B;AAN7B,qIAAA,8BAA8B,OAAA;AAC9B,sIAAA,+BAA+B,OAAA;AAC/B,oIAAA,6BAA6B,OAAA","debugId":"6a3818e5-6f74-5ea1-a8aa-358d088295ca"}
|
|
@@ -107,6 +107,30 @@ export interface TestRun {
|
|
|
107
107
|
};
|
|
108
108
|
url: string;
|
|
109
109
|
}
|
|
110
|
+
/**
|
|
111
|
+
* Result of resolving the "effective" test run for a (potentially network
|
|
112
|
+
* patched) test run.
|
|
113
|
+
*
|
|
114
|
+
* When network patching (session repair) is enabled, completing the original
|
|
115
|
+
* test run may trigger a hidden patching test run whose results are merged into
|
|
116
|
+
* a separate merged test run. The merged test run is the one surfaced in the
|
|
117
|
+
* Meticulous UI, so custom check results must be reported against it rather than
|
|
118
|
+
* the original run.
|
|
119
|
+
*/
|
|
120
|
+
export interface TestRunNetworkPatchingResult {
|
|
121
|
+
/**
|
|
122
|
+
* The test run that custom check results should be reported against. Equal to
|
|
123
|
+
* the requested test run id when no network patching applies, otherwise the
|
|
124
|
+
* merged test run id once it has been created.
|
|
125
|
+
*/
|
|
126
|
+
effectiveTestRunId: string;
|
|
127
|
+
/**
|
|
128
|
+
* True while a session-repair (network patching) run and/or its merged test
|
|
129
|
+
* run is still expected or in progress. Clients should keep polling while this
|
|
130
|
+
* is true, and report against `effectiveTestRunId` once it is false.
|
|
131
|
+
*/
|
|
132
|
+
isNetworkPatchingInProgress: boolean;
|
|
133
|
+
}
|
|
110
134
|
export interface ExecuteSecureTunnelTestRunOptions {
|
|
111
135
|
headSha: string;
|
|
112
136
|
tunnelUrl: string;
|
|
@@ -28,6 +28,25 @@ export interface ScreenshotDiffOptions {
|
|
|
28
28
|
shouldUseRedactedScreenshotByScreenshotFilename?: Record<string, boolean>;
|
|
29
29
|
}
|
|
30
30
|
export type ElementToIgnore = CSSSelectorToIgnore;
|
|
31
|
+
/**
|
|
32
|
+
* Controls in which contexts a matched element is hidden. Named for where it is hidden.
|
|
33
|
+
* Defaults to "replay-and-diff".
|
|
34
|
+
*
|
|
35
|
+
* The element is always hidden for the diff screenshot used in comparison — that is what makes
|
|
36
|
+
* it "ignored". The mode controls whether it is *additionally* hidden during the replay itself
|
|
37
|
+
* and in the user-facing screenshot:
|
|
38
|
+
*
|
|
39
|
+
* - "diff-only": hidden only for the diff screenshot. The element stays present and interactive
|
|
40
|
+
* throughout the replay and is visible in the user-facing screenshot. Use for content that is
|
|
41
|
+
* noisy/non-deterministic to diff but whose existence, size and position are stable (so
|
|
42
|
+
* interacting with it and letting it hold layout is safe).
|
|
43
|
+
* - "replay-and-diff": additionally removed throughout the replay, so it can never be interacted
|
|
44
|
+
* with and never affects layout, but is still shown in the user-facing screenshot. This is the
|
|
45
|
+
* default and avoids "shifted diff" flakes from elements that load at inconsistent sizes.
|
|
46
|
+
* - "always": additionally hidden in the user-facing screenshot, so the element is never visible
|
|
47
|
+
* anywhere.
|
|
48
|
+
*/
|
|
49
|
+
export type ElementRedactionMode = "always" | "replay-and-diff" | "diff-only";
|
|
31
50
|
/**
|
|
32
51
|
* Any elements that match this CSS selector will be hidden/removed before taking a screenshot.
|
|
33
52
|
*
|
|
@@ -43,4 +62,9 @@ export interface CSSSelectorToIgnore {
|
|
|
43
62
|
*/
|
|
44
63
|
shadowHostSelector?: string;
|
|
45
64
|
comment?: string;
|
|
65
|
+
/**
|
|
66
|
+
* Controls in which contexts the matched element is hidden. Defaults to "replay-and-diff".
|
|
67
|
+
* See {@link ElementRedactionMode}.
|
|
68
|
+
*/
|
|
69
|
+
redactionMode?: ElementRedactionMode;
|
|
46
70
|
}
|