@alwaysmeticulous/api 2.40.0 → 2.40.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, ProjectConfigurationData } from "./project.types";
3
3
  export { EndStateScreenshot, ReplayDiff, ReplayDiffData, ScreenshotAfterEvent, ScreenshotAssertionsEnabledOptions, ScreenshotAssertionsOptions, ScreenshotDiffOptions, ScreenshotDiffResult, ScreenshotDiffResultCompared, ScreenshotDiffResultDifferentSize, ScreenshotDiffResultMissingBase, ScreenshotDiffResultMissingBaseAndHead, ScreenshotDiffResultMissingHead, ScreenshotIdentifier, ScreenshottingEnabledOptions, SingleTryScreenshotDiffResult, StoryboardOptions, } from "./replay/replay-diff.types";
4
- export { TestCase, TestCaseReplayOptions, TestRunArguments, TestRunConfigData, TestRunEnvironment, } from "./replay/test-run.types";
4
+ export { TestCase, TestCaseReplayOptions, TestRunArguments, TestRunConfigData, TestRunEnvironment, TestRun, TestRunStatus, TestCaseResult, TestCaseResultStatus, } from "./replay/test-run.types";
5
5
  export { ReplayableEvent } from "./sdk-bundle-api/bidirectional/replayable-event";
6
6
  export { SDKReplayTimelineEntry, SDKReplayTimelineData, } from "./sdk-bundle-api/bundle-to-sdk/timeline.types";
7
7
  export { HarEntry, HarLog, HarRequest, HarResponse, } from "./sdk-bundle-api/sdk-to-bundle/har-log";
@@ -1,3 +1,4 @@
1
+ import { Project } from "../project.types";
1
2
  import { ScreenshotDiffOptions } from "./replay-diff.types";
2
3
  /** Represents the configuration used for a test run */
3
4
  export interface TestRunConfigData {
@@ -72,3 +73,24 @@ export interface TestRunGitHubWorkflowDispatchContext {
72
73
  /** Resolved head commit hash */
73
74
  headSha: string;
74
75
  }
76
+ export type TestRunStatus = "Running" | "Success" | "Failure";
77
+ export interface TestRun {
78
+ id: string;
79
+ status: TestRunStatus;
80
+ project: Project;
81
+ resultData?: {
82
+ results: TestCaseResult[];
83
+ [key: string]: any;
84
+ };
85
+ [key: string]: any;
86
+ }
87
+ export type TestCaseResultStatus = "pass" | "fail" | "flake";
88
+ export interface TestCaseResult extends TestCase {
89
+ headReplayId: string;
90
+ /**
91
+ * A test case is marked as a flake if there were screenshot comparison failures,
92
+ * but for every one of those failures regenerating the screenshot on head sometimes gave
93
+ * a different screenshot to the original screenshot taken on head.
94
+ */
95
+ result: TestCaseResultStatus;
96
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alwaysmeticulous/api",
3
- "version": "2.40.0",
3
+ "version": "2.40.1",
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": "46c8a774b634b1e43ca8e792a6ed573adba296ef"
37
+ "gitHead": "b56c6ec8cf1ac2d0f935e0f2500a3e55463574a8"
38
38
  }