diff options
author | Heinrich Lee Yu <heinrich@gitlab.com> | 2019-03-20 17:46:58 +0800 |
---|---|---|
committer | Heinrich Lee Yu <heinrich@gitlab.com> | 2019-03-20 17:46:58 +0800 |
commit | f17875eb645425fbbc2c4b45cb7c9ac8850e5066 (patch) | |
tree | 4de8c0b4f92269502c87a69b0504dcbbcc25e068 /spec | |
parent | 00e5d66d2319903f8f9d24c747e4a52aefd660ed (diff) | |
download | gitlab-ce-f17875eb645425fbbc2c4b45cb7c9ac8850e5066.tar.gz |
CE-port of 6571-single-codebase
Adds conditional to close assignee menu when visible in EE
Diffstat (limited to 'spec')
-rw-r--r-- | spec/features/issues_spec.rb | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/spec/features/issues_spec.rb b/spec/features/issues_spec.rb index 9bc340ed4bb..51508b78649 100644 --- a/spec/features/issues_spec.rb +++ b/spec/features/issues_spec.rb @@ -497,12 +497,21 @@ describe 'Issues' do it 'allows user to unselect themselves', :js do issue2 = create(:issue, project: project, author: user) + visit project_issue_path(project, issue2) + def close_dropdown_menu_if_visible + find('.dropdown-menu-toggle', visible: :all).tap do |toggle| + toggle.click if toggle.visible? + end + end + page.within '.assignee' do click_link 'Edit' click_link user.name + close_dropdown_menu_if_visible + page.within '.value .author' do expect(page).to have_content user.name end @@ -510,6 +519,8 @@ describe 'Issues' do click_link 'Edit' click_link user.name + close_dropdown_menu_if_visible + page.within '.value .assign-yourself' do expect(page).to have_content "No assignee" end |