summaryrefslogtreecommitdiff
path: root/features
diff options
context:
space:
mode:
authorEric Eastwood <contact@ericeastwood.com>2017-04-07 00:28:30 -0500
committerEric Eastwood <contact@ericeastwood.com>2017-04-13 02:22:57 -0500
commit0370c7c8389c43138b11c3c5167993d5b025933a (patch)
treebf1dcc51b628ac6cad880dea55821e4f922e58fd /features
parent75af8d9232839aad78c23874ac36894d6a0730f5 (diff)
downloadgitlab-ce-0370c7c8389c43138b11c3c5167993d5b025933a.tar.gz
Clear emoji search in awards menu after picking emoji27655-clear-emoji-search-after-selection
Fixes https://gitlab.com/gitlab-org/gitlab-ce/issues/27655
Diffstat (limited to 'features')
-rw-r--r--features/steps/project/issues/award_emoji.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/features/steps/project/issues/award_emoji.rb b/features/steps/project/issues/award_emoji.rb
index a4cfc1fb8c8..dfd0bc13305 100644
--- a/features/steps/project/issues/award_emoji.rb
+++ b/features/steps/project/issues/award_emoji.rb
@@ -87,7 +87,7 @@ class Spinach::Features::AwardEmoji < Spinach::FeatureSteps
end
step 'I search "hand"' do
- fill_in 'emoji_search', with: 'hand'
+ fill_in 'emoji-menu-search', with: 'hand'
end
step 'I see search result for "hand"' do
@@ -101,7 +101,7 @@ class Spinach::Features::AwardEmoji < Spinach::FeatureSteps
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')
+ expect(page).to have_selector('.js-emoji-menu-search')
+ expect(page.evaluate_script("document.activeElement.classList.contains('js-emoji-menu-search')")).to eq(true)
end
end