Initial commit

This commit is contained in:
2026-07-03 07:55:10 +03:00
commit 66cbd8d88a
25 changed files with 10746 additions and 0 deletions
+38
View File
@@ -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;
};