Skip to content
Snippets Groups Projects

Update MR form to use plural field names

1 unresolved thread
1 file
+ 12
11
Compare changes
  • Side-by-side
  • Inline
@@ -20,20 +20,20 @@
sign_in(user)
end
context 'with multiple_issue_assignees license feature off' do
before do
stub_licensed_features(multiple_issue_assignees: false)
end
# context 'with multiple_issue_assignees license feature on' do
# before do
# stub_licensed_features(multiple_issue_assignees: true)
# end
it 'displays singular Assignee title' do
visit edit_project_issue_path(project, issue)
expect(page).to have_content "Assignee"
end
end
# it 'displays plural Assignees title' do
# visit edit_project_issue_path(project, issue)
# expect(page).to have_content "Assignees"
# end
# end
context "from edit page" do
before do
stub_licensed_features(multiple_issue_assignees: true)
stub_licensed_features(multiple_issue_assignees: false)
visit edit_project_issue_path(project, issue)
end
@@ -50,7 +50,8 @@
it 'allows user to select unassigned' do
visit edit_project_issue_path(project, issue)
expect(page).to have_content "Assignees #{user.name}"
expect(page).to have_content "Assignee #{user.name}"
first('.js-user-search').click
click_link 'Unassigned'
Loading