Skip to content

042 — should create project and test area measurement

Description

Square area 1 m × 1 m: validates four 1 000 mm side labels, on-canvas area 1,00 m², and grid row values (perimeter 4,00 m, height 1 000,00 mm, volume 1 000,00).

Preconditions

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

Steps

  1. Create project, add drawing, calibrate 1000 mm — Expected: Scale set
  2. Draw 200×200 px square — Expected: Square on canvas
  3. Assert all four sides = 1 000 mm; area = 1,00 m² — Expected: Labels correct
  4. Return to measurements grid — Expected: Row: value=1,00, unit=m², perimeter=4,00m, height=1 000,00mm, volume=1 000,00, type=plocha
  • Spec: tests/e2e/tests/drawings.spec.ts