Telegram (ask questions / claim the issue here first): https://t.me/+DOylgFv1jyJlNzM0
Why this matters
frontend/e2e/criticalFlows.spec.ts Flow 1 (loan wizard) overlaps frontend/e2e/borrower-loan-flow.spec.ts and Flow 3 (repay) overlaps frontend/e2e/borrower-repay-flow.spec.ts, but the two sets mock different route shapes (e.g. criticalFlows mocks **/api/loans/123/repay and a flat loans response while borrower-repay-flow mocks its own shapes). Maintaining two divergent copies of the same flow means a UI/contract change must be fixed twice and the specs can silently disagree about the real API.
Acceptance criteria
Files to touch
frontend/e2e/criticalFlows.spec.ts
frontend/e2e/borrower-loan-flow.spec.ts
frontend/e2e/borrower-repay-flow.spec.ts
Out of scope
- Rewriting the components under test
- Changing CI runner configuration
Why this matters
frontend/e2e/criticalFlows.spec.ts Flow 1 (loan wizard) overlaps frontend/e2e/borrower-loan-flow.spec.ts and Flow 3 (repay) overlaps frontend/e2e/borrower-repay-flow.spec.ts, but the two sets mock different route shapes (e.g. criticalFlows mocks **/api/loans/123/repay and a flat loans response while borrower-repay-flow mocks its own shapes). Maintaining two divergent copies of the same flow means a UI/contract change must be fixed twice and the specs can silently disagree about the real API.
Acceptance criteria
Files to touch
frontend/e2e/criticalFlows.spec.tsfrontend/e2e/borrower-loan-flow.spec.tsfrontend/e2e/borrower-repay-flow.spec.tsOut of scope