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
ce26124e
Commit
ce26124e
authored
Sep 20, 2021
by
Florie Guibert
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Open sidebar after user creates a new item in boards
Review feedback
parent
a8304104
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
28 additions
and
0 deletions
+28
-0
spec/frontend/boards/stores/actions_spec.js
spec/frontend/boards/stores/actions_spec.js
+28
-0
No files found.
spec/frontend/boards/stores/actions_spec.js
View file @
ce26124e
...
...
@@ -1326,6 +1326,34 @@ describe('setAssignees', () => {
});
describe
(
'
addListItem
'
,
()
=>
{
it
(
'
should commit ADD_BOARD_ITEM_TO_LIST and UPDATE_BOARD_ITEM mutations
'
,
()
=>
{
const
payload
=
{
list
:
mockLists
[
0
],
item
:
mockIssue
,
position
:
0
,
inProgress
:
true
,
};
testAction
(
actions
.
addListItem
,
payload
,
{},
[
{
type
:
types
.
ADD_BOARD_ITEM_TO_LIST
,
payload
:
{
listId
:
mockLists
[
0
].
id
,
itemId
:
mockIssue
.
id
,
atIndex
:
0
,
inProgress
:
true
,
},
},
{
type
:
types
.
UPDATE_BOARD_ITEM
,
payload
:
mockIssue
},
],
[],
);
});
it
(
'
should commit ADD_BOARD_ITEM_TO_LIST and UPDATE_BOARD_ITEM mutations, dispatch setActiveId action when inProgress is false
'
,
()
=>
{
const
payload
=
{
list
:
mockLists
[
0
],
...
...
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