-
Notifications
You must be signed in to change notification settings - Fork 779
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
Axe Options RunOnlyObject not being recognized in Angular 6 project. #894
Comments
You're passing an object to runOnly, while it expects an array of strings. I'd suggest referring to the axe-core API documentation to configure it. https://github.com/dequelabs/axe-core/blob/develop/doc/API.md#api-name-axeconfigure |
Thank you for the reply but if you refer to the API documentation for the RunOnly object you will see that it can accept an Array of Strings matching TagValue OR it expects a RunOnlyObject which is what I'm passing.
|
Ah yes, I see that now. I'll reopen it. @WilcoFiers looks like we forgot an API option in #774. I guess there were no tests for that? :( |
Morning! What's the status for this issue? |
I will revert with an update. |
I think it needs to be this: type ContextObject = {
include?: string[] | string[][];
exclude?: string[] | string[][];
};
type RunCallback = (error: Error, results: AxeResults) => void;
type ElementContext = Node | string | ContextObject;
interface RunOnly {
type: RunOnlyType;
values: TagValue[] | string[];
}
|
Thank you for the reply; I will experiment with this as soon as I can! |
Dev task |
Hello everyone,
When I am running Axe.Run(ElementContext, Options): Promise I am getting the following error in my Angular test using Jasmine.
Checking the Axe Core code this object should be recognized but it is not for whatever reason. Any help with this would be greatly appreciated.
Here is my test case:
The text was updated successfully, but these errors were encountered: