Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
60f29fbb
Commit
60f29fbb
authored
Nov 19, 2020
by
Samantha Ming
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Flip stub license testing
parent
4ed4bcb3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
11 deletions
+12
-11
spec/features/issues/user_edits_issue_spec.rb
spec/features/issues/user_edits_issue_spec.rb
+12
-11
No files found.
spec/features/issues/user_edits_issue_spec.rb
View file @
60f29fbb
...
...
@@ -20,20 +20,20 @@ RSpec.describe "Issues > User edits issue", :js do
sign_in
(
user
)
end
context
'with multiple_issue_assignees license feature off
'
do
before
do
stub_licensed_features
(
multiple_issue_assignees:
fals
e
)
end
# context 'with multiple_issue_assignees license feature on
' do
#
before do
# stub_licensed_features(multiple_issue_assignees: tru
e)
#
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:
tru
e
)
stub_licensed_features
(
multiple_issue_assignees:
fals
e
)
visit
edit_project_issue_path
(
project
,
issue
)
end
...
...
@@ -50,7 +50,8 @@ RSpec.describe "Issues > User edits issue", :js do
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'
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment