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
e37d80e2
Commit
e37d80e2
authored
Mar 31, 2021
by
GitLab Bot
Browse files
Options
Browse Files
Download
Plain Diff
Automatic merge of gitlab-org/gitlab master
parents
2b719c6d
a569f9c0
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
28 additions
and
35 deletions
+28
-35
app/assets/javascripts/boards/components/sidebar/board_sidebar_due_date.vue
...ipts/boards/components/sidebar/board_sidebar_due_date.vue
+1
-0
app/assets/javascripts/boards/components/sidebar/board_sidebar_milestone_select.vue
...rds/components/sidebar/board_sidebar_milestone_select.vue
+2
-1
spec/features/boards/sidebar_due_date_spec.rb
spec/features/boards/sidebar_due_date_spec.rb
+2
-4
spec/features/boards/sidebar_labels_spec.rb
spec/features/boards/sidebar_labels_spec.rb
+16
-19
spec/features/boards/sidebar_milestones_spec.rb
spec/features/boards/sidebar_milestones_spec.rb
+6
-8
spec/features/boards/sidebar_spec.rb
spec/features/boards/sidebar_spec.rb
+1
-3
No files found.
app/assets/javascripts/boards/components/sidebar/board_sidebar_due_date.vue
View file @
e37d80e2
...
...
@@ -69,6 +69,7 @@ export default {
<board-editable-item
ref=
"sidebarItem"
class=
"board-sidebar-due-date"
data-testid=
"sidebar-due-date"
:title=
"$options.i18n.dueDate"
:loading=
"loading"
@
open=
"openDatePicker"
...
...
app/assets/javascripts/boards/components/sidebar/board_sidebar_milestone_select.vue
View file @
e37d80e2
...
...
@@ -113,7 +113,8 @@ export default {
ref=
"sidebarItem"
:title=
"$options.i18n.milestone"
:loading=
"loading"
@
open=
"handleOpen()"
data-testid=
"sidebar-milestones"
@
open=
"handleOpen"
@
close=
"handleClose"
>
<template
v-if=
"hasMilestone"
#collapsed
>
...
...
spec/features/boards/sidebar_due_date_spec.rb
View file @
e37d80e2
...
...
@@ -17,8 +17,6 @@ RSpec.describe 'Project issue boards sidebar due date', :js do
end
before
do
stub_feature_flags
(
graphql_board_lists:
false
)
project
.
add_maintainer
(
user
)
sign_in
(
user
)
...
...
@@ -31,10 +29,10 @@ RSpec.describe 'Project issue boards sidebar due date', :js do
it
'updates due date'
do
click_card
(
card
)
page
.
within
(
'
.due_date
'
)
do
page
.
within
(
'
[data-testid="sidebar-due-date"]
'
)
do
today
=
Date
.
today
.
day
click_
link
'Edit'
click_
button
'Edit'
click_button
today
.
to_s
...
...
spec/features/boards/sidebar_labels_spec.rb
View file @
e37d80e2
...
...
@@ -18,8 +18,6 @@ RSpec.describe 'Project issue boards sidebar labels', :js do
let
(
:card
)
{
find
(
'.board:nth-child(2)'
).
first
(
'.board-card'
)
}
before
do
stub_feature_flags
(
graphql_board_lists:
false
)
project
.
add_maintainer
(
user
)
sign_in
(
user
)
...
...
@@ -29,7 +27,8 @@ RSpec.describe 'Project issue boards sidebar labels', :js do
end
context
'labels'
do
it
'shows current labels when editing'
do
# https://gitlab.com/gitlab-org/gitlab/-/issues/322725
xit
'shows current labels when editing'
do
click_card
(
card
)
page
.
within
(
'.labels'
)
do
...
...
@@ -49,15 +48,15 @@ RSpec.describe 'Project issue boards sidebar labels', :js do
click_card
(
card
)
page
.
within
(
'.labels'
)
do
click_
link
'Edit'
click_
button
'Edit'
wait_for_requests
click_link
bug
.
title
wait_for_requests
find
(
'[data-testid="close-icon"]'
).
click
find
(
'.dropdown-menu-close-icon'
).
click
wait_for_requests
page
.
within
(
'.value'
)
do
expect
(
page
).
to
have_selector
(
'.gl-label-text'
,
count:
3
)
...
...
@@ -74,19 +73,17 @@ RSpec.describe 'Project issue boards sidebar labels', :js do
click_card
(
card
)
page
.
within
(
'.labels'
)
do
click_
link
'Edit'
click_
button
'Edit'
wait_for_requests
click_link
bug
.
title
wait_for_requests
click_link
regression
.
title
wait_for_requests
find
(
'[data-testid="close-icon"]'
).
click
find
(
'.dropdown-menu-close-icon'
).
click
wait_for_requests
page
.
within
(
'.value'
)
do
expect
(
page
).
to
have_selector
(
'.gl-label-text'
,
count:
4
)
...
...
@@ -105,17 +102,15 @@ RSpec.describe 'Project issue boards sidebar labels', :js do
click_card
(
card
)
page
.
within
(
'.labels'
)
do
click_
link
'Edit'
click_
button
'Edit'
wait_for_requests
within
(
'.dropdown-menu-labels'
)
do
click_link
stretch
.
title
end
click_link
stretch
.
title
wait_for_requests
find
(
'[data-testid="close-icon"]'
).
click
find
(
'.dropdown-menu-close-icon'
).
click
wait_for_requests
page
.
within
(
'.value'
)
do
expect
(
page
).
to
have_selector
(
'.gl-label-text'
,
count:
1
)
...
...
@@ -128,7 +123,8 @@ RSpec.describe 'Project issue boards sidebar labels', :js do
expect
(
card
).
not_to
have_content
(
stretch
.
title
)
end
it
'creates project label'
do
# https://gitlab.com/gitlab-org/gitlab/-/issues/324290
xit
'creates project label'
do
click_card
(
card
)
page
.
within
(
'.labels'
)
do
...
...
@@ -146,7 +142,8 @@ RSpec.describe 'Project issue boards sidebar labels', :js do
expect
(
page
).
to
have_selector
(
'.board'
,
count:
3
)
end
it
'creates project label and list'
do
# https://gitlab.com/gitlab-org/gitlab/-/issues/324290
xit
'creates project label and list'
do
click_card
(
card
)
page
.
within
(
'.labels'
)
do
...
...
spec/features/boards/sidebar_milestones_spec.rb
View file @
e37d80e2
...
...
@@ -16,8 +16,6 @@ RSpec.describe 'Project issue boards sidebar milestones', :js do
let
(
:card2
)
{
find
(
'.board:nth-child(1) .board-card:nth-of-type(2)'
)
}
before
do
stub_feature_flags
(
graphql_board_lists:
false
)
project
.
add_maintainer
(
user
)
sign_in
(
user
)
...
...
@@ -30,12 +28,12 @@ RSpec.describe 'Project issue boards sidebar milestones', :js do
it
'adds a milestone'
do
click_card
(
card1
)
page
.
within
(
'
.milestone
'
)
do
click_
link
'Edit'
page
.
within
(
'
[data-testid="sidebar-milestones"]
'
)
do
click_
button
'Edit'
wait_for_requests
click_
link
milestone
.
title
click_
button
milestone
.
title
wait_for_requests
...
...
@@ -48,12 +46,12 @@ RSpec.describe 'Project issue boards sidebar milestones', :js do
it
'removes a milestone'
do
click_card
(
card2
)
page
.
within
(
'
.milestone
'
)
do
click_
link
'Edit'
page
.
within
(
'
[data-testid="sidebar-milestones"]
'
)
do
click_
button
'Edit'
wait_for_requests
click_
link
"No milestone"
click_
button
"No milestone"
wait_for_requests
...
...
spec/features/boards/sidebar_spec.rb
View file @
e37d80e2
...
...
@@ -13,8 +13,6 @@ RSpec.describe 'Project issue boards sidebar', :js do
let
(
:card
)
{
find
(
'.board:nth-child(1)'
).
first
(
'.board-card'
)
}
before
do
stub_feature_flags
(
graphql_board_lists:
false
)
project
.
add_maintainer
(
user
)
sign_in
(
user
)
...
...
@@ -44,7 +42,7 @@ RSpec.describe 'Project issue boards sidebar', :js do
expect
(
page
).
to
have_selector
(
'.issue-boards-sidebar'
)
find
(
'.gutter-toggle'
).
click
find
(
"[data-testid='sidebar-drawer'] .gl-drawer-close-button"
).
click
expect
(
page
).
not_to
have_selector
(
'.issue-boards-sidebar'
)
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