You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am testing a login page, and after a successful login, I should be redirected to the dashboard page.
I am using the ng-routes module, not the angular-ui-router. My test for asserting this route change always fails.
my assertion looks like this:
I see that the way capybara-angular checks to see if angular is ready is just by counting outstanding XHR requests.I think waiting for route changes should be a part of what this library covers.
The text was updated successfully, but these errors were encountered:
scenario"search for a product"dovisitroot_pathwait_for_route_changeswithin:css,"form[name=SearchForm]"dofill_in"keywords",with: "shirt"click_on"Search"endexpect(page.all('.product-listing .product').size).toeq(1)end
I am testing a login page, and after a successful login, I should be redirected to the dashboard page.
I am using the ng-routes module, not the angular-ui-router. My test for asserting this route change always fails.
my assertion looks like this:
expect(current_url).to eq("#{@app_host}/#/dashboard")
I see that the way capybara-angular checks to see if angular is ready is just by counting outstanding XHR requests.I think waiting for route changes should be a part of what this library covers.
The text was updated successfully, but these errors were encountered: