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
0901d517
Commit
0901d517
authored
Mar 17, 2016
by
Stan Hu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Improve award emoji test reliability by checking that the emoji is displayed
before the search field is focused
parent
abaf7ed2
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
4 deletions
+11
-4
features/project/issues/award_emoji.feature
features/project/issues/award_emoji.feature
+7
-4
features/steps/project/issues/award_emoji.rb
features/steps/project/issues/award_emoji.rb
+4
-0
No files found.
features/project/issues/award_emoji.feature
View file @
0901d517
...
...
@@ -18,21 +18,24 @@ Feature: Award Emoji
@javascript
Scenario
:
I
add and remove custom award in the issue
Given
I click to emoji-picker
Then
The search field is focused
And
I click to emoji in the picker
Then
The emoji menu is visible
And
The search field is focused
Then
I click to emoji in the picker
Then
I have award added
And
I can remove it by clicking to icon
@javascript
Scenario
:
I
can see the list of emoji categories
Given
I click to emoji-picker
Then
The search field is focused
Then
The emoji menu is visible
And
The search field is focused
Then
I can see the activity and food categories
@javascript
Scenario
:
I
can search emoji
Given
I click to emoji-picker
Then
The search field is focused
Then
The emoji menu is visible
And
The search field is focused
And
I search
"hand"
Then
I see search result for
"hand"
...
...
features/steps/project/issues/award_emoji.rb
View file @
0901d517
...
...
@@ -92,6 +92,10 @@ class Spinach::Features::AwardEmoji < Spinach::FeatureSteps
end
end
step
'The emoji menu is visible'
do
page
.
find
(
".emoji-menu.is-visible"
)
end
step
'The search field is focused'
do
expect
(
page
).
to
have_selector
(
'#emoji_search'
)
expect
(
page
.
evaluate_script
(
'document.activeElement.id'
)).
to
eq
(
'emoji_search'
)
...
...
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