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
49941a92
Commit
49941a92
authored
Jul 03, 2020
by
Samantha Ming
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Address reviewer's comments
parent
2f301913
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
0 deletions
+18
-0
spec/frontend/notes/components/note_form_spec.js
spec/frontend/notes/components/note_form_spec.js
+18
-0
No files found.
spec/frontend/notes/components/note_form_spec.js
View file @
49941a92
...
...
@@ -245,6 +245,24 @@ describe('issue_note_form component', () => {
expect
(
updateDraft
).
toHaveBeenCalledWith
(
dummyAutosaveKey
,
dummyContent
);
});
it
(
'
does not save draft when ctrl+enter is pressed
'
,
()
=>
{
const
options
=
{
noteBody
:
''
,
autosaveKey
:
dummyAutosaveKey
,
};
props
=
{
...
props
,
...
options
};
wrapper
=
createComponentWrapper
();
wrapper
.
setData
({
isSubmittingWithKeydown
:
true
});
const
textarea
=
wrapper
.
find
(
'
textarea
'
);
textarea
.
setValue
(
'
some content
'
);
textarea
.
trigger
(
'
keydown.enter
'
,
{
metaKey
:
true
});
expect
(
updateDraft
).
not
.
toHaveBeenCalled
();
});
});
describe
(
'
with batch comments
'
,
()
=>
{
...
...
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