Skip to content
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

ng_wait error #12

Closed
mduqueoviedo opened this issue Nov 13, 2015 · 4 comments
Closed

ng_wait error #12

mduqueoviedo opened this issue Nov 13, 2015 · 4 comments

Comments

@mduqueoviedo
Copy link

This is an awesome gem, full of potential! But...

On a simple test I am getting this error:

Failure/Error: ng_wait
     NoMethodError:
       undefined method `size' for :FN_waitForAngular:Symbol
     # /home/vagrant/.rvm/gems/ruby-2.2.0/gems/capybara-ng-0.2.1/lib/angular/client_script.rb:769:in `block in functions'
     # /home/vagrant/.rvm/gems/ruby-2.2.0/gems/capybara-ng-0.2.1/lib/angular/client_script.rb:768:in `map'
     # /home/vagrant/.rvm/gems/ruby-2.2.0/gems/capybara-ng-0.2.1/lib/angular/client_script.rb:768:in `functions'
     # /home/vagrant/.rvm/gems/ruby-2.2.0/gems/capybara-ng-0.2.1/lib/angular/client_script.rb:789:in `window_scripts'
     # /home/vagrant/.rvm/gems/ruby-2.2.0/gems/capybara-ng-0.2.1/lib/angular/setup.rb:109:in `install'
     # /home/vagrant/.rvm/gems/ruby-2.2.0/gems/capybara-ng-0.2.1/lib/angular/setup.rb:12:in `ng_wait'
     # /home/vagrant/.rvm/gems/ruby-2.2.0/gems/capybara-ng-0.2.1/lib/angular/dsl.rb:41:in `ng_wait'
     # ./spec/features/login_spec.rb:9:in `block (2 levels) in <top (required)>'```

My test starts with:

scenario "Show ", js: true do
    select_page = select_bank_page

    ng_wait

I am including everything which is required and checked your examples too.
Any clue?

@kikonen
Copy link
Owner

kikonen commented Nov 13, 2015

Looks like small showstopper issue in initialization. My first guess is that behavior change between ruby 2.1 and 2.2 triggers issue.

@kikonen
Copy link
Owner

kikonen commented Nov 14, 2015

didn't have time yesterday to look into this. But now there is capybara-ng v0.2.2.

Could you try and see if you encounter problem with it.

@mduqueoviedo
Copy link
Author

Thank you very much for answering that fast! I will test it on Monday and let you know :)

@mduqueoviedo
Copy link
Author

Thank you very much, it is not throwing any error now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants