-
Notifications
You must be signed in to change notification settings - Fork 117
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
Acceptance Testing with Async Content #78
Comments
+1, have you found a solution yet? |
Nope, still haven't worked out a way to do this 😦 |
We think about switching to miguelcobain/ember-cli-selectize. Tests are a big deal! |
Oh cool, that does look good. Does it support testing in an easier way? |
Yes, a test now looks like this: visit('/select');
andThen(function() {
find('.selectize-control').click();
equal(find('.selectize-dropdown-content div:eq(0)').text(), 'Item 1');
equal(find('.selectize-dropdown-content div:eq(1)').text(), 'Item 2');
}); And |
That's great, I'll definitely look into that then. Thanks! |
I managed to test in acceptance most of used behaviour. However, I did not used Opening a dropdown with search input:
Entering some content to search query:
Of coure, it is worth to wrap this code in some kind of helpers to reuse. The results from async API are obtainer by mocking the backend with proper payloads. Hope that helps. |
I've been trying to acceptance test part of my app that uses a Promise to populate the multi-select. However, I can't seem to get it all working; it seems like when using
click
andfillIn
, the dropdown with the selection options doesn't appear. Do you have any suggestions on how to get this working? I looked through all the test examples in the repo, but couldn't find anything that really matched my use case.The text was updated successfully, but these errors were encountered: