Commit 53f14dfa authored by Samantha Ming's avatar Samantha Ming

Adjust spec for FF scenario

parent fbd03b90
...@@ -20,6 +20,17 @@ RSpec.describe "Issues > User edits issue", :js do ...@@ -20,6 +20,17 @@ RSpec.describe "Issues > User edits issue", :js do
sign_in(user) sign_in(user)
end end
context 'with multiple_issue_assignees feature flag off' do
before do
stub_feature_flags(multiple_issue_assignees: false)
end
it 'displays singular Assignee title' do
visit edit_project_issue_path(project, issue)
expect(page).to have_content "Assignee"
end
end
context "from edit page" do context "from edit page" do
before do before do
visit edit_project_issue_path(project, issue) visit edit_project_issue_path(project, issue)
...@@ -38,8 +49,7 @@ RSpec.describe "Issues > User edits issue", :js do ...@@ -38,8 +49,7 @@ RSpec.describe "Issues > User edits issue", :js do
it 'allows user to select unassigned' do it 'allows user to select unassigned' do
visit edit_project_issue_path(project, issue) 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 first('.js-user-search').click
click_link 'Unassigned' click_link 'Unassigned'
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment