Commit 067d028
authored
test(customizecta): add heading accessibility assertions (JhaSourav07#797)
## Description
Fixes JhaSourav07#713
Added accessibility-focused assertions for the `CustomizeCTA` heading to
improve semantic HTML test coverage.
## Changes Made
* Added assertion for an `h2` heading level
* Added assertion to verify exactly one `h2` exists
* Added assertion for the exact heading text:
`Want to fine-tune your monolith?`
## Pillar
* [x] 🛠️ Other (Bug fix, refactoring, docs)
## Validation
* Ran `npm run test`
* Verified all existing `CustomizeCTA` tests pass1 parent 55e9c4a commit 067d028
1 file changed
Lines changed: 8 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
52 | | - | |
53 | 52 | | |
54 | 53 | | |
55 | 54 | | |
56 | 55 | | |
57 | 56 | | |
58 | | - | |
| 57 | + | |
59 | 58 | | |
60 | 59 | | |
61 | | - | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
62 | 65 | | |
63 | | - | |
| 66 | + | |
| 67 | + | |
64 | 68 | | |
65 | 69 | | |
66 | 70 | | |
| |||
108 | 112 | | |
109 | 113 | | |
110 | 114 | | |
111 | | - | |
112 | | - | |
113 | 115 | | |
114 | 116 | | |
115 | 117 | | |
| |||
0 commit comments