Description
Current issues identified:
- The focusable-element selector incorrectly matches elements with tabindex="-1", even though they are intentionally non-focusable.
- The SVG count assertion relies on a hardcoded minimum count (>= 27), making the test fragile against harmless visual or animation refactors.
These issues do not necessarily break functionality today, but they reduce long-term test stability and accuracy.
Steps to Reproduce
- Open the CherryBlossom.test.tsx accessibility test file.
- Locate the selector: 'button,input,textarea,select,a,[tabindex]'
- Notice that elements with tabindex="-1" are also matched.
- Locate the SVG assertion: expect(svgs.length).toBeGreaterThanOrEqual(27);
- Reduce or refactor decorative SVG petals in the component.
- Observe that tests fail even when accessibility behavior remains correct.
Expected Behavior
- Accessibility tests should only target genuinely keyboard-focusable elements.
- Decorative rendering tests should validate presence/functionality without depending on brittle hardcoded implementation counts.
- Tests should remain stable during harmless UI or animation refactors.
Environment
Chrome
Description
Current issues identified:
These issues do not necessarily break functionality today, but they reduce long-term test stability and accuracy.
Steps to Reproduce
Expected Behavior
Environment
Chrome