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
80f4fa87
Commit
80f4fa87
authored
Sep 27, 2017
by
Simon Knox
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
move edit test
parent
32ac090e
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
54 additions
and
23 deletions
+54
-23
app/assets/stylesheets/framework/modal.scss
app/assets/stylesheets/framework/modal.scss
+1
-3
spec/ee/spec/features/boards/user_configures_board.rb
spec/ee/spec/features/boards/user_configures_board.rb
+52
-0
spec/features/boards/multiple_boards_spec.rb
spec/features/boards/multiple_boards_spec.rb
+1
-20
No files found.
app/assets/stylesheets/framework/modal.scss
View file @
80f4fa87
...
...
@@ -54,9 +54,7 @@ body.modal-open {
}
.modal.popup-dialog
{
display
:
flex
;
justify-content
:
center
;
align-items
:
center
;
display
:
block
;
@media
(
min-width
:
$screen-md-min
)
{
.modal-dialog
{
...
...
spec/ee/spec/features/boards/user_configures_board.rb
0 → 100644
View file @
80f4fa87
require
'rails_helper'
describe
'issue board config'
,
:js
do
let
(
:user
)
{
create
(
:user
)
}
let
(
:project
)
{
create
(
:project
,
:public
)
}
let!
(
:planning
)
{
create
(
:label
,
project:
project
,
name:
'Planning'
)
}
let!
(
:board
)
{
create
(
:board
,
project:
project
)
}
before
do
stub_licensed_features
(
multiple_issue_boards:
true
)
end
context
'user with edit permissions'
do
before
do
project
.
team
<<
[
user
,
:master
]
login_as
(
user
)
visit
project_boards_path
(
project
)
wait_for_requests
end
it
'edits board'
do
click_button
'Edit board'
page
.
within
(
'.popup-dialog'
)
do
fill_in
'board-new-name'
,
with:
'Testing'
click_button
'Save'
end
expect
(
'.dropdown-menu-toggle'
,
text:
'Testing'
).
to
exist
end
end
context
'user without edit permissions'
do
before
do
visit
project_boards_path
(
project
)
wait_for_requests
end
it
'shows board scope'
do
click_button
'View scope'
page
.
within
(
'.popup-dialog'
)
do
expect
(
page
).
not_to
have_link
(
'Edit'
)
expect
(
page
).
not_to
have_button
(
'Edit'
)
expect
(
page
).
not_to
have_button
(
'Save'
)
end
end
end
end
\ No newline at end of file
spec/features/boards/multiple_boards_spec.rb
View file @
80f4fa87
...
...
@@ -67,24 +67,6 @@ describe 'Multiple Issue Boards', :js do
expect
(
page
).
to
have_button
(
'This is a new board'
)
end
it
'edits board name'
do
click_button
board
.
name
page
.
within
(
'.dropdown-menu'
)
do
click_link
'Edit board name'
fill_in
'board-new-name'
,
with:
'Testing'
click_button
'Save'
end
wait_for_requests
page
.
within
(
'.dropdown-menu'
)
do
expect
(
page
).
to
have_content
(
'Testing'
)
end
end
it
'deletes board'
do
click_button
board
.
name
...
...
@@ -156,7 +138,6 @@ describe 'Multiple Issue Boards', :js do
page
.
within
(
'.dropdown-menu'
)
do
expect
(
page
).
not_to
have_content
(
'Create new board'
)
expect
(
page
).
not_to
have_content
(
'Edit board name'
)
expect
(
page
).
not_to
have_content
(
'Delete board'
)
end
end
...
...
@@ -178,7 +159,7 @@ describe 'Multiple Issue Boards', :js do
click_button
board
.
name
page
.
within
(
'.dropdown-menu'
)
do
expect
(
page
).
to
have_content
(
'Edit board
name
'
)
expect
(
page
).
to
have_content
(
'Edit board'
)
expect
(
page
).
not_to
have_content
(
'Create new board'
)
expect
(
page
).
not_to
have_content
(
'Delete board'
)
end
...
...
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