diff options
author | Oswaldo Ferreira <oswaldo@gitlab.com> | 2017-05-17 21:25:13 +0300 |
---|---|---|
committer | Oswaldo Ferreira <oswaldo@gitlab.com> | 2017-05-23 02:39:49 +0300 |
commit | 2338785ec9fcacc43ba2098ab1485fca292c06cc (patch) | |
tree | 6a4bd9bed8d995c28bb1589ef861a92c517f6fac /features/steps/project/project.rb | |
parent | 7f31768a7f1d311d7c8cedce045f5d918370b8c9 (diff) |
Use wait_for_requests to wait all JS request
Diffstat (limited to 'features/steps/project/project.rb')
-rw-r--r-- | features/steps/project/project.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/features/steps/project/project.rb b/features/steps/project/project.rb index 9c2196a8ef7..de32c9afcca 100644 --- a/features/steps/project/project.rb +++ b/features/steps/project/project.rb @@ -2,7 +2,7 @@ class Spinach::Features::Project < Spinach::FeatureSteps include SharedAuthentication include SharedProject include SharedPaths - include WaitForAjax + include WaitForRequests step 'change project settings' do fill_in 'project_name_edit', with: 'NewName' @@ -87,7 +87,7 @@ class Spinach::Features::Project < Spinach::FeatureSteps end step 'I should see project "Shop" README' do - wait_for_ajax + wait_for_requests page.within('.readme-holder') do expect(page).to have_content 'testme' end |