summaryrefslogtreecommitdiff
path: root/spec/features/issues
diff options
context:
space:
mode:
authorClement Ho <ClemMakesApps@gmail.com>2017-05-04 15:55:36 -0500
committerClement Ho <ClemMakesApps@gmail.com>2017-05-04 22:34:15 -0500
commitc4094b7ec4699811f928699ad67c90e1686da6e2 (patch)
treeae5535a19e15452baa0d08d4fd702a6a1465919b /spec/features/issues
parent3f6477fd1f6fc83e5ef8d03e7c2fe960294c8a98 (diff)
downloadgitlab-ce-c4094b7ec4699811f928699ad67c90e1686da6e2.tar.gz
Fix specs
Diffstat (limited to 'spec/features/issues')
-rw-r--r--spec/features/issues/form_spec.rb13
1 files changed, 6 insertions, 7 deletions
diff --git a/spec/features/issues/form_spec.rb b/spec/features/issues/form_spec.rb
index 5798292033b..87adce3cddd 100644
--- a/spec/features/issues/form_spec.rb
+++ b/spec/features/issues/form_spec.rb
@@ -77,11 +77,10 @@ describe 'New/edit issue', feature: true, js: true do
click_link 'Assign to me'
assignee_ids = page.all('input[name="issue[assignee_ids][]"]', visible: false)
- expect(assignee_ids[0].value).to match(user2.id.to_s)
- expect(assignee_ids[1].value).to match(user.id.to_s)
+ expect(assignee_ids[0].value).to match(user.id.to_s)
page.within '.js-assignee-search' do
- expect(page).to have_content "#{user2.name} + 1 more"
+ expect(page).to have_content user.name
end
expect(find('a', text: 'Assign to me', visible: false)).not_to be_visible
@@ -109,7 +108,7 @@ describe 'New/edit issue', feature: true, js: true do
page.within '.issuable-sidebar' do
page.within '.assignee' do
- expect(page).to have_content "2 Assignees"
+ expect(page).to have_content "Assignee"
end
page.within '.milestone' do
@@ -148,12 +147,12 @@ describe 'New/edit issue', feature: true, js: true do
end
it 'correctly updates the selected user when changing assignee' do
- click_button 'Assignee'
+ click_button 'Unassigned'
page.within '.dropdown-menu-user' do
click_link user.name
end
- expect(find('input[name="issue[assignee_id]"]', visible: false).value).to match(user.id.to_s)
+ expect(find('input[name="issue[assignee_ids][]"]', visible: false).value).to match(user.id.to_s)
click_button user.name
@@ -167,7 +166,7 @@ describe 'New/edit issue', feature: true, js: true do
click_link user2.name
end
- expect(find('input[name="issue[assignee_id]"]', visible: false).value).to match(user2.id.to_s)
+ expect(find('input[name="issue[assignee_ids][]"]', visible: false).value).to match(user2.id.to_s)
click_button user2.name