Skip to content
Snippets Groups Projects
Commit 60f29fbb authored by Samantha Ming's avatar Samantha Ming
Browse files

Flip stub license testing

parent 4ed4bcb3
No related branches found
No related tags found
1 merge request!41402Update MR form to use plural field names
......@@ -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'
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment