Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStan Hu <stanhu@gmail.com>2016-03-18 02:25:21 +0300
committerStan Hu <stanhu@gmail.com>2016-03-18 03:34:15 +0300
commit0901d5172429630c8d1ea6d8e91be71a2e690043 (patch)
treef78a89a3e303e5cf85124ca6148d16366b23d34d /features/steps
parentabaf7ed2e58121cc44b39a779d02fd7da4541028 (diff)
Improve award emoji test reliability by checking that the emoji is displayed
before the search field is focused
Diffstat (limited to 'features/steps')
-rw-r--r--features/steps/project/issues/award_emoji.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/features/steps/project/issues/award_emoji.rb b/features/steps/project/issues/award_emoji.rb
index ce2554bc80d..c5d45709b44 100644
--- a/features/steps/project/issues/award_emoji.rb
+++ b/features/steps/project/issues/award_emoji.rb
@@ -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')