-
Notifications
You must be signed in to change notification settings - Fork 41
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
utils/bind-data-test-attributes: Handle failing set()
with assert instead of warning
#205
utils/bind-data-test-attributes: Handle failing set()
with assert instead of warning
#205
Conversation
set()
with assert instead of warning
looks like CI is failing |
@Turbo87 I will take a look this afternoon. It was working locally. :) |
I updated the PR, in order to pass the test for every ember versions. I keep working on it and will let you know when I found a satisfying solution. |
@Turbo87 , the CI is failing, but on the same stage than the other PR (in the ember-release scenario). A colleague and I try to investigate on this issue. If we find anything, we will let you know. |
@mathieupoteriepeopledoc CI should be fixed now. can you rebase your changes on top of |
d1c9af0
to
fd08e65
Compare
|
||
import bindDataTestAttributes from 'ember-test-selectors/utils/bind-data-test-attributes'; | ||
|
||
module('Unit | Utility | bind data test attributes'); | ||
|
||
test('it adds missing attributeBindings array', function(assert) { | ||
let Fixture = EmberObject.extend({ | ||
'data-test-from-factory': 'foo', | ||
'data-test-from-factory': 'foo' |
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.
can you remove these unrelated changes? the PR should only contain the changed functionality. Styling changes should be proposed in a seperate PR.
1465c25
to
ca673f5
Compare
bc48d18
to
ad03823
Compare
@Turbo87, this is fixed, and git history of this PR has been cleaned. |
let Fixture = EmberObject.extend({ | ||
tagName: '', | ||
'data-test-from-factory': 'foo', | ||
if (!config.stripTestSelectors) { |
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.
I don't understand this. Why are you checking config.stripTestSelectors
here? The bindDataTestAttributes()
function doesn't seem to care about that config option 🤔
ad03823
to
6014bf7
Compare
6014bf7
to
f9be194
Compare
@Turbo87 , sorry it was some code remaining from an integration test made previously. |
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.
awesome, thanks! and sorry that it took so long to review 😞
Wrote an integration test in order to test that the error is thrown when a data-test attribute is set on a tagless component.
close #204