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
fc99ed95
Commit
fc99ed95
authored
Jun 13, 2018
by
Paul Slaughter
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add spec for edit board name
parent
4dcb1599
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
29 additions
and
5 deletions
+29
-5
ee/spec/features/boards/boards_spec.rb
ee/spec/features/boards/boards_spec.rb
+29
-5
No files found.
ee/spec/features/boards/boards_spec.rb
View file @
fc99ed95
...
...
@@ -5,12 +5,12 @@ describe 'issue boards', :js do
let
(
:project
)
{
create
(
:project
,
:public
)
}
let!
(
:board
)
{
create
(
:board
,
project:
project
)
}
before
do
project
.
add_developer
(
user
)
login_as
(
user
)
end
context
'issue board focus mode'
do
before
do
project
.
add_developer
(
user
)
login_as
(
user
)
end
it
'shows the button when the feature is enabled'
do
stub_licensed_features
(
issue_board_focus_mode:
true
)
...
...
@@ -28,6 +28,30 @@ describe 'issue boards', :js do
end
end
context
'with group and reporter'
do
let
(
:group
)
{
create
(
:group
)
}
let
(
:project
)
{
create
(
:project
,
:public
,
namespace:
group
)
}
before
do
project
.
add_master
(
user
)
group
.
add_reporter
(
user
)
login_as
(
user
)
end
it
'can edit board name'
do
visit_board_page
board_name
=
board
.
name
new_board_name
=
board_name
+
'-Test'
click_button
'Edit board'
fill_in
'board-new-name'
,
with:
new_board_name
click_button
'Save changes'
expect
(
page
).
to
have_content
new_board_name
end
end
def
visit_board_page
visit
project_boards_path
(
project
)
wait_for_requests
...
...
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