Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: replace AxeResult.Error property with exceptions #74

Merged
merged 3 commits into from
Oct 11, 2022

Conversation

dbjorge
Copy link
Contributor

@dbjorge dbjorge commented Oct 11, 2022

Details

This PR removes the AxeResult.Error property that was previously used to indicate a very select few types of errors (exceptions emitted from runLegacy.js or finishRun.js, but only against WebDrivers that didn't normalize those errors as JavaScriptExceptions already) and replaces it with exception-throwing. From a user's perspective, this means that if a scan emits an exception (should be rare anyway), it will propagate as a test failure instead of (probably) ending up silently ignored.

I also added a basic AxeResult unit test as part of writing a test for the new functionality. While writing basic unit tests I noticed that the default ToString behavior AxeResult is currently using is pretty user-unfriendly, but I felt that should be addressed in a separate PR, so I omitted that test/update from this one.

Tests are part of: #22

@dbjorge dbjorge changed the title feat: replace AxeResult.Error property with exceptions feat: replace AxeResult.Error property with exceptions Oct 11, 2022
packages/selenium/README.md Outdated Show resolved Hide resolved
Copy link
Collaborator

@lisli1 lisli1 left a comment

Choose a reason for hiding this comment

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

LGTM

@michael-siek
Copy link
Member

  • reviewed for security

@michael-siek michael-siek merged commit d7d6c95 into dequelabs:develop Oct 11, 2022
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.

3 participants