capybara-angular
capybara-angular copied to clipboard
Stable integration tests for AngularJS with Capybara
This fixed a bug I was having where I believe angular wasn't completely loaded, but capybara was still trying to do things: ` Error: [ng:test] no injector found for element...
This fix the problem when angular is bootstrapped after a delay, for example, load API before bootstrapping. This should fix #34 completely.
We switched to Ruby 2.4 and now we're getting many warnings. They mostly fall into two categories: `/usr/local/bundle/gems/capybara-angular-0.2.6/lib/capybara/angular/dsl.rb:13: warning: instance variable @ignoring_angular not initialized` and `/usr/local/bundle/gems/capybara-angular-0.2.6/lib/capybara/angular.rb:10: warning: instance variable @default_max_wait_time...
I'm seeing other people used to have this issue, then it was supposedly fixed in 0.1.0 and then reintroduced in 0.1.1. But even downgrading to 0.1.0 doesn't stop it from...
Is there an easy way to track the list of outstanding requests in order to debug this? After upgrading capybara and capybara-angular, our test suddenly stopped working due to this...
I executed any tests with gem capybara-angular, but unsuccessfully! For example, why not find with 'teste'> ??? I tried find "ng-model" or "ng-click" directives using *fill_in* and *find*, but unsuccessfully....
As per Angular 2 documentation: ``` Pure Angular 1 applications can be bootstrapped in two ways: By using an ng-app directive somewhere on the HTML page, or by calling angular.bootstrap...
If someone else needs to use this with cucumber (and I wish I didn't have to use cucumber myself!), this took me a bit to figure out, but seems to...
In a feature I have: ``` ignoring_angular do visit "/" end ``` If I have this in my capybara `env.rb` ``` include Capybara::Angular::DSL ``` Then the wait for angular always...
I'm using ui.router and [angularjs-rails-resource](https://github.com/FineLinePrototyping/angularjs-rails-resource). The page I'm visiting has a directive that performs a query to the local API to get some models that populate a select for a...