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
3ca1235e
Commit
3ca1235e
authored
Mar 04, 2021
by
Florie Guibert
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Epic Boards - MVC1 bug fixes
Review feedback
parent
2ad2eafa
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
28 additions
and
2 deletions
+28
-2
app/assets/javascripts/boards/components/board_add_new_column_trigger.vue
...cripts/boards/components/board_add_new_column_trigger.vue
+1
-1
ee/spec/features/epic_boards/epic_boards_spec.rb
ee/spec/features/epic_boards/epic_boards_spec.rb
+26
-0
ee/spec/frontend/boards/components/boards_selector_spec.js
ee/spec/frontend/boards/components/boards_selector_spec.js
+1
-1
No files found.
app/assets/javascripts/boards/components/board_add_new_column_trigger.vue
View file @
3ca1235e
...
...
@@ -13,7 +13,7 @@ export default {
</
script
>
<
template
>
<span
class=
"gl-ml-3 gl-display-flex gl-align-items-center"
>
<span
class=
"gl-ml-3 gl-display-flex gl-align-items-center"
data-testid=
"boards-create-list"
>
<gl-button
variant=
"confirm"
@
click=
"setAddColumnFormVisibility(true)"
>
{{
__
(
'
Create list
'
)
}}
</gl-button>
...
...
ee/spec/features/epic_boards/epic_boards_spec.rb
View file @
3ca1235e
...
...
@@ -79,6 +79,32 @@ RSpec.describe 'epic boards', :js do
end
end
context
'when user can admin epic boards'
do
before
do
stub_licensed_features
(
epics:
true
)
group
.
add_maintainer
(
user
)
sign_in
(
user
)
visit_epic_boards_page
end
it
"shows 'Create list' button"
do
expect
(
page
).
to
have_selector
(
'[data-testid="boards-create-list"]'
)
end
end
context
'when user cannot admin epic boards'
do
before
do
stub_licensed_features
(
epics:
true
)
group
.
add_guest
(
user
)
sign_in
(
user
)
visit_epic_boards_page
end
it
"does not show 'Create list'"
do
expect
(
page
).
not_to
have_selector
(
'[data-testid="boards-create-list"]'
)
end
end
def
visit_epic_boards_page
visit
group_epic_boards_path
(
group
)
wait_for_requests
...
...
ee/spec/frontend/boards/components/boards_selector_spec.js
View file @
3ca1235e
...
...
@@ -35,7 +35,7 @@ describe('BoardsSelector', () => {
const
createStore
=
()
=>
{
return
new
Vuex
.
Store
({
getters
:
{
isEpicBoard
:
()
=>
tru
e
,
isEpicBoard
:
()
=>
fals
e
,
},
});
};
...
...
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