3.4 KiB
3.4 KiB
Code Evidence Status - Data-TestID Attributes
Last Verified: 2025-01-15
Verification Method: grep -r "data-testid" src/
Status: Code-Evidence Based (No Assumptions)
✅ ACTUALLY EXISTS IN CODE (Verified by grep)
File: src/pages/designs/design-1/SignInPage.jsx
Line 215: data-testid="student_login__form"
Line 230: data-testid="student_login__identifier_input"
Line 249: data-testid="student_login__password_input"
Line 270: data-testid="student_login__remember_checkbox"
Line 291: data-testid="student_login__error_banner"
Line 305: data-testid="student_login__submit_button"
Total: 6 attributes
File: src/pages/designs/design-1/components/Design1Header.jsx
Line 217: data-testid="student_nav__profile_button"
Line 234: data-testid="student_nav__profile_dropdown"
Line 262: data-testid="student_nav__edit_profile_button"
Line 273: data-testid="student_nav__reset_password_button"
Line 286: data-testid="student_nav__sign_out_button"
Total: 5 attributes
File: src/pages/designs/design-1/components/MandatoryPasswordResetModal.jsx
# No data-testid attributes found (verified by grep)
Total: 0 attributes
❌ REQUIRED BUT MISSING (Based on Automation Test Files)
1. SignInPage.jsx - Missing 1
student_login__error_toast(toast notification container)
2. Design1Header.jsx - Missing 2
student_nav__dashboard_link(Dashboard navigation button)student_nav__assessments_link(Assessments navigation button)
3. MandatoryPasswordResetModal.jsx - Missing 11
mandatory_reset__continue_buttonmandatory_reset__formmandatory_reset__current_password_inputmandatory_reset__new_password_inputmandatory_reset__confirm_password_inputmandatory_reset__current_password_errormandatory_reset__new_password_errormandatory_reset__confirm_password_errormandatory_reset__back_buttonmandatory_reset__submit_button
4. ProfileIncompleteModal.jsx - Missing 3
profile_incomplete__modalprofile_incomplete__progress_valueprofile_incomplete__complete_button
5. StudentProfileEditor.jsx - ✅ COMPLETE
Status: All required attributes implemented
- Static attributes: 61 (verified by grep)
- Dynamic attributes: Generated via MultiSelectPicker
testIdPrefixprop - Total expected: ~200+ (includes all dynamic checkboxes)
6. ProductCard.jsx (Assessment Cards) - Missing 2
assessment_card__{assignmentId}(card container)assessment_card__{assignmentId}__action(action button)
7. DashboardPage.jsx - Missing 1
dashboard__welcome_message(h1 heading)
📊 SUMMARY
| Category | Exists | Required | Missing | % Complete |
|---|---|---|---|---|
| SignInPage | 6 | 7 | 1 | 86% |
| Design1Header | 5 | 7 | 2 | 71% |
| MandatoryPasswordResetModal | 0 | 11 | 11 | 0% |
| ProfileIncompleteModal | 0 | 3 | 3 | 0% |
| StudentProfileEditor | 61+ | 200+ | 0 | 100% |
| ProductCard | 0 | 2 | 2 | 0% |
| DashboardPage | 0 | 1 | 1 | 0% |
| TOTAL | 72+ | 280+ | 20+ | ~75% |
🔍 VERIFICATION COMMAND
To verify current status anytime:
grep -r "data-testid" cognitive-prism-assesment-ui/src/ | wc -l
To see all existing attributes:
grep -rn "data-testid" cognitive-prism-assesment-ui/src/
Note: This document is automatically verifiable. Run the grep commands above to get real-time status.