057 — should handle decimal precision — verify rounding behavior¶
Description¶
Irrational calibration scale (1732 mm ≈ √3) on a 200×100 px rectangle ≈ 1,732 × 0,866 m = 1,50 m². Validates rounding/formatting.
Preconditions¶
- Clean database and S3
- User logged in with ADMIN and ACCOUNTING roles
- Test PDF drawing file available
Steps¶
- Calibrate 1732 mm and draw 200×100 px rectangle — Expected: Shape on canvas
- Assert sides 1 732 / 866 mm; area 1,50 m² — Expected: Rounds to 1,50 despite irrational inputs
Related¶
- Spec:
tests/e2e/tests/drawings.spec.ts