-
Notifications
You must be signed in to change notification settings - Fork 13
Update to Ember CLI 2.8 and fix failing tests in beta and canary #112
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
Conversation
b228ec2 to
7848583
Compare
cball
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great!
|
|
||
| // this currently includes 1 px border from the appearance css. not ideal. | ||
| assert.equal(this.$('.fixed-table-columns-wrapper').width(), 151); | ||
| assert.equal(parseInt(window.getComputedStyle(columnsElem).width), 151); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍 on moving to this format. I imagine anywhere we get the width should move to this style, but baby steps. 😄
| */ | ||
| export default function getNode(context = this) { | ||
| return context.$()[0].firstElementChild; | ||
| } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
| let rows = $('.table-columns tr').length; | ||
| let headers = $('.table-columns th').text().trim(); | ||
| let rows = Ember.$('.table-columns tr').length; | ||
| let headers = Ember.$('.table-columns th').text().trim(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thoughts on changing import jQuery from 'jquery' above vs updating this to Ember.$? If you're thinking it's more clear that Ember.$ does not reference the window scope, I'm good with that.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
All for it! I'll make that change real quick.
7848583 to
dcf282a
Compare
|
@cball just updated and rebase around your |
Ever since Ember CLI 2.8 was released, I've noticed that our project (currently on 2.7) has been failing in CI for both "beta" (2.9) and "release" configurations. (Side note:
ember-tryis amazing.)This can be seen across the builds for the last few PRs (see: the four previous builds from this point).
To remedy this, I updated the project to 2.8, ran
ember-initto resolve any discrepancies, and went about fixing things. Outside of some minor syntax changes, the main changes regarding functionality...window.getComputedStylefor element measurement after renderclassNamesSo far, so green. I'll update and rebase #111 and #110 if all goes well here.