@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
@@ -0,0 +1,369 @@
1
+ # Polk County Applicant Help Page Test Plan
2
+
3
+ ## Application Overview
4
+
5
+ This plan documents automated coverage in `tests/ApplicantHelpPageTest.spec.ts` for the authenticated applicant **Help / Knowledge Base** page.
6
+
7
+ The Help page is only reachable after the applicant has logged in. It is reached from the authenticated portal by clicking the **Help** link in the header navigation (which resolves to `/polkphpapplicant/s/knowledge-base`). No footer link to the Help page exists; the **Help** header link is the sole in-portal entry point.
8
+
9
+ The page is a Salesforce Experience Cloud Knowledge Base component. It renders a search bar (placeholder `Search articles...`), a **Categories** sidebar filter (All, Support, Account, General), an **Article Type** sidebar filter (All, FAQ, Procedure), and a grid of article cards. Each card displays the article type badge, title, summary, publish date, and a `Read more →` action. Clicking a card navigates to the article detail page at `/polkphpapplicant/s/article?urlName=<slug>`. The detail page contains sections: Summary, Audience, Purpose, a warning block, Steps, and a **Was this article helpful?** widget with 👍 Yes / 👎 No buttons. A **← Back to Knowledge Base** button on the detail page returns the user to the list.
10
+
11
+ Searching with a term that matches articles filters the card grid in place (the URL does not change — search is client-side). Searching a term with no matches shows the empty-state message `No articles found. Try a different search or category.` Clicking the category or article-type filters also updates the card list without a URL change.
12
+
13
+ The expected text data for this suite is stored in `test-data/help/textContent.json`.
14
+
15
+ The suite starts from the applicant dashboard, confirms the user is logged in, clicks **Help** in the header navigation, and validates the page layout, content, search, filtering, article navigation, and accessibility.
16
+
17
+ ## Test Scenarios
18
+
19
+ ### 1. Applicant Help Page Tests
20
+
21
+ **Seed:** `tests/seed.spec.ts`
22
+
23
+ #### 1.1. TC-01 - Authenticated Header, Footer, And Help Page H1 Are Visible
24
+
25
+ **File:** `tests/ApplicantHelpPageTest.spec.ts`
26
+
27
+ **Steps:**
28
+ 1. Navigate to `/polkphpapplicant/s/?language=en_US` and wait for the **Logout** button to confirm the applicant session is authenticated.
29
+ - expect: The applicant portal dashboard loads and the Logout button is visible.
30
+ 2. Click the **Help** link in the header navigation and wait for the **Knowledge Base** H1 to appear.
31
+ - expect: The browser navigates to the Help / Knowledge Base page.
32
+ - expect: The URL contains `knowledge-base`.
33
+ - expect: The H1 heading **Knowledge Base** is visible.
34
+ 3. Verify all authenticated header elements.
35
+ - expect: The Logo image is visible.
36
+ - expect: The **Home** link is visible.
37
+ - expect: The **Create Application** link is visible.
38
+ - expect: The **My Applications** link is visible.
39
+ - expect: The **My Medical Coverage** link is visible.
40
+ - expect: The **Resources** link is visible.
41
+ - expect: The **Help** link is visible.
42
+ - expect: The **Privacy Policy** link is visible.
43
+ - expect: The **Logout** button is visible.
44
+ 4. Scroll to the footer and verify footer elements.
45
+ - expect: The **Polk HealthCare Plan** footer image is visible.
46
+ - expect: The **CONTACT US** link is visible.
47
+ - expect: The **POLK HEALTHCARE PLAN FAQS** link is visible.
48
+ - expect: The **FIND YOUR PROVIDER** link is visible.
49
+ - expect: The **NOTIFY CUSTOMER SERVICE** link is visible.
50
+ - expect: The **ACCESSIBILITY** link is visible.
51
+ - expect: The **TERMS & CONDITIONS** link is visible.
52
+ - expect: The **PRIVACY POLICY** link is visible.
53
+ - expect: The copyright text **Copyright © 2026 Polk County. All Rights Reserved.** is visible.
54
+
55
+ #### 1.2. TC-02 - Knowledge Base Page Title Section Content Is Correct
56
+
57
+ **File:** `tests/ApplicantHelpPageTest.spec.ts`
58
+
59
+ **Steps:**
60
+ 1. Open the Help / Knowledge Base page and wait for the H1 heading to appear.
61
+ - expect: The page content area has loaded.
62
+ 2. Locate the H1 heading and the subtitle paragraph directly beneath it.
63
+ - expect: The H1 heading **Knowledge Base** is visible.
64
+ - expect: The subtitle paragraph **Find answers to your questions** is visible directly beneath the H1.
65
+ 3. Verify the search bar is present and has the correct placeholder text.
66
+ - expect: A search input with placeholder text **Search articles...** is visible.
67
+
68
+ #### 1.3. TC-03 - Article List Displays The Correct Article Card Content
69
+
70
+ **File:** `tests/ApplicantHelpPageTest.spec.ts`
71
+
72
+ **Steps:**
73
+ 1. Open the Help / Knowledge Base page and wait for the article card list to load.
74
+ - expect: At least one article card is visible in the article grid.
75
+ 2. Inspect the first article card in the list.
76
+ - expect: The article type badge **Procedure** is visible on the card.
77
+ - expect: The article title **How to Reset Your Password** is visible.
78
+ - expect: The summary text **Step-by-step guide to reset your account password quickly and securely** is visible.
79
+ - expect: A publish date is visible on the card (format: `4/16/2026, 5:03 AM`).
80
+ - expect: The **Read more →** action link text is visible on the card.
81
+
82
+ #### 1.4. TC-04 - Category Filter Narrows Article List
83
+
84
+ **File:** `tests/ApplicantHelpPageTest.spec.ts`
85
+
86
+ **Steps:**
87
+ 1. Open the Help / Knowledge Base page and wait for the article list to load.
88
+ - expect: The Categories sidebar is visible with labels: **All**, **Support**, **Account**, **General**.
89
+ 2. Click the **Account** category filter.
90
+ - expect: The article list updates to show only articles in the Account category.
91
+ - expect: The **How to Reset Your Password** article card remains visible.
92
+ - expect: The URL does not change — filtering is client-side.
93
+ 3. Click the **Support** category filter (which shows 0 articles).
94
+ - expect: The article list is empty.
95
+ - expect: The empty-state message **No articles found. Try a different search or category.** is visible.
96
+ 4. Click the **General** category filter (which shows 0 articles).
97
+ - expect: The article list is empty.
98
+ - expect: The empty-state message **No articles found. Try a different search or category.** is visible.
99
+ 5. Click the **All** category filter.
100
+ - expect: All articles are restored to the list.
101
+ - expect: The **How to Reset Your Password** article card is visible again.
102
+
103
+ #### 1.5. TC-05 - Article Type Filter Narrows Article List
104
+
105
+ **File:** `tests/ApplicantHelpPageTest.spec.ts`
106
+
107
+ **Steps:**
108
+ 1. Open the Help / Knowledge Base page and wait for the article list to load.
109
+ - expect: The Article Type sidebar is visible with labels: **All**, **FAQ**, **Procedure**.
110
+ 2. Click the **Procedure** article type filter.
111
+ - expect: The article list shows only Procedure-type articles.
112
+ - expect: The **How to Reset Your Password** article card (tagged **Procedure**) is visible.
113
+ - expect: The URL does not change — filtering is client-side.
114
+ 3. Click the **FAQ** article type filter.
115
+ - expect: The article list is empty because there are currently no FAQ articles.
116
+ - expect: The empty-state message **No articles found. Try a different search or category.** is visible.
117
+ 4. Click the **All** article type filter.
118
+ - expect: All articles are restored to the list.
119
+ - expect: The **How to Reset Your Password** article card is visible again.
120
+
121
+ #### 1.6. TC-06 - Search Box Filters Articles And Shows Empty State For No Matches
122
+
123
+ **File:** `tests/ApplicantHelpPageTest.spec.ts`
124
+
125
+ **Steps:**
126
+ 1. Open the Help / Knowledge Base page and wait for the article list to load.
127
+ - expect: The search box with placeholder **Search articles...** is visible and empty.
128
+ 2. Type `password` in the search box.
129
+ - expect: The article list is filtered to show articles matching the term `password`.
130
+ - expect: The **How to Reset Your Password** article card is visible.
131
+ - expect: A **Clear** button appears in the search bar.
132
+ - expect: The URL does not change — search is client-side.
133
+ 3. Click the **Clear** button in the search bar.
134
+ - expect: The search box is cleared and returns to empty.
135
+ - expect: The Clear button disappears.
136
+ - expect: The full article list is restored and the **How to Reset Your Password** card is visible.
137
+ 4. Type `xyznotfound` in the search box (a term that matches no articles).
138
+ - expect: The article list is empty.
139
+ - expect: The empty-state message **No articles found. Try a different search or category.** is visible.
140
+ - expect: All category counts update to **0**.
141
+ 5. Click the **Clear** button to reset the search.
142
+ - expect: The search box is cleared.
143
+ - expect: The full article list is restored.
144
+
145
+ #### 1.7. TC-07 - Article Card Click Navigates To The Article Detail Page
146
+
147
+ **File:** `tests/ApplicantHelpPageTest.spec.ts`
148
+
149
+ **Steps:**
150
+ 1. Open the Help / Knowledge Base page and wait for the article list to load.
151
+ - expect: The **How to Reset Your Password** article card is visible.
152
+ 2. Click the **How to Reset Your Password** article card.
153
+ - expect: The browser navigates to the article detail page.
154
+ - expect: The URL contains `article?urlName=how-to-reset-password`.
155
+ - expect: The H1 heading **How to Reset Your Password** is visible.
156
+ - expect: The article type badge **Procedure** is visible.
157
+ - expect: The metadata line shows **Published: 4/16/2026, 5:03 AM**, **Category: Account**, and **Article #: 000001013**.
158
+ - expect: The user remains authenticated — the Logout button is visible.
159
+
160
+ #### 1.8. TC-08 - Article Detail Page Sections And Content Are Correct
161
+
162
+ **File:** `tests/ApplicantHelpPageTest.spec.ts`
163
+
164
+ **Steps:**
165
+ 1. Navigate to the article detail page at `/polkphpapplicant/s/article?urlName=how-to-reset-password` and wait for the H1 to appear.
166
+ - expect: The article detail page loads successfully.
167
+ 2. Verify the **Summary** section.
168
+ - expect: The section label **Summary** is visible.
169
+ - expect: The summary text **Step-by-step guide to reset your account password quickly and securely** is visible.
170
+ 3. Verify the **Audience** section.
171
+ - expect: The section label **Audience** is visible.
172
+ - expect: The audience text contains **This article is intended for all registered customers and end users who have forgotten their password or need to reset their login credentials for security purposes.**
173
+ 4. Verify the **Purpose** section.
174
+ - expect: The section label **Purpose** is visible.
175
+ - expect: The purpose text contains **The purpose of this procedure is to guide users through the password reset process to regain access to their account safely without contacting support.**
176
+ 5. Verify the warning block.
177
+ - expect: The warning block contains **⚠️ Warning: Do not share your password reset link with anyone.**
178
+ - expect: The warning block contains **⚠️ The reset link expires within 24 hours of being sent.**
179
+ - expect: The warning block contains **⚠️ After 5 failed attempts your account will be locked.**
180
+ 6. Verify the **Steps** section.
181
+ - expect: The section label **Steps** is visible.
182
+ - expect: **Step 1: Go to the login page and click "Forgot Password"** is visible.
183
+ - expect: **Step 2: Enter your registered email address and click Submit** is visible.
184
+ - expect: **Step 3: Check your email inbox for the password reset link** is visible.
185
+ - expect: **Step 4: Click the reset link within 24 hours** is visible.
186
+ - expect: **Step 5: Enter your new password (minimum 8 characters, must include 1 uppercase, 1 number, 1 special character)** is visible.
187
+ - expect: **Step 6: Confirm your new password and click Save** is visible.
188
+ - expect: **Step 7: Login with your new password successfully** is visible.
189
+
190
+ #### 1.9. TC-09 - Was This Article Helpful Widget Is Functional
191
+
192
+ **File:** `tests/ApplicantHelpPageTest.spec.ts`
193
+
194
+ **Steps:**
195
+ 1. Navigate to the article detail page at `/polkphpapplicant/s/article?urlName=how-to-reset-password` and wait for the H1 to appear.
196
+ - expect: The article detail page loads successfully.
197
+ 2. Locate the **Was this article helpful?** widget at the bottom of the article.
198
+ - expect: The label **Was this article helpful?** is visible.
199
+ - expect: The **👍 Yes** button is visible.
200
+ - expect: The **👎 No** button is visible.
201
+ 3. Click the **👍 Yes** button.
202
+ - expect: The Yes vote count increments by 1 (button label updates to **👍 Yes (1)** or higher).
203
+ - expect: The page does not navigate away — the user remains on the article detail page.
204
+ - expect: The user remains authenticated — the Logout button is visible.
205
+ 4. Click the **👎 No** button.
206
+ - expect: The Yes vote count increments by 1 (button label updates to **👎 No (1)** or higher).
207
+ - expect: The page does not navigate away — the user remains on the article detail page.
208
+ - expect: The user remains authenticated — the Logout button is visible.
209
+ 5. Click the browser refresh button.
210
+ - expect: The count should not be reverted back to 0.
211
+
212
+ #### 1.10. TC-10 - Back To Knowledge Base Button Returns To The Knowledge Base List
213
+
214
+ **File:** `tests/ApplicantHelpPageTest.spec.ts`
215
+
216
+ **Steps:**
217
+ 1. Navigate to the article detail page at `/polkphpapplicant/s/article?urlName=how-to-reset-password` and wait for the H1 to appear.
218
+ - expect: The article detail page loads successfully.
219
+ 2. Click the **← Back to Knowledge Base** button.
220
+ - expect: The browser navigates back to the Knowledge Base list page.
221
+ - expect: The URL contains `knowledge-base`.
222
+ - expect: The H1 heading **Knowledge Base** is visible.
223
+ - expect: The article card list is visible.
224
+ - expect: The user remains authenticated — the Logout button is visible.
225
+
226
+ #### 1.11. TC-11 - Browser Tab Title Is Knowledge Base
227
+
228
+ **File:** `tests/ApplicantHelpPageTest.spec.ts`
229
+
230
+ **Steps:**
231
+ 1. Open the Help / Knowledge Base page and wait for the H1 heading to appear.
232
+ - expect: The page has loaded.
233
+ 2. Read `document.title` from the browser.
234
+ - expect: The browser tab title (`document.title`) is **Knowledge Base**.
235
+
236
+ #### 1.12. TC-12 - Heading Hierarchy And Accessibility Attributes Are Correct
237
+
238
+ **File:** `tests/ApplicantHelpPageTest.spec.ts`
239
+
240
+ **Steps:**
241
+ 1. Open the Help / Knowledge Base page and wait for the H1 heading to appear.
242
+ - expect: The page has loaded.
243
+ 2. Inspect the heading hierarchy on the page (traversing shadow DOM).
244
+ - expect: There is exactly one H1 element with the text **Knowledge Base**.
245
+ - expect: There are zero H2 elements on the page.
246
+ - expect: There are zero H3 elements on the page.
247
+ - expect: The H1 is the highest-level heading in the document.
248
+ 3. Verify the HTML `lang` attribute on the root `<html>` element.
249
+ - expect: The document `lang` attribute is **en-US**.
250
+ 4. Verify the Logo image in the header has a meaningful `alt` attribute.
251
+ - expect: The header Logo image has `alt` text **Logo**.
252
+
253
+ #### 1.13. TC-13 - Help Page Is Reachable Via The Help Header Link From The Dashboard
254
+
255
+ **File:** `tests/ApplicantHelpPageTest.spec.ts`
256
+
257
+ **Steps:**
258
+ 1. Navigate to `/polkphpapplicant/s/?language=en_US` and confirm the Logout button is visible.
259
+ - expect: The authenticated applicant dashboard loads and the Logout button is visible.
260
+ 2. Locate the **Help** link in the header navigation bar.
261
+ - expect: The **Help** link is visible in the header navigation.
262
+ - expect: The **Help** link `href` resolves to `/polkphpapplicant/s/knowledge-base`.
263
+ 3. Click the **Help** link.
264
+ - expect: The browser navigates to the Knowledge Base page.
265
+ - expect: The URL contains `knowledge-base`.
266
+ - expect: The H1 heading **Knowledge Base** is visible.
267
+ - expect: The Logout button is still visible, confirming the user remains authenticated.
268
+
269
+ #### 1.14. TC-14 - Help Page Is Reachable Via The Help Header Link From The Resources Page
270
+
271
+ **File:** `tests/ApplicantHelpPageTest.spec.ts`
272
+
273
+ **Steps:**
274
+ 1. Navigate to the authenticated Resources page at `/polkphpapplicant/s/resourcespage` and wait for the **Resources** heading to appear.
275
+ - expect: The Resources page loads successfully while the user remains authenticated (Logout button visible).
276
+ 2. Click the **Help** link in the header navigation.
277
+ - expect: The browser navigates to the Knowledge Base page.
278
+ - expect: The URL contains `knowledge-base`.
279
+ - expect: The H1 heading **Knowledge Base** is visible.
280
+ - expect: The Logout button is still visible, confirming the user remains authenticated.
281
+
282
+ #### 1.15. TC-15 - Header Nav Links From Help Page Return To Dashboard While Authenticated
283
+
284
+ **File:** `tests/ApplicantHelpPageTest.spec.ts`
285
+
286
+ **Steps:**
287
+ 1. Open the Help / Knowledge Base page and wait for the H1 heading to appear.
288
+ - expect: The Knowledge Base page loads successfully.
289
+ 2. Click the **Home** link in the header navigation.
290
+ - expect: The browser navigates to the dashboard page.
291
+ - expect: The URL contains `/polkphpapplicant/s/` and does not contain `knowledge-base`.
292
+ - expect: The **Welcome to the Polk HealthCare Plan Applicant Portal** heading is visible.
293
+ - expect: The **Logout** button is still visible, confirming the user remains authenticated.
294
+ 3. Navigate back to the Help / Knowledge Base page and click the Logo image in the header.
295
+ - expect: The browser navigates to the dashboard page.
296
+ - expect: The URL contains `/polkphpapplicant/s/` and does not contain `knowledge-base`.
297
+ - expect: The user remains authenticated.
298
+
299
+ #### 1.16. TC-16 - Desktop Viewport Layout (1500x730) Renders Correctly
300
+
301
+ **File:** `tests/ApplicantHelpPageTest.spec.ts`
302
+
303
+ **Steps:**
304
+ 1. Set the viewport to 1500x730 (the default Chromium project viewport defined in `playwright.config.ts`) and navigate to the Knowledge Base page.
305
+ - expect: The page loads without horizontal scrollbars.
306
+ - expect: The header, main content area, and footer are all visible.
307
+ 2. Verify the vertical stacking order of page sections.
308
+ - expect: The authenticated header (Logo + nav links + Logout) appears at the top.
309
+ - expect: The H1 **Knowledge Base** and subtitle **Find answers to your questions** appear below the header.
310
+ - expect: The search bar appears below the page title.
311
+ - expect: The Categories and Article Type filters appear in the left sidebar.
312
+ - expect: The article card grid appears to the right of the filters.
313
+ - expect: The footer (Polk HealthCare Plan image, address block, nav links, copyright) appears at the bottom.
314
+ - expect: No content is clipped or overflowing horizontally.
315
+
316
+ #### 1.17. TC-17 - Mobile Viewport Layout (Pixel 4a 412x732) Renders Correctly
317
+
318
+ **File:** `tests/ApplicantHelpPageTest.spec.ts`
319
+
320
+ **Steps:**
321
+ 1. Set the viewport to 412x732 (matching the `Device` project — Pixel 4a (5G) — defined in `playwright.config.ts`) and navigate to the Knowledge Base page.
322
+ - expect: The page loads without a horizontal scrollbar.
323
+ - expect: The H1 heading **Knowledge Base** is visible.
324
+ - expect: The Logo image in the header is visible.
325
+ - expect: The **Logout** button is visible.
326
+ - expect: The search bar is visible.
327
+ 2. Scroll to the footer on the mobile viewport.
328
+ - expect: The footer content — Polk HealthCare Plan image, address block, nav links, and copyright text — is visible and not broken or clipped.
329
+
330
+ #### 1.18. TC-18 - No Broken Images On The Knowledge Base Page
331
+
332
+ **File:** `tests/ApplicantHelpPageTest.spec.ts`
333
+
334
+ **Steps:**
335
+ 1. Open the Help / Knowledge Base page and wait for the H1 heading to appear.
336
+ - expect: The page has loaded.
337
+ 2. Check that the header Logo image has loaded correctly.
338
+ - expect: The Logo image (`alt="Logo"`) is visible in the header.
339
+ - expect: The image `naturalWidth` is greater than 0, confirming it has rendered.
340
+ 3. Scroll to the footer and check that the Polk HealthCare Plan footer image has loaded correctly.
341
+ - expect: The Polk HealthCare Plan footer image (`alt="Polk HealthCare Plan"`) is visible.
342
+ - expect: The image `naturalWidth` is greater than 0, confirming it has rendered.
343
+
344
+ #### 1.19. TC-19 - No Broken Images On The Article Detail Page
345
+
346
+ **File:** `tests/ApplicantHelpPageTest.spec.ts`
347
+
348
+ **Steps:**
349
+ 1. Navigate to the article detail page at `/polkphpapplicant/s/article?urlName=how-to-reset-password` and wait for the H1 to appear.
350
+ - expect: The article detail page has loaded.
351
+ 2. Check that the header Logo image has loaded correctly.
352
+ - expect: The Logo image (`alt="Logo"`) is visible in the header.
353
+ - expect: The image `naturalWidth` is greater than 0, confirming it has rendered.
354
+ 3. Check that the article banner image has loaded correctly.
355
+ - expect: The **Polk County Banner** image (`alt="Polk County Banner"`) is visible in the article content area.
356
+ - expect: The image `naturalWidth` is greater than 0, confirming it has rendered.
357
+ 4. Scroll to the footer and check that the Polk HealthCare Plan footer image has loaded correctly.
358
+ - expect: The Polk HealthCare Plan footer image (`alt="Polk HealthCare Plan"`) is visible.
359
+ - expect: The image `naturalWidth` is greater than 0, confirming it has rendered.
360
+
361
+ #### 1.20. TC-20 - Category Filter counts should not get changed on clicking other category
362
+
363
+ **File:** `tests/ApplicantHelpPageTest.spec.ts`
364
+
365
+ **Steps:**
366
+ 1. Open the Help / Knowledge Base page and wait for the article list to load.
367
+ - expect: The Categories sidebar is visible with labels: **All**, **Support**, **Account**, **General**.
368
+ 2. Click the **Support** category filter (which shows 0 articles).
369
+ - expect: The count present in All filter should be updated with Support Categories Count
@@ -0,0 +1,42 @@
1
+ # Polk County Applicant Landing Page Test Plan
2
+
3
+ ## Application Overview
4
+
5
+ Validate Polk County Healthcare Plan Applicant portal landing page 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. Landing Page Validation
10
+
11
+ **Seed:** `seed.spec.ts`
12
+
13
+ #### 1.1. Verify different sections of the applicant landing page
14
+
15
+ **File:** `ApplicantLandingPageTest.spec.ts`
16
+
17
+ **Steps:**
18
+ 1. Navigate to landing page URL
19
+ 2. Check the Header section of the page
20
+ - expect: Logo Image to be visible
21
+ - expect: Login Button to be visible
22
+ 3. Check the Heading & Content section of the page
23
+ - expect: The Welcome Heading Text 'Welcome to the Polk HealthCare Plan Applicant Portal' should be displayed
24
+ - Display the Instructions text
25
+ - expect: The Banner should be displayed
26
+ 4. Check the Footer section of the page
27
+ - expect: Footer Image to be displayed
28
+ - expect: Address, Number & Timing to be displayed
29
+ - expect: The CONTACT US, POLK HEALTHCARE PLAN FAQS , FIND YOUR PROVIDER, NOTIFY CUSTOMER SERVICE, ACCESSIBILITY, TERMS & CONDITIONS & PRIVACY POLICY to be displayed
30
+ - expect: The copyright text to be displayed
31
+
32
+ **Expected Results:**
33
+ - All the mentioned identifiers are displayed or not
34
+
35
+ #### 1.5. Verify accessibility attributes and WCAG baseline
36
+
37
+ **File:** `ApplicantLandingPageTest.spec.ts`
38
+
39
+ **Steps:**
40
+ 1. Run Axe accessibility scan on landing page
41
+ - expect: No critical WCAG 2.1 AA violations for major functionality
42
+ - expect: Interactive elements have accessible names and focusable states
@@ -0,0 +1,116 @@
1
+ # Polk County Applicant Login Page Test Plan
2
+
3
+ ## Application Overview
4
+
5
+ Validate Polk County Healthcare Plan Applicant Login page at `https://polkcounty--polkdevnew.sandbox.my.site.com/polkphpapplicant/s/?language=en_US`. The login page is the entry point for applicants to access their healthcare plan applications and information. This test plan covers authentication validation, UI elements, error handling, accessibility, and security considerations.
6
+
7
+
8
+ ---
9
+
10
+ ## Test Scenarios
11
+ **File:** `ApplicantLoginPageTest.spec.ts`
12
+
13
+
14
+ #### 1. Verify all required elements of the login page are visible
15
+ **Steps:**
16
+ 1. Navigate to the login page.
17
+ 2. Verify URL contains /loginpage.
18
+ 3. Validate visibility of:
19
+ - Login message text
20
+ - Username label & input field
21
+ - Password label & input field
22
+ - Login button
23
+ - Forgot Password
24
+ - Self Register
25
+
26
+ **Expected Results:**
27
+ - URL contains "loginpage"
28
+ - All UI components are displayed
29
+ - Login text displays the correct instructional message
30
+
31
+ ---
32
+ #### 2. Verify error message for blank username submission
33
+ **Steps:**
34
+ 1. Navigate to login page
35
+ 2. Click login submit button without entering any credentials.
36
+
37
+ **Expected Results:**
38
+ - Browser returns validation message: "Please fill in this field."
39
+
40
+ ---
41
+ #### 3. Verify error message for blank password submission
42
+ **Steps:**
43
+ 1. Navigate to login page
44
+ 2. Enter a valid username.
45
+ 3. Click login submit button.
46
+
47
+ **Expected Results:**
48
+ - Browser returns validation message: "Please fill in this field." for password field
49
+
50
+ ---
51
+ #### 4. Verify password field masks user input
52
+ **Steps:**
53
+ 1. Navigate to login page
54
+
55
+ **Expected Results:**
56
+ - Password input type is "password"
57
+ - Characters typed into the field are masked
58
+
59
+ ---
60
+ #### 5. Validate error message for incorrect username
61
+ **Steps:**
62
+ 1. Navigate to login page
63
+ 2. Enter invalid username: `testing`
64
+ 3. Enter valid password
65
+ 4. Click "Login" button
66
+ 5. Observe error message
67
+
68
+ **Expected Results:**
69
+ - Error message displayed: "Login failed. Please check your credentials and try again."
70
+
71
+ ---
72
+
73
+ #### 6. Login with Invalid Password
74
+ **Steps:**
75
+ 1. Navigate to login page
76
+ 2. Enter valid username
77
+ 3. Enter invalid password: `testing`
78
+ 4. Click "Login" button
79
+ 5. Observe error message
80
+
81
+ **Expected Results:**
82
+ - Error message displayed: "Login failed. Please check your credentials and try again."
83
+
84
+ ---
85
+ #### 7. Login with Valid Credentials
86
+ **Steps:**
87
+ 1. Navigate to login page
88
+ 2. Enter valid username
89
+ 3. Enter valid password
90
+ 4. Click "Login" button
91
+
92
+ **Expected Results:**
93
+ - Applicant should get logged and see the logout button
94
+
95
+ ---
96
+ ### 8. Verify navigation to Forgot Password
97
+ **Steps:**
98
+ 1. From the login page, click **Forgot Password**.
99
+ **Expected results:**
100
+ - User is taken to the forgot-password route (URL contains e.g. `forgetpassword`); page shows forgot-password content (see `Applicant Forgot Password Page Test Plan.md`).
101
+
102
+ ---
103
+
104
+ ### 9. Verify navigation to Self Register
105
+ **Steps:**
106
+ 1. From the login page, click **Self Register**.
107
+ **Expected results:**
108
+ - User reaches the self-registration flow or URL defined by the product; page loads without error.
109
+
110
+ ---
111
+
112
+ ### 10. Optional — Global chrome (header / footer) on login page
113
+ **Steps:**
114
+ 1. On the login page, confirm header (logo, **Login** / navigation as designed) and scroll to footer.
115
+ **Expected results:**
116
+ - Layout is consistent with other public applicant pages; critical chrome is present and not broken on typical viewports.