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
0
Merge Requests
0
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
Léo-Paul Géneau
gitlab-ce
Commits
3647fe58
Commit
3647fe58
authored
Feb 06, 2018
by
Jared Deckard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
The emoji menu should not close when the search box is clicked
parent
ba624930
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
1 deletion
+12
-1
spec/javascripts/awards_handler_spec.js
spec/javascripts/awards_handler_spec.js
+12
-1
No files found.
spec/javascripts/awards_handler_spec.js
View file @
3647fe58
...
...
@@ -79,7 +79,7 @@ import '~/lib/utils/common_utils';
return
expect
(
$emojiMenu
.
length
).
toBe
(
1
);
});
});
return
it
(
'
should remove emoji menu when body is clicked
'
,
function
(
done
)
{
it
(
'
should remove emoji menu when body is clicked
'
,
function
(
done
)
{
$
(
'
.js-add-award
'
).
eq
(
0
).
click
();
return
lazyAssert
(
done
,
function
()
{
var
$emojiMenu
;
...
...
@@ -90,6 +90,17 @@ import '~/lib/utils/common_utils';
return
expect
(
$
(
'
.js-awards-block.current
'
).
length
).
toBe
(
0
);
});
});
it
(
'
should not remove emoji menu when search is clicked
'
,
function
(
done
)
{
$
(
'
.js-add-award
'
).
eq
(
0
).
click
();
return
lazyAssert
(
done
,
function
()
{
var
$emojiMenu
;
$emojiMenu
=
$
(
'
.emoji-menu
'
);
$
(
'
.emoji-search
'
).
click
();
expect
(
$emojiMenu
.
length
).
toBe
(
1
);
expect
(
$emojiMenu
.
hasClass
(
'
is-visible
'
)).
toBe
(
true
);
return
expect
(
$
(
'
.js-awards-block.current
'
).
length
).
toBe
(
1
);
});
});
});
describe
(
'
::addAwardToEmojiBar
'
,
function
()
{
it
(
'
should add emoji to votes block
'
,
function
()
{
...
...
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