Project

General

Profile

Edit Copy Actions

Feature #4163

closed

Feature #4154: Inventory Actuals Capture

Feature #4160: User Story: Preview Planned vs Actual

Test the User Story: Preview Planned vs Actual

Added by Yalavarthi Thriveni 2 months ago. Updated 7 days ago.

Status:
Closed
Priority:
Normal
Assignee:
Target version:
-
Start date:
10/02/2025
Due date:
10/02/2025
% Done:

0%

Estimated time:
4:00 h

Description

QA Tester Test Cases
Functional

Planned vs Actual Display

Submit a job with planned=10, actual=9 → preview shows 10 vs 9, variance=-1.

Submit a job with planned=5, actual=7 → preview shows 5 vs 7, variance=+2.

Variance Highlighting

Set threshold=10%.

Planned=10, Actual=12 (20% over) → variance cell highlighted.

Planned=10, Actual=10 (0%) → no highlight.

Remarks & Attachments

Add remark “damaged item” → verify it appears in preview row.

Upload panel.jpg → verify attachment visible with preview option.

Read-Only Mode

Attempt to click/edit cell → verify field is not editable.

Status Check

Open preview before submission → expect “No actuals available”.

Submit actuals → preview enabled.

Audit Verification

Admin opens preview → check audit log contains viewPreview with correct userId.

Negative Cases

No Actuals Submitted

Preview API returns 404; UI shows “No actuals available”.

Attachment Errors

Upload unsupported file type .exe → not visible in preview.

Upload >10MB file → not visible in preview.

Concurrency

Field staff editing draft while Admin opens preview → Admin still sees last submitted version (not draft)


Add

Subtasks


Add

Related issues

Edit Copy Actions

Also available in: Atom PDF