-
Notifications
You must be signed in to change notification settings - Fork 13
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
ember-pickr makes our test suite brittle #49
Comments
Hi @tschoartschi, thanks for the detailed issue write-up! Could you also help with a dummy repo with a sample test so that I can look into this? |
@astronomersiva I'll try to create one 😃 I'm not sure if I can create a reproduction because it's a timing issue. We discussed the issue in Discord as well and we thought that maybe it's a problem on the following line:
Because of I'm not sure if it's an issue with await render(hbs`
<Some::Form::With::A::Colorpicker
@model={{this.data}}
@update={{this.update}}
/>`); Because |
@astronomersiva I tried to create a repo which has similar problems like we have. I'm not sure if it's really the same as with our code but it behaves definitely the same. It's super hard to create a repo with a reproduction because it's a timing issue and I'm also not 100% sure what causes the timing problems. You can have a look here: https://github.com/tschoartschi/ember-pickr-test-issues The following screencast should show how it behaves: https://github.com/tschoartschi/ember-pickr-test-issues/blob/master/pickr.mov |
Thanks a lot @tschoartschi, that video helped me understand what this is about. I've been encountering this as well. Let me try and fix this 👍 |
@astronomersiva cool 😎in case you need more information let me know. Maybe we need to write a test helper or something. I'm not sure what the best solution is but if you need something just reach out. |
Yes, this addon needs to expose a test waiter so that ember-test-helpers's wait is aware of this addon's behaviour. vertical-collection does something similar. |
Just wanted to follow up. Do you think this will be easy to fix, since we have some template from |
@astronomersiva any update on this issue or do you need help? |
@tschoartschi, sorry I have been held up with some work of late. Would certainly appreciate help with this! |
Hey!
We just encountered that our tests which rely or render
ember-pickr
are brittle. We think this happens becausepickr.min.js
is instantiated within arequestAnimationFrame
and in combination with thedefault
parameter different timings can happen. Therefore our test suite sometimes pass and sometimes not.I'm not sure if it's a
ember-pickr
issue or something else. Also I do not know how to work around it. Would be great if someone could help us 😃Here is the stacktrace from the test:
The text was updated successfully, but these errors were encountered: