Skip to content

044 — should create project and test triangle area measurement

Description

Right triangle with 1 m legs: hypotenuse ≈ 1 414 mm, area 0,50 m², perimeter 3,41 m, volume 500,00.

Preconditions

  • Clean database and S3
  • User logged in with ADMIN and ACCOUNTING roles
  • Test PDF drawing file available

Steps

  1. Calibrate 1000 mm, draw 200×200 px right triangle — Expected: Shape on canvas
  2. Assert sides 1 000, 1 414, 1 000 mm; area 0,50 m² — Expected: Hypotenuse correctly computed
  3. Grid row: perimeter=3,41m, height=1 000,00, volume=500,00 — Expected: Correct
  • Spec: tests/e2e/tests/drawings.spec.ts