Skip to content

043 — should create project and test rectangle area measurement

Description

Rectangle 1 m × 0,5 m: validates area 0,50 m², perimeter 3,00 m, volume 500,00.

Preconditions

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

Steps

  1. Create project + drawing, calibrate 1000 mm — Expected: Ready
  2. Draw 200×100 px rectangle — Expected: Rectangle on canvas
  3. Assert sides 1 000/500/1 000/500 mm; area 0,50 m² — Expected: Correct
  4. Grid row: perimeter=3,00m, height=1 000,00, volume=500,00, type=plocha — Expected: Correct
  • Spec: tests/e2e/tests/drawings.spec.ts