BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gitlab-ce
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
gitlab-ce
Commits
5a04fc90
Commit
5a04fc90
authored
Jan 29, 2016
by
Phil Hughes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added tests to emoji search field focus
parent
1b978727
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
0 deletions
+7
-0
award_emoji.feature
features/project/issues/award_emoji.feature
+3
-0
award_emoji.rb
features/steps/project/issues/award_emoji.rb
+4
-0
No files found.
features/project/issues/award_emoji.feature
View file @
5a04fc90
...
...
@@ -9,6 +9,7 @@ Feature: Award Emoji
@javascript
Scenario
:
I
add and remove 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
I have award added
And
I can remove it by clicking to icon
...
...
@@ -16,11 +17,13 @@ Feature: Award Emoji
@javascript
Scenario
:
I
can see the list of emoji categories
Given
I click to emoji-picker
Then
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
And
I search
"hand"
Then
I see search result for
"hand"
...
...
features/steps/project/issues/award_emoji.rb
View file @
5a04fc90
...
...
@@ -66,4 +66,8 @@ class Spinach::Features::AwardEmoji < Spinach::FeatureSteps
expect
(
page
).
to
have_selector
'[data-emoji="raised_hand"]'
end
end
step
'The search field is focused'
do
page
.
evaluate_script
(
"document.activeElement.id"
).
should
eq
"emoji_search"
end
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