Commit af87dc4
committed
Fix 'should have ARIA labels on form fields' test assertion
Changed expect(hasAccessibleName || true).toBe(true) to
expect(hasAccessibleName).toBeTruthy() since hasAccessibleName is a
string value (e.g., 'mat-input-5') not a boolean. The || true pattern
was causing the assertion to compare a string to boolean true.
Result: Test now passes.1 parent f54e64c commit af87dc4
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
50 | | - | |
| 50 | + | |
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
| |||
0 commit comments