Open taozhou-glean opened 8 months ago
here is the proposed interface:
// number for backward compatible
failureThreshold: number | {
pixel: number,
percent: number,
}
// or leave `both` out to infer based on above object type
failureThresholdType: "pixel" | "percent" | "both"
we have some large screenshots, the percentage itself (0.001) there can still be large enough to not capture certain changes we want, so would be nice to have a
0.001
withpercent
and min-pixel like300
at the same time