@trevordsouzabrite/test-package 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (69) hide show
  1. package/.claude/agents/playwright-test-generator.md +85 -0
  2. package/.claude/agents/playwright-test-healer.md +45 -0
  3. package/.claude/agents/playwright-test-planner.md +52 -0
  4. package/.claude/prompts/playwright-test-coverage.md +31 -0
  5. package/.claude/prompts/playwright-test-generate.md +12 -0
  6. package/.claude/prompts/playwright-test-heal.md +6 -0
  7. package/.claude/prompts/playwright-test-plan.md +12 -0
  8. package/.claude/settings.local.json +31 -0
  9. package/.github/agents/playwright-test-generator.agent.md +113 -0
  10. package/.github/agents/playwright-test-healer.agent.md +70 -0
  11. package/.github/agents/playwright-test-planner.agent.md +82 -0
  12. package/.github/prompts/playwright-test-coverage.prompt.md +31 -0
  13. package/.github/prompts/playwright-test-generate.prompt.md +12 -0
  14. package/.github/prompts/playwright-test-heal.prompt.md +6 -0
  15. package/.github/prompts/playwright-test-plan.prompt.md +9 -0
  16. package/.github/workflows/copilot-setup-steps.yml +34 -0
  17. package/.github/workflows/playwright-healer-agent.yml +140 -0
  18. package/.github/workflows/playwright.yml +40 -0
  19. package/.mcp.json +13 -0
  20. package/.vscode/extensions.json +6 -0
  21. package/.vscode/mcp.json +13 -0
  22. package/.vscode/settings.example.json +15 -0
  23. package/bitbucket-pipelines.yml +86 -0
  24. package/lib/WebActions.ts +107 -0
  25. package/package.json +33 -0
  26. package/pageRepository/ApplicantPage.ts +1171 -0
  27. package/pageRepository/CreateApplicationPage.ts +1736 -0
  28. package/playwright/.auth/user.json +0 -0
  29. package/specs/Applicant Create Application Page Test Plan.md +440 -0
  30. package/specs/Applicant Dashboard Page Test Plan.md +74 -0
  31. package/specs/Applicant Forgot Password Page Test Plan.md +112 -0
  32. package/specs/Applicant Help Page Test Plan.md +369 -0
  33. package/specs/Applicant Landing Page Test Plan.md +42 -0
  34. package/specs/Applicant Login Page Test Plan.md +116 -0
  35. package/specs/Applicant My Applications Page Test Plan.md +558 -0
  36. package/specs/Applicant My Medical Coverage Page Test Plan.md +689 -0
  37. package/specs/Applicant Privacy Policy Page Test Plan.md +196 -0
  38. package/specs/Applicant Resources Page Test Plan.md +107 -0
  39. package/specs/Applicant Self Register Page Test Plan.md +190 -0
  40. package/specs/README.md +3 -0
  41. package/test-data/Sample.png +0 -0
  42. package/test-data/createApplication/formData.json +42 -0
  43. package/test-data/createApplication/textMessages.json +52 -0
  44. package/test-data/forgotPassword/email.json +5 -0
  45. package/test-data/forgotPassword/textMessages.json +5 -0
  46. package/test-data/help/textContent.json +48 -0
  47. package/test-data/login/invalidUsernamePassword.json +4 -0
  48. package/test-data/login/textMessages.json +5 -0
  49. package/test-data/privacyPolicy/textContent.json +25 -0
  50. package/test-data/selfRegister/mailingAddressStates.json +21 -0
  51. package/test-data/selfRegister/registrationFieldData.json +13 -0
  52. package/test-data/selfRegister/suffix.json +3 -0
  53. package/test-data/selfRegister/textMessages.json +13 -0
  54. package/test-data/test-data.zip +0 -0
  55. package/tests/ApplicantCreateApplicationPageTest.spec.ts +1452 -0
  56. package/tests/ApplicantDashboardPageTest.spec.ts +74 -0
  57. package/tests/ApplicantForgotPasswordPageTest.spec.ts +88 -0
  58. package/tests/ApplicantHelpPageTest.spec.ts +468 -0
  59. package/tests/ApplicantLandingPageTest.spec.ts +33 -0
  60. package/tests/ApplicantLoginPageTest.spec.ts +117 -0
  61. package/tests/ApplicantMyApplicationsPageTest.spec.ts +516 -0
  62. package/tests/ApplicantMyMedicalCoveragePageTest.spec.ts +470 -0
  63. package/tests/ApplicantPrivacyPolicyPageTest.spec.ts +188 -0
  64. package/tests/ApplicantResourcesPageTest.spec.ts +117 -0
  65. package/tests/ApplicantSelfRegisterPageTest.spec.ts +254 -0
  66. package/tests/auth.setup.ts +42 -0
  67. package/tests/authState.ts +15 -0
  68. package/tests/example.spec.ts +18 -0
  69. package/tests/seed.spec.ts +7 -0
