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

chore: Update ACT test cases to run from W3C site #3637

Merged
merged 3 commits into from
Sep 12, 2022
Merged

Conversation

WilcoFiers
Copy link
Contributor

@WilcoFiers WilcoFiers commented Sep 5, 2022

Closes issue: #3499

  • Enable tests for all rules axe-core has currently implemented, except for 1 (see ACT Tests should run inside iframes #3636)
  • Use the ACT Test cases from the W3C repo, rather than the CG repo which is starting to go out of date

@WilcoFiers WilcoFiers requested a review from a team as a code owner September 5, 2022 14:56
@@ -0,0 +1,5 @@
{
"id": "5c01ea",
Copy link
Contributor

Choose a reason for hiding this comment

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

Question: how do we want to name these files? We don't appear to have a naming convention for axe-core, and I'm not sure where the aria-props-allowed name comes from. Is that what it's called in ACT (but not listed in the rule itself)?

Copy link
Contributor Author

@WilcoFiers WilcoFiers Sep 8, 2022

Choose a reason for hiding this comment

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

I was sort of just winging it. ACT rules do have a file name. I could copy those I suppose. Here's the list of them: https://github.com/act-rules/act-rules.github.io/tree/develop/_rules

straker
straker previously requested changes Sep 7, 2022
Copy link
Contributor

@straker straker left a comment

Choose a reason for hiding this comment

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

See question above

straker
straker previously requested changes Sep 9, 2022
test/act-rules/README.md Outdated Show resolved Hide resolved
const shouldRun = testcase.relativePath.match(/\.(xhtml|html?)$/);
(shouldRun ? it : xit)(testcase.testcaseTitle, async () => {
await driver.get(`${addr}/${testcase.relativePath}`);
const builder = new AxeBuilder(driver, axeSource);
Copy link
Contributor

Choose a reason for hiding this comment

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

Nice, I like this way of doing the tests

Co-authored-by: Steven Lambert <[email protected]>
@WilcoFiers WilcoFiers merged commit 8a4f00d into develop Sep 12, 2022
@WilcoFiers WilcoFiers deleted the act-test-update branch September 12, 2022 21:04
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