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

Attempt to run acceptance tests without jquery using ember canary #48

Merged
merged 11 commits into from
Apr 9, 2017

Conversation

cibernox
Copy link
Owner

@cibernox cibernox commented Mar 26, 2017

After emberjs/ember.js#15065 was merged in master, lets see if acceptance tests run without jquery.

@pixelhandler
Copy link
Collaborator

@cibernox looks like there is an error about a jQuery reference, see failed travis tests, TypeError: _emberViews.jQuery is not a function

@cibernox
Copy link
Owner Author

Those erros have to be fixed upstream in ember. I'll try to find some.

package.json Outdated
@@ -30,7 +30,7 @@
},
"devDependencies": {
"broccoli-asset-rev": "^2.4.5",
"ember-ajax": "^2.4.1",
"ember-ajax": "^2.5.6",
Copy link
Collaborator

Choose a reason for hiding this comment

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

could we remove this as a dev dependency?

Copy link
Owner Author

Choose a reason for hiding this comment

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

I was experimenting. I believe that ember-ajax is the problem here, but at the same time mirage seems to depend on jquery implicitly.
This problem is a several layers' cake, but I'll get to the bottom of it.

@cibernox cibernox force-pushed the attempt-to-enable-acceptance-tests-without-jquery branch from 4154aa1 to 06d28af Compare April 2, 2017 00:34
@cibernox cibernox force-pushed the attempt-to-enable-acceptance-tests-without-jquery branch from 3471537 to 6f89e57 Compare April 4, 2017 19:33
@cibernox cibernox force-pushed the attempt-to-enable-acceptance-tests-without-jquery branch from 0bc03e8 to d568549 Compare April 8, 2017 21:56
@cibernox cibernox force-pushed the attempt-to-enable-acceptance-tests-without-jquery branch from 7c5ba15 to 0287540 Compare April 8, 2017 23:54
@cibernox
Copy link
Owner Author

cibernox commented Apr 9, 2017

@rwjblue @pixelhandler It's alive!

We can write apps and run its tests without using jQuery at all.
Steps:

  • Use canary (perhaps beta works too?)
  • Install ember-native-dom-event-dispatcher
  • Obviously use ember-fetch instead of ember-ajax.

This uses async/await all the way down, both integration and acceptance.

@cibernox cibernox merged commit 3b79b3c into master Apr 9, 2017
@cibernox cibernox deleted the attempt-to-enable-acceptance-tests-without-jquery branch April 9, 2017 00:37
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