-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix ts errors and added api test property avoided
- Loading branch information
1 parent
c6f903a
commit 6912895
Showing
17 changed files
with
730 additions
and
695 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
2 changes: 1 addition & 1 deletion
2
e2e/cypress-13-demo/validation-results/currents-api-validation.json
Large diffs are not rendered by default.
Oops, something went wrong.
2 changes: 1 addition & 1 deletion
2
e2e/cypress-13-demo/validation-results/cypress-cloud-validation.json
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,47 +1,49 @@ | ||
import { TestError } from "../../runner/spec.type"; | ||
|
||
export enum TestState { | ||
Failed = "failed", | ||
Passed = "passed", | ||
Pending = "pending", | ||
Skipped = "skipped", | ||
Failed = "failed", | ||
Passed = "passed", | ||
Pending = "pending", | ||
Skipped = "skipped", | ||
} | ||
|
||
export interface TestAttempt { | ||
state: TestState; | ||
error: CypressCommandLine.TestError | null; | ||
wallClockStartedAt: string | null; | ||
wallClockDuration: number | null; | ||
videoTimestamp: number | null; | ||
state: TestState; | ||
error: TestError | null; | ||
wallClockStartedAt: string | null; | ||
wallClockDuration: number | null; | ||
videoTimestamp: number | null; | ||
} | ||
|
||
interface TestConfig { | ||
retries: | ||
| { | ||
openMode: number; | ||
runMode: number; | ||
} | ||
| number; | ||
retries: | ||
| { | ||
openMode: number; | ||
runMode: number; | ||
} | ||
| number; | ||
} | ||
|
||
export interface TestHook { | ||
clientId: string; | ||
type: "before each"; | ||
title: string[]; | ||
body: string; | ||
clientId: string; | ||
type: "before each"; | ||
title: string[]; | ||
body: string; | ||
} | ||
|
||
export interface Test { | ||
state: TestState; | ||
testId: string; | ||
displayError: string | null; | ||
title: string[]; | ||
config?: null | TestConfig; | ||
hookIds: string[]; | ||
body: string; | ||
attempts: TestAttempt[]; | ||
hooks: TestHook[] | null; | ||
state: TestState; | ||
testId: string; | ||
displayError: string | null; | ||
title: string[]; | ||
config?: null | TestConfig; | ||
hookIds: string[]; | ||
body: string; | ||
attempts: TestAttempt[]; | ||
hooks: TestHook[] | null; | ||
} | ||
|
||
export type SetTestsPayload = Pick< | ||
Test, | ||
"body" | "title" | "config" | "hookIds" | ||
Test, | ||
"body" | "title" | "config" | "hookIds" | ||
> & { clientId: string }; |
Oops, something went wrong.