Problem
The asset management flow has no end-to-end tests. It is not possible to verify the full request-response cycle (auth → create asset → update → transfer → delete) without manual testing.
Proposed Solution
Create backend/test/opsce-assets.e2e-spec.ts using Supertest and an in-memory SQLite test database. The test suite should cover the full asset lifecycle.
Acceptance Criteria
Problem
The asset management flow has no end-to-end tests. It is not possible to verify the full request-response cycle (auth → create asset → update → transfer → delete) without manual testing.
Proposed Solution
Create
backend/test/opsce-assets.e2e-spec.tsusing Supertest and an in-memory SQLite test database. The test suite should cover the full asset lifecycle.Acceptance Criteria
POST /api/auth/login— returns 200 with tokens for valid credentialsPOST /api/assets— returns 201 with created asset, returns 401 without tokenGET /api/assets— returns paginated list with the created assetPATCH /api/assets/:id— updates fields and returns updated assetPOST /api/assets/:id/transfer— changes assignee and verifies audit log entryDELETE /api/assets/:id— soft-deletes asset, asset absent from subsequent list