You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When loading the reproduction link, the a11y addon reports 45 problems. If you click the "Tests completed" in the bottom right corner, it will run the tests again and only report 4 problems. This last report is correct (it's about the 4 disabled buttons on the far right).
If you toggle "Highlight results" before you click the "Tests completed", you will also notice that it doesn't clear the highlights of the previous test run.
Reported in #sb-test-early-access channel on Discord.
** Disclaimer** This information might be inaccurate, due to it being generated automatically
This appears to be an issue with the a11y addon's initialization timing and state management. The key areas to investigate/modify are: 1. In code/addons/a11y/src/components/Report.tsx, modify the useEffect hook that runs the initial accessibility check to wait for the story to fully render before running tests. 2. In code/addons/a11y/src/components/HighlightToggle.tsx, add cleanup logic to clear highlights when re-running tests. 3. Consider adding a check in code/addons/a11y/src/components/A11YPanel.tsx to ensure the DOM is stable before running initial tests, possibly using a small delay or mutation observer. The false positives likely occur because the initial test runs before all story elements are fully mounted and styled.
About Greptile
This response provides a starting point for your research, not a precise solution.
Help us improve! Please leave a 👍 if this is helpful and 👎 if it is irrelevant.
Describe the bug
When loading the reproduction link, the a11y addon reports 45 problems. If you click the "Tests completed" in the bottom right corner, it will run the tests again and only report 4 problems. This last report is correct (it's about the 4 disabled buttons on the far right).
If you toggle "Highlight results" before you click the "Tests completed", you will also notice that it doesn't clear the highlights of the previous test run.
Reported in #sb-test-early-access channel on Discord.
Reproduction link
https://kind-plant-088739303-1713.westeurope.1.azurestaticapps.net/?path=/story/actions-button--all&globals=mode:dark
Reproduction steps
No response
System
Additional context
No response
The text was updated successfully, but these errors were encountered: