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

fix(core): Explicitly name the axe module 'axe-core' #859

Merged
merged 10 commits into from
May 19, 2018

Conversation

noead01
Copy link
Contributor

@noead01 noead01 commented Apr 22, 2018

Avoid the "Mismatched anonymous define() modules" error when the axe script is injected in a page that uses requireJS

Closes #849

PR Checklist

Please check if your PR fulfills the following requirements:

Description of the changes

  • Github issue: 849

Does this PR introduce a breaking change?

[ ] Yes
[x] No

Other information

Avoid the "Mismatched anonymous define() modules" error when the axe script is injected in a page that uses requireJS

Closes dequelabs#849
@dylanb
Copy link
Contributor

dylanb commented Apr 22, 2018

@noead01 Would it be possible to create an integration test that shows the failure condition that this fix addresses? If that is possible, I would like to see that test added to this PR.

@WilcoFiers
Copy link
Contributor

We could just check that the first argument is axe-core. That should be enough IMO.

WilcoFiers and others added 6 commits April 24, 2018 20:36
* chore: add Greenkeeper config file

* chore(package): update dependencies

* chore(package): update dependencies

* chore(package): update dependencies

* chore(package): update dependencies

* chore(package): update dependencies

* chore(package): update dependencies

* docs(readme): add Greenkeeper badge

* chore: update to use babel-core

* chore: update to latest uglify config properties

`bracketize` became `braces` and `expect` became `reserved`
* chore: rename jest example to help greenkeeper

plus signs are invalid in filenames/directories

Closes dequelabs#869

* chore: add config to jest_react example

Closes dequelabs#865
@WilcoFiers
Copy link
Contributor

@noead01 Can you add a test that checks that the first argument with which define is called is 'axe-core'?

Avoid the "Mismatched anonymous define() modules" error when the axe script is injected in a page that uses requireJS

Closes dequelabs#849
Added integration test to check the value of the first argument to define()

Closes dequelabs#849
@noead01
Copy link
Contributor Author

noead01 commented May 3, 2018

@WilcoFiers I added the requested changes, but it seems the browser tests failed due to an environmental issue. Is it possible to force a re-build in CircleCI?

@dylanb
Copy link
Contributor

dylanb commented May 8, 2018

@noead01 I triggered the build again, lets see what happens. It was complaining about geckodriver

@marcysutton
Copy link
Contributor

marcysutton commented May 15, 2018

The flaky test issue in #805 is officially a blocker now. The parallel tests actually fail for me locally as well....but the only error I see is a warning about http2 being an experimental API. That looks related to grunt-contrib-connect and not anything to do with this PR.

Edit: I just ran them again and they passed. So it's flaky locally AND in CI.

@WilcoFiers WilcoFiers merged commit 7b46f63 into dequelabs:develop May 19, 2018
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.

When injected into a page, the axe script can override other anonymous modules loaded via requireJS
4 participants