Initial commit
This commit is contained in:
@@ -0,0 +1,38 @@
|
||||
export type CheckType =
|
||||
| "selector-exists"
|
||||
| "text-contains"
|
||||
| "attribute-equals"
|
||||
| "css-property"
|
||||
| "element-count"
|
||||
| "visual-match";
|
||||
|
||||
export type CheckDefinition = {
|
||||
id?: string;
|
||||
type: CheckType;
|
||||
selector?: string;
|
||||
value?: string;
|
||||
attribute?: string;
|
||||
property?: string;
|
||||
count?: number;
|
||||
threshold?: number;
|
||||
weight?: number;
|
||||
message: string;
|
||||
};
|
||||
|
||||
export type CheckResult = {
|
||||
type: CheckType;
|
||||
message: string;
|
||||
passed: boolean;
|
||||
details?: string;
|
||||
score?: number;
|
||||
weight?: number;
|
||||
};
|
||||
|
||||
export type JudgeResult = {
|
||||
passed: boolean;
|
||||
score: number;
|
||||
passingScore: number;
|
||||
results: CheckResult[];
|
||||
screenshotPath?: string;
|
||||
diffScreenshotPath?: string;
|
||||
};
|
||||
Reference in New Issue
Block a user