Skip to content

Conversation

@abdulahmad307
Copy link

Fix an issue where axe violations are found while the page is still potentially loading (so the flagged violation is potentially incorrect)

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR addresses an issue where axe accessibility violations were being detected while pages were still loading, potentially resulting in incorrect violation reports. The change adds an explicit wait condition to the page navigation in the accessibility scanning function.

Key Changes:

  • Modified page.goto() to wait for DOM content to be loaded before proceeding with accessibility scanning

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants