@alwaysmeticulous/client 2.264.1 → 2.264.4
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/api/agent.api.d.ts
CHANGED
|
@@ -1,9 +1,5 @@
|
|
|
1
1
|
import { MeticulousClient } from "../types/client.types";
|
|
2
2
|
export interface DiffsSummaryOptions {
|
|
3
|
-
includeDomDiffGroups?: boolean;
|
|
4
|
-
includeImageDiffHashes?: boolean;
|
|
5
|
-
includeJsCoverageGroups?: boolean;
|
|
6
|
-
includeCssCoverageGroups?: boolean;
|
|
7
3
|
includeReplayIds?: boolean;
|
|
8
4
|
showAll?: boolean;
|
|
9
5
|
}
|
|
@@ -15,9 +11,6 @@ export interface DiffsSummaryScreenshot {
|
|
|
15
11
|
userVisibleOutcome: string;
|
|
16
12
|
mismatchFraction: number | null;
|
|
17
13
|
domDiffIds: string;
|
|
18
|
-
imageDiffId?: string;
|
|
19
|
-
jsCoverageGroupId?: string;
|
|
20
|
-
cssCoverageGroupId?: string;
|
|
21
14
|
}
|
|
22
15
|
export interface DiffsSummaryReplayDiff {
|
|
23
16
|
replayDiffId: string;
|
|
@@ -72,6 +65,6 @@ export interface TimelineDiffResponse {
|
|
|
72
65
|
export declare const getDiffsSummaryJobs: (client: MeticulousClient) => Promise<DiffsSummaryJobsResponse>;
|
|
73
66
|
export declare const triggerTestRunDiffsSummary: (client: MeticulousClient, testRunId: string, options: DiffsSummaryOptions) => Promise<DiffsSummaryResponse>;
|
|
74
67
|
export declare const getTestRunDiffsSummaryStatus: (client: MeticulousClient, jobId: string) => Promise<DiffsSummaryResponse>;
|
|
75
|
-
export declare const getScreenshotDomDiff: (client: MeticulousClient, replayDiffId: string, screenshotName: string, index?: number) => Promise<ScreenshotDomDiffResponse>;
|
|
68
|
+
export declare const getScreenshotDomDiff: (client: MeticulousClient, replayDiffId: string, screenshotName: string, index?: number, context?: string) => Promise<ScreenshotDomDiffResponse>;
|
|
76
69
|
export declare const getScreenshotUrls: (client: MeticulousClient, replayDiffId: string, screenshotName: string) => Promise<ScreenshotUrlsResponse>;
|
|
77
70
|
export declare const getTimelineDiff: (client: MeticulousClient, replayDiffId: string) => Promise<TimelineDiffResponse>;
|
package/dist/api/agent.api.js
CHANGED
|
@@ -32,11 +32,14 @@ const getTestRunDiffsSummaryStatus = async (client, jobId) => {
|
|
|
32
32
|
return data;
|
|
33
33
|
};
|
|
34
34
|
exports.getTestRunDiffsSummaryStatus = getTestRunDiffsSummaryStatus;
|
|
35
|
-
const getScreenshotDomDiff = async (client, replayDiffId, screenshotName, index) => {
|
|
35
|
+
const getScreenshotDomDiff = async (client, replayDiffId, screenshotName, index, context) => {
|
|
36
36
|
const params = {};
|
|
37
37
|
if (index != null) {
|
|
38
38
|
params.index = String(index);
|
|
39
39
|
}
|
|
40
|
+
if (context != null) {
|
|
41
|
+
params.context = context;
|
|
42
|
+
}
|
|
40
43
|
const { data } = await client
|
|
41
44
|
.get(`agent/replay-diffs/${replayDiffId}/screenshots/${encodeURIComponent(screenshotName)}/dom-diff`, { params })
|
|
42
45
|
.catch((error) => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"agent.api.js","sourceRoot":"","sources":["../../src/api/agent.api.ts"],"names":[],"mappings":";;;AAAA,sCAAkD;
|
|
1
|
+
{"version":3,"file":"agent.api.js","sourceRoot":"","sources":["../../src/api/agent.api.ts"],"names":[],"mappings":";;;AAAA,sCAAkD;AA6FlD,8EAA8E;AAC9E,cAAc;AACd,8EAA8E;AAEvE,MAAM,mBAAmB,GAAG,KAAK,EACtC,MAAwB,EACW,EAAE;IACrC,MAAM,EAAE,IAAI,EAAE,GAAG,MAAM,MAAM;SAC1B,GAAG,CAAC,oCAAoC,CAAC;SACzC,KAAK,CAAC,CAAC,KAAK,EAAE,EAAE;QACf,MAAM,IAAA,8BAAqB,EAAC,KAAK,CAAC,CAAC;IACrC,CAAC,CAAC,CAAC;IACL,OAAO,IAAI,CAAC;AACd,C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B,CAAC,cAAc,CAAC,WAAW,EAC/F,EAAE,MAAM,EAAE,CACX;SACA,KAAK,CAAC,CAAC,KAAK,EAAE,EAAE;QACf,MAAM,IAAA,8BAAqB,EAAC,KAAK,CAAC,CAAC;IACrC,CAAC,CAAC,CAAC;IACL,OAAO,IAAI,CAAC;AACd,CAAC,CAAC;AAvBW,QAAA,oBAAoB,wBAuB/B;AAEK,MAAM,iBAAiB,GAAG,KAAK,EACpC,MAAwB,EACxB,YAAoB,EACpB,cAAsB,EACW,EAAE;IACnC,MAAM,EAAE,IAAI,EAAE,GAAG,MAAM,MAAM;SAC1B,GAAG,CACF,sBAAsB,YAAY,gBAAgB,kBAAkB,CAAC,cAAc,CAAC,aAAa,CAClG;SACA,KAAK,CAAC,CAAC,KAAK,EAAE,EAAE;QACf,MAAM,IAAA,8BAAqB,EAAC,KAAK,CAAC,CAAC;IACrC,CAAC,CAAC,CAAC;IACL,OAAO,IAAI,CAAC;AACd,CAAC,CAAC;AAbW,QAAA,iBAAiB,qBAa5B;AAEK,MAAM,eAAe,GAAG,KAAK,EAClC,MAAwB,EACxB,YAAoB,EACW,EAAE;IACjC,MAAM,EAAE,IAAI,EAAE,GAAG,MAAM,MAAM;SAC1B,GAAG,CAAC,sBAAsB,YAAY,gBAAgB,CAAC;SACvD,KAAK,CAAC,CAAC,KAAK,EAAE,EAAE;QACf,MAAM,IAAA,8BAAqB,EAAC,KAAK,CAAC,CAAC;IACrC,CAAC,CAAC,CAAC;IACL,OAAO,IAAI,CAAC;AACd,CAAC,CAAC;AAVW,QAAA,eAAe,mBAU1B"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alwaysmeticulous/client",
|
|
3
|
-
"version": "2.264.
|
|
3
|
+
"version": "2.264.4",
|
|
4
4
|
"description": "Helper methods for using the Meticulous backend API",
|
|
5
5
|
"license": "ISC",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -45,5 +45,5 @@
|
|
|
45
45
|
"devDependencies": {
|
|
46
46
|
"@types/node-fetch": "^2.6.13"
|
|
47
47
|
},
|
|
48
|
-
"gitHead": "
|
|
48
|
+
"gitHead": "9c4220d5203ee5900837a4cb0a5bcfbc41c6897d"
|
|
49
49
|
}
|