2.6 KiB
2.6 KiB
QA Test: Applicant Can Open Fresh Registration Forms
Objective
Verify that an applicant user can start a new registration flow and open all required blank forms:
- Initiative report form
- Initiative application form
- Contribution confirmation form
Scope
- Frontend route:
/dashboard - Fresh-mode trigger:
?fresh=1 - Session reset behavior for applicant registration
Preconditions
- App is running locally (
fe0and required backend services). - Test account exists with applicant access.
- Browser session is logged in as applicant.
- At least one old draft may exist (to confirm fresh reset ignores previous session state).
Test Data
- Applicant account credentials
- Optional: existing draft case id from prior session
Test Case 1: Direct Fresh Link Opens Blank Forms
- Navigate to
/dashboard?fresh=1. - Wait for dashboard to load completely.
- Confirm the active tab is report form (first step).
- Confirm report form fields are blank/default (not prefilled from previous draft).
- Switch to application form tab.
- Confirm application form is visible and blank/default.
- Switch to contribution form tab.
- Confirm contribution form is visible and blank/default.
Expected result:
- Dashboard opens in fresh mode.
- Applicant can open all three forms.
- No stale data from a previous draft appears.
Test Case 2: "Create New" / Fresh Navigation from Applicant History
- Open applicant history panel/page.
- Click the action that starts a new application (fresh registration path).
- Confirm browser lands on dashboard fresh flow.
- Confirm report, application, and contribution forms are all accessible.
- Confirm each form starts empty.
Expected result:
- Fresh navigation clears registration session state.
- Applicant can open all required forms for a brand-new submission.
Test Case 3: Fresh Flow Clears Previous Draft Context
- Start from a resumed draft (
/dashboard?caseId=<existing-id>) and verify data is loaded. - Then navigate to
/dashboard?fresh=1. - Confirm previously loaded draft values are no longer shown.
- Confirm a new save operation creates/uses a new case id (not the previous one).
Expected result:
- Fresh mode always resets draft context and starts a new application flow.
Regression Checks
- Applicant remains authenticated after entering fresh flow.
- No console errors while switching among tabs/forms.
- Page remains responsive after opening all forms.
Pass/Fail Criteria
- Pass: Applicant can open all fresh forms and no stale draft data leaks into the new registration flow.
- Fail: Any required form fails to open, opens with stale data, or fresh navigation does not reset prior draft context.