Add attachment payload handling and tests for self-serve tasks
- Introduced `selfserve_task_attachment_payloads` class for managing task attachments, including formatting and download URL generation. - Added unit and API tests to validate attachment handling in self-serve tasks and customer-scoped workflows. - Enhanced wash start simulation and studio graph projections to integrate task attachment data.
This commit is contained in:
@@ -73,9 +73,11 @@ it('wires the all-in-one self-serve studio replacement endpoints', function ():
|
||||
expect($studioRoute)->toContain('/department/selfserve/studio/layout');
|
||||
expect($studioRoute)->toContain('/department/selfserve/studio/validate');
|
||||
expect($studioRoute)->toContain('/department/selfserve/studio/simulate');
|
||||
expect($studioRoute)->toContain('/department/selfserve/studio/path-outcomes');
|
||||
expect($studioRoute)->toContain('/department/selfserve/studio/publish');
|
||||
expect($studioRoute)->toContain('/department/selfserve/studio/rollback');
|
||||
expect($studioRoute)->toContain('/department/selfserve/studio/gateway-action');
|
||||
expect($studioRoute)->toContain('projectPathOutcomes');
|
||||
expect($studioRoute)->toContain('modules_shelly_config');
|
||||
expect($studioRoute)->toContain('modules_selfserve_sessions_force_stop');
|
||||
|
||||
@@ -198,6 +200,9 @@ it('wires in-progress self-serve wash details endpoint', function (): void {
|
||||
expect($moduleSelfServeRoute)->not->toBeFalse();
|
||||
expect($moduleSelfServeRoute)->toContain('/modules/self-serve/lane/wash/in-progress');
|
||||
expect($moduleSelfServeRoute)->toContain('modules_selfserve_lane_wash_in_progress_view');
|
||||
expect($moduleSelfServeRoute)->toContain('list_own_department_selfserve_vehicle_conditions');
|
||||
expect($moduleSelfServeRoute)->toContain('requireInProgressWashDetailsAccess');
|
||||
expect($moduleSelfServeRoute)->toContain('scopeInProgressWashResponseForCustomer');
|
||||
expect($moduleSelfServeRoute)->toContain("'in_progress' => true");
|
||||
expect($moduleSelfServeRoute)->toContain("'in_progress' => false");
|
||||
expect($moduleSelfServeRoute)->toContain('selfserve_lane_status::OCCUPIED');
|
||||
|
||||
Reference in New Issue
Block a user