diff options
author | Phil Hughes <me@iamphill.com> | 2017-07-25 13:19:06 +0000 |
---|---|---|
committer | Phil Hughes <me@iamphill.com> | 2017-07-25 13:19:06 +0000 |
commit | d832501f3c030542e65292b7e38493b16f302231 (patch) | |
tree | 483bc9e87a865cf0fdb86e4f49c720c4976f9457 /spec/features | |
parent | 0d451a934f671f559ed380da5f08a32723ffade4 (diff) | |
parent | 5fdef68f2bb35dc7a217c55cd6f1ed01ec3adff2 (diff) | |
download | gitlab-ce-d832501f3c030542e65292b7e38493b16f302231.tar.gz |
Merge branch '35474-fix-new-issue' into 'master'
Move relative_path to the element that is being clicked
Closes #35474
See merge request !13079
Diffstat (limited to 'spec/features')
-rw-r--r-- | spec/features/dashboard/issues_spec.rb | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/spec/features/dashboard/issues_spec.rb b/spec/features/dashboard/issues_spec.rb index 69c1a2ed89a..2a5ef08da60 100644 --- a/spec/features/dashboard/issues_spec.rb +++ b/spec/features/dashboard/issues_spec.rb @@ -78,5 +78,23 @@ RSpec.describe 'Dashboard Issues', feature: true do expect(page).not_to have_content(project_with_issues_disabled.name_with_namespace) end end + + it 'shows the new issue page', js: true do + Gitlab::Application.routes.default_url_options = { + host: Capybara.current_session.server.host, + port: Capybara.current_session.server.port, + protocol: 'http' + } + + find('.new-project-item-select-button').trigger('click') + wait_for_requests + find('.select2-results li').click + + expect(page).to have_current_path("/#{project.path_with_namespace}/issues/new") + + page.within('#content-body') do + expect(page).to have_selector('.issue-form') + end + end end end |