feat(scanner): validate elevated live automation
This commit is contained in:
@@ -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", () => {
|
||||
|
||||
Reference in New Issue
Block a user