feat(portal-frontend): implement record-assessment form and closurePending display
Owned-mode form embedded in case-actions where the redirect link isn't used. verifiedItems is comma-split client-side for convenience only; the server re-validates everything regardless. closurePending renders as a neutral success note (ADR-001), never as an error. 422 InvariantViolationResponse surfaces invariant+message verbatim in a banner, matching the edit-details form's approach.
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
import { ComponentFixture, TestBed } from '@angular/core/testing';
|
||||
|
||||
import { CaseDetailService } from '../case-detail.service';
|
||||
import { CaseDetailActions } from '../case-detail.types';
|
||||
import { CaseActions } from './case-actions';
|
||||
|
||||
@@ -14,7 +15,10 @@ describe('CaseActions', () => {
|
||||
}
|
||||
|
||||
beforeEach(async () => {
|
||||
await TestBed.configureTestingModule({ imports: [CaseActions] }).compileComponents();
|
||||
await TestBed.configureTestingModule({
|
||||
imports: [CaseActions],
|
||||
providers: [{ provide: CaseDetailService, useValue: { recordAssessment: () => { throw new Error('not stubbed'); } } }],
|
||||
}).compileComponents();
|
||||
});
|
||||
|
||||
const legacyActions: CaseDetailActions = {
|
||||
|
||||
Reference in New Issue
Block a user