feat(scanner): validate elevated live automation

This commit is contained in:
AzuTear
2026-07-07 07:49:22 +02:00
parent 7930e369a7
commit ef65c3e6a0
37 changed files with 826 additions and 217 deletions
+3 -2
View File
@@ -19,13 +19,14 @@ function bitmap(goldPixels: number, total: number): Bitmap {
}
describe("lockDetection", () => {
it("places the lock crop in the top-right of the detail card", () => {
it("places the lock crop on the lock button in the substat panel", () => {
const size = { width: 2560, height: 1440 };
const detail = profileDetailRect(size);
const rect = lockIconCropRect(detail, size);
expect(rect.x).toBeGreaterThan(detail.x + detail.width * 0.5);
expect(rect.x + rect.width).toBeLessThanOrEqual(size.width);
expect(rect.y).toBeLessThan(detail.y + detail.height * 0.5);
expect(rect.y).toBeGreaterThan(detail.y + detail.height * 0.3);
expect(rect.y).toBeLessThan(detail.y + detail.height * 0.45);
});
it("measures the gold-pixel ratio", () => {