Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRémy Coutable <remy@rymai.me>2019-03-20 15:40:19 +0300
committerRémy Coutable <remy@rymai.me>2019-03-20 15:40:19 +0300
commit2269710ba5e82d71d24df8713b23b6b7b164d372 (patch)
tree2c3f1a8722dc842e50f81b4ad5cb733e26fd9389 /spec/features
parent4ac994650e650ba2ed07a6c3fdc13a0e6008eed4 (diff)
parentf17875eb645425fbbc2c4b45cb7c9ac8850e5066 (diff)
Merge branch 'ce-6571-single-codebase' into 'master'
CE-port of 6571-single-codebase See merge request gitlab-org/gitlab-ce!26355
Diffstat (limited to 'spec/features')
-rw-r--r--spec/features/issues_spec.rb11
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