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
date: 2015-05-08
title: How to wait url changing in feature test using capybara
slug: wait-url-changed-in-capybara
lang: en-US
tags: [test,capybara,rails]
Outline
For example, You make SAP(single page application) using angularjs then the application change path from /login to /profile. If application change path after ajax request how to wait path changing.
describe"form submit"docontext"input values are valid"doit"send data to server using ajax then path is changed"dovisit"/login"fill_in("email",with: "test@example.com")fill_in("password",with: "aaaaaa")click_button("login")# send ajax request wait_url("/profile")expect(page).tohave_title("profile page")endendend
The text was updated successfully, but these errors were encountered:
date: 2015-05-08
title: How to wait url changing in feature test using capybara
slug: wait-url-changed-in-capybara
lang: en-US
tags: [test,capybara,rails]
Outline
For example, You make SAP(single page application) using angularjs then the application change path from /login to /profile. If application change path after ajax request how to wait path changing.
Solution
You need include this helper.
then You can use like this.
The text was updated successfully, but these errors were encountered: