diff options
author | Rémy Coutable <remy@rymai.me> | 2017-07-04 13:51:28 +0200 |
---|---|---|
committer | Rémy Coutable <remy@rymai.me> | 2017-07-04 13:51:28 +0200 |
commit | 0c7e1c167b4849df000dfd524ddf82c00d180903 (patch) | |
tree | ea4eeb258c38b2621cc42160c1acc60c20ded81c | |
parent | f7e7e40daf335570747b6f8893a63f1e9c91657a (diff) | |
download | gitlab-ce-0c7e1c167b4849df000dfd524ddf82c00d180903.tar.gz |
wait_for_requests is not needed when AJAX is not in play
Also, using page.current_path instead of current_url and move the URL
expectation after the page content expectations.
Signed-off-by: Rémy Coutable <remy@rymai.me>
-rw-r--r-- | spec/features/issues/move_spec.rb | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/spec/features/issues/move_spec.rb b/spec/features/issues/move_spec.rb index 21a7637fe7f..d6e78157e5f 100644 --- a/spec/features/issues/move_spec.rb +++ b/spec/features/issues/move_spec.rb @@ -41,13 +41,10 @@ feature 'issue move to another project' do find('#issuable-move', visible: false).set(new_project.id) click_button('Save changes') - wait_for_requests - - expect(current_url).to include project_path(new_project) - expect(page).to have_content("Text with #{cross_reference}#{mr.to_reference}") expect(page).to have_content("moved from #{cross_reference}#{issue.to_reference}") expect(page).to have_content(issue.title) + expect(page.current_path).to include project_path(new_project) end scenario 'searching project dropdown', js: true do |