guylabs / ion-autocomplete

A configurable Ionic directive for an autocomplete dropdown
MIT License
264 stars 88 forks source link

I can't get the grunt task run...I tried on mac and windows. Getting: #204

Closed quedicesebas closed 7 years ago

quedicesebas commented 8 years ago

image

Please help, I already make serious improvements to tyhe library but I can't build to send a pull request

guylabs commented 8 years ago

Hi @sebrojas14

what kind of NPM and Node version are you using?

Thanks and regards,

Guy

quedicesebas commented 8 years ago

See https://github.com/guylabs/ion-autocomplete/pull/190#issuecomment-239606489

guylabs commented 7 years ago

Hi @sebrojas14

can you maybe try it with Node 5.x and NPM 3.x? There it should work properly as I updated to this some time ago.

Thanks and regards,

Guy

quedicesebas commented 7 years ago

Now, after update npm and node, grunt tasks are working. Now I have a problem with tests. The method getSearchInputElement is not working, because now i'm using ionicModal. But I dont't now how to modifiy that method

guylabs commented 7 years ago

HI @sebrojas14

well you need to adapt all the protractor tests to incorporate the move to the ionicModal. This is a cumbersome task as all tests now are based on the standard way. Do you want to creaet a fork where the ionicModal is used?

I cannot give you much support if you want to change the whole structure of the component as I need the time to fix the current issues ;). But you can always ask here and I see how I am able to help out.

But the Grunt task is now running so we can close the issue right?

Thanks and regards,

Guy

quedicesebas commented 7 years ago

I have a branch in my fork (https://github.com/Hobbule/ion-autocomplete) with the ionicModal. The change is small, but I don't know how to modify that test method, any hel from you or the community is welcome

guylabs commented 7 years ago

Hi @sebrojas14

you mean this method here right? https://github.com/guylabs/ion-autocomplete/blob/master/test/ion-autocomplete.single-select.spec.js#L463

Well you need to get the proper query selector based on the new structure with your Ionic Modal service (this can differ from the one I use). See http://www.w3schools.com/jsref/met_document_queryselector.asp. You can test that in your browser to get the input field and then you can add that in the test.

You can also debug the protractor tests like this here: https://github.com/angular/protractor/blob/master/docs/debugging.md

With these tips you should be able to fix it.

I will now close the issue as the you are now able to run Grunt etc. and we can still discuss here. Maybe you can also ask on Stackoverflow as there you have a more active community which is willing to help.

Regards,

Guy

quedicesebas commented 7 years ago

Ok, as soon as I have time I'm gonna give it a try