File without changes
@@ -0,0 +1,440 @@
1
+ # Polk County Applicant Create Application Page Test Plan
2
+
3
+ ## Application Overview
4
+
5
+ This plan documents the automated coverage in `tests/ApplicantCreateApplicationPageTest.spec.ts` for the applicant **Create Application** wizard. The suite starts from the applicant portal, opens the Create Application flow from the header, and validates the wizard from **Application Details** through final application submission.
6
+
7
+ Tests tagged `@auth` rely on an authenticated applicant session. When `AUTH=true`, the suite saves auth state after each test through `saveAuthState(page.context())`.
8
+
9
+ Test data and expected copy are sourced from:
10
+
11
+ - `test-data/createApplication/formData.json`
12
+ - `test-data/createApplication/textMessages.json`
13
+
14
+ ## Shared Preconditions
15
+
16
+ | Step | Action | Expected Result |
17
+ |------|--------|-----------------|
18
+ | 1 | Navigate to `/polkphpapplicant/s/?language=en_US` | Applicant portal loads |
19
+ | 2 | Wait for **Logout** button | Applicant session is authenticated |
20
+ | 3 | Click **Create Application** link | Create Application flow opens |
21
+ | 4 | Wait for **Application Details** title | Screen 1 is ready |
22
+
23
+ ## Screen 1 - Application Details
24
+
25
+ ### TC-01 - Applicant Details Elements Are Visible
26
+
27
+ **Automated test:** `Verify the all the elements are visible on the Create Application page - Applicant Details @auth`
28
+
29
+ **Objective:** Verify all key Application Details elements are visible.
30
+
31
+ **Coverage:**
32
+
33
+ - Applicant identity fields: first name, middle initial, last name, suffix, DOB, SSN, email, landline, cell phone.
34
+ - Demographic dropdowns: primary phone type, race, ethnicity, gender, marital status, citizenship, veteran, language, insurance coverage.
35
+ - Homeless checkbox.
36
+ - Physical Address card and fields.
37
+ - Mailing Address card, same-as-physical toggle, and fields.
38
+
39
+ **Expected Result:** All listed labels, inputs, dropdowns, checkboxes, and address sections are visible.
40
+
41
+ ### TC-02 - Applicant Details Required Field Errors
42
+
43
+ **Automated test:** `Verify the required elements error messages are visible on the Create Application page - Applicant Details @auth`
44
+
45
+ **Objective:** Verify required validation appears when mandatory applicant details are blank.
46
+
47
+ **Steps:**
48
+
49
+ 1. Clear first name, last name, DOB, SSN, and email.
50
+ 2. Set required demographic dropdowns to `-- No Value --`.
51
+ 3. Click **Next**.
52
+
53
+ **Expected Result:** Required messages from `textMessages.json` are shown for first name, last name, DOB, SSN, email, primary phone type, race, ethnicity, gender, marital status, citizenship, veteran, language, and insurance coverage.
54
+
55
+ ### TC-03 - Application Details Dropdown Values
56
+
57
+ **Automated test:** `Verify the dropdowns are populated with the correct values on the Application Details screen @auth`
58
+
59
+ **Objective:** Verify Application Details dropdown options match configured test data.
60
+
61
+ **Coverage:** Race, ethnicity, gender, marital status, citizenship, veteran, language, insurance coverage, and primary phone type.
62
+
63
+ **Expected Result:** Each dropdown contains all expected options from `createApplicationFormData.dropdowns`.
64
+
65
+ ### TC-04 - Navigate From Application Details To Applicant Income
66
+
67
+ **Automated test:** `Verify the application details are filled correctly in screen - 1 - Application Details and the user moves to the next screen - 2 - Income @auth`
68
+
69
+ **Steps:**
70
+
71
+ 1. Fill Application Details using `fillApplicationDetails()`.
72
+ 2. Click **Next**.
73
+
74
+ **Expected Result:** Applicant Income screen is displayed.
75
+
76
+ ## Screen 2 - Applicant Income
77
+
78
+ ### TC-05 - Applicant Income Elements And Required Messages
79
+
80
+ **Automated test:** `Verify the all the elements & required messages are visible on the Create Application page - Applicant Income @auth`
81
+
82
+ **Objective:** Verify Applicant Income screen behavior for both **Yes** and **No** income paths.
83
+
84
+ **Coverage:**
85
+
86
+ - Required message for unanswered **Have you received income in last 30 days?**
87
+ - **Yes** path income source checkboxes and related amount/employer/self-employment sections.
88
+ - Required messages for missing selected income source fields.
89
+ - **No** path explanation fields, support/financial transaction dropdowns, public assistance checkboxes, and required messages.
90
+ - Third-party support block appears when support is answered **Yes**.
91
+
92
+ **Expected Result:** All expected sections and validation messages appear for both income paths.
93
+
94
+ ### TC-06 - Applicant Monthly Income Total Calculation
95
+
96
+ **Automated test:** `Verify the Monthly Income Sums up to the Total Primary Applicant Income Monthly correctly @auth`
97
+
98
+ **Objective:** Verify the total primary applicant monthly income equals the sum of all entered income source amounts.
99
+
100
+ **Steps:**
101
+
102
+ 1. Complete Application Details and open Applicant Income.
103
+ 2. Select **Yes** for income.
104
+ 3. Select all income source checkboxes.
105
+ 4. Generate and enter random amounts for each amount field.
106
+ 5. Calculate the expected sum in the test.
107
+
108
+ **Expected Result:** `Total Primary Applicant Income Monthly` equals the calculated sum.
109
+
110
+ ### TC-07 - Navigate From Applicant Income To Household Members
111
+
112
+ **Automated test:** `Verify the application details are filled correctly in screen - 1 & 2 - Application Details & Income and the user moves to the next screen - 3 - Household Members @auth`
113
+
114
+ **Steps:**
115
+
116
+ 1. Complete Application Details.
117
+ 2. Complete Applicant Income through `fillApplicantIncomeScreenRandomly()`.
118
+
119
+ **Expected Result:** Household Members screen is displayed.
120
+
121
+ ## Screen 3 - Household Members
122
+
123
+ ### TC-08 - Household Members Elements Are Visible
124
+
125
+ **Automated test:** `Verify all the elements are visible on the Create Application page - Household Members @auth`
126
+
127
+ **Objective:** Verify Household Members screen summary controls and actions.
128
+
129
+ **Expected Result:** Household hint, Edit button, Add Household Member button, total household count, total monthly household income, and FPL percentage elements are visible.
130
+
131
+ ### TC-09 - Edit Primary Applicant Details And Income Parity
132
+
133
+ **Automated test:** `Verify all the elements are visible on the Create Application page - Household Members - Edit Primary Applicant & also verify the income amounts entered in the screen 2 is displayed correctly in the Edit Screen @auth @knownissue`
134
+
135
+ **Objective:** Verify primary applicant details and Applicant Income amounts carry into the Edit Primary Applicant view.
136
+
137
+ **Coverage:**
138
+
139
+ - Primary applicant demographic fields are visible and populated.
140
+ - Relationship is **Self**.
141
+ - Seeking benefits is **Yes**.
142
+ - Income total matches the sum of Applicant Income line items.
143
+ - Each selected Applicant Income source amount matches the corresponding Edit Primary Applicant amount.
144
+
145
+ **Expected Result:** Demographic values are present and parsed income amounts match Screen 2 entries.
146
+
147
+ **Known Issue:** Test is tagged `@knownissue`; comments note missing/incorrect field labeling for First Employer Gross Monthly Income in the edit screen.
148
+
149
+ ### TC-10 - Add Household Member Elements And Income Branches
150
+
151
+ **Automated test:** `Verify all the elements are visible on the Create Application page - Household Members - Add Household Member @auth @knownissue`
152
+
153
+ **Objective:** Verify the Add Household Member form defaults and income/no-income branches.
154
+
155
+ **Coverage:**
156
+
157
+ - New household member fields are visible and initially empty.
158
+ - Gender and marital status default to **Select an Option**.
159
+ - Seeking benefits defaults to **Yes**.
160
+ - **Has income = Yes** displays income source controls and amount fields.
161
+ - **Has income = No** displays no-income explanation/support/public assistance sections.
162
+
163
+ **Expected Result:** Add member form and both income branches render expected controls.
164
+
165
+ **Known Issue:** Test is tagged `@knownissue`; comments note missing/incorrect field labeling for First Employer Gross Monthly Income.
166
+
167
+ ### TC-11 - Household Total Matches Applicant Income
168
+
169
+ **Automated test:** `Verify the total monthly household income is getting displayed correctly in the Household Members screen @auth @knownissue`
170
+
171
+ **Objective:** Verify Household Members total monthly income includes the applicant income total.
172
+
173
+ **Steps:**
174
+
175
+ 1. Complete Applicant Income with **Yes** and `incomeSourceCount: 3`.
176
+ 2. Read Household Members total monthly income.
177
+
178
+ **Expected Result:** Household total contains the Applicant Income total.
179
+
180
+ **Known Issue:** Test is tagged `@knownissue`.
181
+
182
+ ### TC-12 - Household Total After Adding New Member
183
+
184
+ **Automated test:** `Verify the total monthly household income is getting displayed correctly in the Household Members screen after a new household member is added @auth @knownissue`
185
+
186
+ **Objective:** Verify household total updates after adding a new household member with income.
187
+
188
+ **Steps:**
189
+
190
+ 1. Complete Applicant Income with three sources.
191
+ 2. Add a household member using `addHouseholdMember()`.
192
+ 3. Sum applicant income and new member income.
193
+
194
+ **Expected Result:** Displayed household total equals the computed sum.
195
+
196
+ **Known Issue:** Test is tagged `@knownissue`.
197
+
198
+ ### TC-13 - Edit Household Member Income Total
199
+
200
+ **Automated test:** `Verify the user is able to edit the household member details and the total monthly household income is getting displayed correctly in the Household Members screen @auth`
201
+
202
+ **Objective:** Verify editing the primary applicant income from the household edit screen updates total monthly household income.
203
+
204
+ **Steps:**
205
+
206
+ 1. Complete Applicant Income with three sources.
207
+ 2. Open **Edit**.
208
+ 3. Add one additional income source not already selected.
209
+ 4. Compare displayed total against applicant income plus edited income amount.
210
+
211
+ **Expected Result:** Household total equals the expected edited sum.
212
+
213
+ ## Screen 4 - Document Upload
214
+
215
+ ### TC-14 - Navigate To Document Upload
216
+
217
+ **Automated test:** `Verify the application details are filled correctly in screen - 1, 2 & 3 - Application Details & Income and the user moves to the next screen - 4 - Document Upload @auth`
218
+
219
+ **Objective:** Verify the wizard advances from Household Members to Document Upload.
220
+
221
+ **Expected Result:** Document Upload screen title is visible.
222
+
223
+ ### TC-15 - Document Upload Elements Are Visible
224
+
225
+ **Automated test:** `Verify the elements are visible on the Document Upload screen @auth`
226
+
227
+ **Objective:** Verify Document Upload instructions, member document block, and income-source upload controls.
228
+
229
+ **Expected Result:** Notification, instructions, member document block, member name, and each required upload input for selected income sources are visible.
230
+
231
+ ### TC-16 - Upload Required Documents
232
+
233
+ **Automated test:** `Verify the files are getting uploaded or not on the Document Upload screen @auth`
234
+
235
+ **Objective:** Verify files can be uploaded for selected income source documents and optional identification card.
236
+
237
+ **Steps:**
238
+
239
+ 1. Complete prior screens with selected income sources.
240
+ 2. Upload identification card if present.
241
+ 3. Upload `test-data/Sample.png` for each selected income source document.
242
+ 4. Verify uploaded documents table.
243
+
244
+ **Expected Result:** Uploaded Documents section is visible and document names match expected references.
245
+
246
+ ### TC-17 - View Or Delete Uploaded Document
247
+
248
+ **Automated test:** `Verify the user is able to view or delete the uploaded document on the Document Upload screen @auth`
249
+
250
+ **Status:** Skipped with `test.skip`.
251
+
252
+ **Objective:** Intended to verify view/download and delete confirmation behavior for an uploaded document.
253
+
254
+ **Expected Result:** When enabled, View downloads a file containing `Sample` in the suggested filename, Cancel keeps the document, and OK removes it.
255
+
256
+ **Skip Reason:** Comment states the delete pop-up is not getting displayed.
257
+
258
+ ## Screen 5 - Enrollment Acknowledgement
259
+
260
+ ### TC-18 - Navigate To Enrollment Acknowledgement
261
+
262
+ **Automated test:** `Verify the application details are filled correctly in screen - 1, 2, 3 & 4 - the user moves to the next screen - 5 - Enrollment Acknowledgement @auth`
263
+
264
+ **Objective:** Verify the wizard advances from Document Upload to Enrollment Acknowledgement.
265
+
266
+ **Expected Result:** Enrollment Acknowledgement block is visible.
267
+
268
+ ### TC-19 - Enrollment Acknowledgement Elements And Copy
269
+
270
+ **Automated test:** `Verify the elements are visible on the Enrollment Acknowledgement screen @auth`
271
+
272
+ **Objective:** Verify Enrollment Acknowledgement content and handbook link.
273
+
274
+ **Coverage:**
275
+
276
+ - Title and text blocks are visible.
277
+ - Text blocks match configured form data.
278
+ - Member handbook link is visible and points to the expected Polk Healthcare Plan URL.
279
+ - Acknowledgement checkbox/text block is visible.
280
+
281
+ **Expected Result:** All Enrollment Acknowledgement UI and configured copy validations pass.
282
+
283
+ ## Screen 6 - Additional Information & Attestation
284
+
285
+ ### TC-20 - Navigate To Additional Information & Attestation
286
+
287
+ **Automated test:** `Verify the application details are filled correctly in screen - 1, 2, 3, 4 & 5- the user moves to the next screen - 6 - Additional Information & Attestation @auth`
288
+
289
+ **Objective:** Verify the wizard advances from Enrollment Acknowledgement to Additional Information & Attestation.
290
+
291
+ **Expected Result:** Additional Information block is visible.
292
+
293
+ ### TC-21 - Additional Information & Attestation Elements
294
+
295
+ **Automated test:** `Verify the elements are visible on the Additional Information & Attestation screen @auth`
296
+
297
+ **Objective:** Verify provider selection, contact preferences, preview application, attestation, date, and disclaimer.
298
+
299
+ **Coverage:**
300
+
301
+ - Primary care provider dropdown.
302
+ - Application mode of updates checkboxes.
303
+ - Plan mode of updates checkboxes and no-contact option.
304
+ - SMS privacy disclosure.
305
+ - Preview Application link opens a popup with a visible iframe.
306
+ - Certification label, legal name textbox, today's date, and disclaimer.
307
+
308
+ **Expected Result:** All listed controls are visible and today's date matches the expected `DD-MM-YYYY` format.
309
+
310
+ ## Screen 7 - Sign Consent Form
311
+
312
+ ### TC-22 - Navigate To Sign Consent Form
313
+
314
+ **Automated test:** `Verify the application details are filled correctly in screen - 1, 2, 3, 4, 5 & 6- the user moves to the next screen - 7 - Sign Consent Form @auth`
315
+
316
+ **Objective:** Verify the wizard advances from Additional Information & Attestation to Sign Consent Form.
317
+
318
+ **Expected Result:** Sign Consent Form title is visible.
319
+
320
+ ### TC-23 - Sign Consent Form Elements
321
+
322
+ **Automated test:** `Verify the elements are visible on the Sign Consent Form screen @auth`
323
+
324
+ **Objective:** Verify consent form UI for both available states.
325
+
326
+ **Coverage:**
327
+
328
+ - If the consent form is visible: header, name/information block, use/disclosure block, consent checkbox, signature canvas, hint, Accept Signature, Clear, and Agree and Consent buttons.
329
+ - If consent was already submitted: already-submitted block and Submit Application button.
330
+
331
+ **Expected Result:** Correct consent form state is visible.
332
+
333
+ ### TC-24 - Clear And Sign Consent Form
334
+
335
+ **Automated test:** `Verify the user clears and signs the consent form @auth`
336
+
337
+ **Objective:** Verify signature drawing, clearing, re-signing, accepting, consenting, and submitting.
338
+
339
+ **Steps:**
340
+
341
+ 1. Select consent information checkbox.
342
+ 2. Draw signature.
343
+ 3. Click **Clear** and verify canvas is empty.
344
+ 4. Draw signature again and verify canvas is not empty.
345
+ 5. Accept signature and agree/consent.
346
+ 6. Submit application.
347
+
348
+ **Expected Result:** Signature canvas state changes correctly, thank-you block appears, and Submit Application button is available.
349
+
350
+ **Conditional Behavior:** Test skips itself if the consent form was already submitted.
351
+
352
+ ## Screen 8 - Social Services Assessment
353
+
354
+ ### TC-25 - Navigate To Social Services Assessment
355
+
356
+ **Automated test:** `Verify the application details are filled correctly in screen - 1, 2, 3, 4, 5, 6 & 7 - the user moves to the next screen - 8 - Social Services Assessment @auth`
357
+
358
+ **Objective:** Verify the wizard advances from Sign Consent Form to Social Services Assessment.
359
+
360
+ **Expected Result:** Client Needs Assessment block is visible.
361
+
362
+ ### TC-26 - Social Services Assessment Elements
363
+
364
+ **Automated test:** `Verify the elements are visible on the Social Services Assessment screen @auth`
365
+
366
+ **Objective:** Verify assessment choice behavior.
367
+
368
+ **Steps:**
369
+
370
+ 1. Verify **I choose** and **I decline** radio buttons.
371
+ 2. Select **I choose to complete the assessment**.
372
+ 3. Verify Housing, Environment, Substance Abuse, Mental Health, and Disability sections/dropdowns.
373
+ 4. Select **I decline to complete the assessment**.
374
+
375
+ **Expected Result:** Assessment sections appear when choosing to complete and are hidden after declining.
376
+
377
+ ### TC-27 - Social Services Assessment Dropdown Values
378
+
379
+ **Automated test:** `Verify the dropdown values are populated with the correct values on the Social Services Assessment screen @auth`
380
+
381
+ **Objective:** Verify Social Services Assessment dropdown options match configured test data.
382
+
383
+ **Coverage:** Housing, Environment, Substance Abuse, Mental Health, Disability Question 1, and Disability Question 2 dropdowns.
384
+
385
+ **Expected Result:** Each dropdown contains all expected values from `createApplicationFormData.dropdowns`.
386
+
387
+ ### TC-28 - Submit Application And Validate Success
388
+
389
+ **Automated test:** `Verify the user is able to submit the application and get a success message @auth`
390
+
391
+ **Objective:** Verify final application submission path.
392
+
393
+ **Steps:**
394
+
395
+ 1. Complete screens 1 through 7.
396
+ 2. Open Social Services Assessment.
397
+ 3. Select **I decline to complete the assessment**.
398
+ 4. Click **Submit Assesment**.
399
+
400
+ **Expected Result:** Thank-you message is visible after submission.
401
+
402
+ ## Traceability
403
+
404
+ | TC | Automated Test Summary | Tags / Status |
405
+ |----|------------------------|---------------|
406
+ | TC-01 | Applicant Details elements visible | `@auth` |
407
+ | TC-02 | Applicant Details required errors | `@auth` |
408
+ | TC-03 | Application Details dropdown values | `@auth` |
409
+ | TC-04 | Navigate Screen 1 to Screen 2 | `@auth` |
410
+ | TC-05 | Applicant Income elements and validation | `@auth` |
411
+ | TC-06 | Applicant monthly income sum | `@auth` |
412
+ | TC-07 | Navigate Screen 2 to Screen 3 | `@auth` |
413
+ | TC-08 | Household Members elements visible | `@auth` |
414
+ | TC-09 | Edit Primary Applicant income parity | `@auth @knownissue` |
415
+ | TC-10 | Add Household Member branches | `@auth @knownissue` |
416
+ | TC-11 | Household total matches applicant income | `@auth @knownissue` |
417
+ | TC-12 | Household total after adding member | `@auth @knownissue` |
418
+ | TC-13 | Edit household member income total | `@auth` |
419
+ | TC-14 | Navigate to Document Upload | `@auth` |
420
+ | TC-15 | Document Upload elements visible | `@auth` |
421
+ | TC-16 | Upload required documents | `@auth` |
422
+ | TC-17 | View or delete uploaded document | `@auth`, skipped |
423
+ | TC-18 | Navigate to Enrollment Acknowledgement | `@auth` |
424
+ | TC-19 | Enrollment Acknowledgement elements/copy | `@auth` |
425
+ | TC-20 | Navigate to Additional Information | `@auth` |
426
+ | TC-21 | Additional Information elements | `@auth` |
427
+ | TC-22 | Navigate to Sign Consent Form | `@auth` |
428
+ | TC-23 | Sign Consent Form elements | `@auth` |
429
+ | TC-24 | Clear and sign consent form | `@auth`, conditional skip |
430
+ | TC-25 | Navigate to Social Services Assessment | `@auth` |
431
+ | TC-26 | Social Services Assessment elements | `@auth` |
432
+ | TC-27 | Social Services dropdown values | `@auth` |
433
+ | TC-28 | Submit application success | `@auth` |
434
+
435
+ ## Notes
436
+
437
+ - Several tests use `test.setTimeout(0)` because they cover long end-to-end wizard flows.
438
+ - Document upload tests use `test-data/Sample.png`.
439
+ - Some tests intentionally use random income source selection and random generated amounts, then assert against values returned by page object helper methods.
440
+ - The skipped document view/delete test should be re-enabled once the delete confirmation modal is available.
@@ -0,0 +1,74 @@
1
+ # Polk County Applicant Dashboard Page Test Plan
2
+
3
+ ## Application Overview
4
+
5
+ Validate Polk County Healthcare Plan Applicant portal Dashboard Page after the user has successfully logged in at https://polkcounty--polkdevnew.sandbox.my.site.com/polkphpapplicant/s/?language=en_US. Focus on page load, navigation elements, content accuracy, functional links, and accessibility flow.
6
+
7
+ ## Test Scenarios
8
+
9
+ #### 1. Verify different sections of the applicant landing page
10
+
11
+ **File:** `ApplicantDashboardPageTest.spec.ts`
12
+
13
+ **Steps:**
14
+ 1. Navigate to landing page URL
15
+ 2. Check the Header section of the page
16
+ - expect: Logo Image to be visible
17
+ - expect: Home Link, Create Application Link, My Application Link, My Medical Coverage Link, Resources Link
18
+ - expect: Logout Button to be visible
19
+ 3. Check the Heading & Content section of the page
20
+ - expect: The Welcome Heading Text 'Welcome to the Polk HealthCare Plan Applicant Portal' should be displayed
21
+ - Display the Instructions text
22
+ - expect: The Banner should be displayed
23
+ 4. Check the Footer section of the page
24
+ - expect: Footer Image to be displayed
25
+ - expect: Address, Number & Timing to be displayed
26
+ - expect: The CONTACT US, POLK HEALTHCARE PLAN FAQS , FIND YOUR PROVIDER, NOTIFY CUSTOMER SERVICE, ACCESSIBILITY, TERMS & CONDITIONS & PRIVACY POLICY to be displayed
27
+ - expect: The copyright text to be displayed
28
+
29
+ **Expected Results:**
30
+ - All the mentioned identifiers are displayed or not
31
+
32
+ ---
33
+
34
+ #### 2. Verify Navigation of Create Application Page
35
+ **Steps:**
36
+ 1. From the Dashboard page, click **Create Application link**.
37
+ **Expected results:**
38
+ - User reaches the create application or URL defined by the product; page loads without error.
39
+
40
+ ---
41
+
42
+
43
+ #### 3. Verify Navigation of My Application Page
44
+ **Steps:**
45
+ 1. From the Dashboard page, click **Create Application link**.
46
+ **Expected results:**
47
+ - User reaches the create application or URL defined by the product; page loads without error.
48
+
49
+ ---
50
+
51
+ #### 4. Verify Navigation of My Medical Coverage Page
52
+ **Steps:**
53
+ 1. From the Dashboard page, click **Create Application link**.
54
+ **Expected results:**
55
+ - User reaches the create application or URL defined by the product; page loads without error.
56
+
57
+ ---
58
+
59
+ #### 5. Verify Navigation of Resources Page
60
+ **Steps:**
61
+ 1. From the Dashboard page, click **Create Application link**.
62
+ **Expected results:**
63
+ - User reaches the create application or URL defined by the product; page loads without error.
64
+
65
+ ---
66
+
67
+
68
+ #### 1.5. Verify accessibility attributes and WCAG baseline
69
+
70
+
71
+ **Steps:**
72
+ 1. Run Axe accessibility scan on landing page
73
+ - expect: No critical WCAG 2.1 AA violations for major functionality
74
+ - expect: Interactive elements have accessible names and focusable states
@@ -0,0 +1,112 @@
1
+ # Polk County Applicant Forgot Password Page Test Plan
2
+
3
+ ## Application Overview
4
+
5
+ Validate Polk County Healthcare Plan Applicant Forgot Password page
6
+
7
+ ---
8
+
9
+ ## Test Scenarios
10
+ **File:** `ApplicantForgotPasswordPageTest.spec.ts`
11
+
12
+ Pre-Condition.
13
+ 1. User will be redirected to the URL /polkphpapplicant/s/?language=en_US
14
+ 2. User will click on Login Button on the header
15
+ 3. User will click on Forgot Password Link in Login Page
16
+ 4. User will be on the Forgot Password Page.
17
+
18
+
19
+ #### 1. Verify the applicant is redirected to the forgot password page
20
+ **Steps:**
21
+ 1. Validate the URL is correct with 'polkphpapplicant/s/forgetpassword'
22
+ 2. Validate visibility of:
23
+ - Forgot Password Title
24
+ - Forgot Password Message
25
+ - Forgot Password Field Name & Input Field
26
+ - Send Reset Link Button
27
+
28
+ **Expected Results:**
29
+ - URL contains "forgetpassword"
30
+ - All UI components are displayed
31
+
32
+ ---
33
+ #### 2. Verify when the forgot password input field is left blank the submit button is disabled
34
+ **Steps:**
35
+ 1. The Forgot Password Input Field should be left blank
36
+ 2. Check the Button is disabled
37
+
38
+ **Expected Results:**
39
+ - Send Reset Link Button should be disabled
40
+
41
+ ---
42
+ #### 3. Verify when the forgot password input field is not empty with valid input the submit button is enabled & success message should be displayed on submission
43
+ **Steps:**
44
+ 1. Enter the Forgot Password Field with testuser@gmail.com
45
+ 2. Validate Field Not Empty
46
+ 3. Validate Send Reset Link Button is enabled
47
+ 4. Click Send Reset Link Button.
48
+ 5. Validate the success to be displayed and success message text
49
+
50
+ **Expected Results:**
51
+ - Returns field is not empty, Send Reset Link Button is enabled
52
+ - Success Message "If an account exists for this email/username, a reset link has been sent." is displayed
53
+
54
+ ---
55
+ #### 4. Verify when invalid email format is entered, error message should be displayed
56
+ **Steps:**
57
+ 1. Enter email as testuser
58
+ 2. Click Send Reset Link Button
59
+
60
+ **Expected Results:**
61
+ - The error message "Enter a valid email address, such as name@email.com." should be displayed
62
+
63
+ ---
64
+ #### 5. Verify the success message is not shown before submit
65
+ **Steps:**
66
+ 1. Enter a valid email in the field but do **not** click **Send reset link**
67
+ 2. Observe the area where success feedback appears (e.g. success banner / message region)
68
+
69
+ **Expected Results:**
70
+ - No success message is displayed prior to submission
71
+
72
+ ---
73
+ #### 6. Verify clearing the field after valid input disables the submit button again
74
+ **Steps:**
75
+ 1. Reach the Forgot Password page
76
+ 2. Enter a valid email (e.g. `testuser@gmail.com`)
77
+ 3. Confirm **Send reset link** is enabled
78
+ 4. Clear the Email / Username field completely
79
+ 5. Check the button state
80
+
81
+ **Expected Results:**
82
+ - After the field is empty again, **Send reset link** is disabled (consistent with scenario 2 in the main plan)
83
+
84
+ ---
85
+ #### 7. Verify invalid email error clears after correcting input and submitting successfully
86
+ **Steps:**
87
+ 1. Enter an invalid value (e.g. `testuser`) and click **Send reset link**
88
+ 2. Confirm the validation error is shown
89
+ 3. Replace the value with a valid email (e.g. `testuser@gmail.com`)
90
+ 4. Click **Send reset link**
91
+
92
+ **Expected Results:**
93
+ - Validation error is no longer shown (or field is no longer in error state) after correction
94
+ - Success message matches main plan scenario 3: "If an account exists for this email/username, a reset link has been sent."
95
+
96
+ ---
97
+ #### 8. Verify whitespace-only input does not submit a reset as valid email
98
+ **Steps:**
99
+ 1. Leave the field empty or enter only spaces (e.g. ` `)
100
+ 2. If the button is enabled, click **Send reset link**; if disabled, note behavior
101
+
102
+ **Expected Results:**
103
+ - Either **Send reset link** remains disabled until non-whitespace input is entered, **or** validation prevents submission and an appropriate message is shown (align with product rules)
104
+
105
+ #### 9. Verify global chrome (header and footer) on the forgot password page
106
+ **Steps:**
107
+ 1. Reach the Forgot Password page (Pre-Condition A or B)
108
+ 2. Confirm presence of key portal chrome (e.g. logo/header area, primary navigation or login entry point as designed)
109
+ 3. Scroll to the footer and confirm expected footer links or copyright text (per design system)
110
+
111
+ **Expected Results:**
112
+ - Page layout is consistent with other public applicant pages; no broken layout or missing critical navigation/footer elements