summaryrefslogtreecommitdiff
path: root/features
diff options
context:
space:
mode:
authorValery Sizov <vsv2711@gmail.com>2015-12-25 14:10:55 +0200
committerValery Sizov <vsv2711@gmail.com>2015-12-25 14:11:19 +0200
commit5605e1591401796c19c91967976c98ad1ae32015 (patch)
treea3b1e957c5839b4ed86478554052f280ce27eebc /features
parent195dc3a7461468b060b9a9c6860aca37cebc9d8d (diff)
downloadgitlab-ce-5605e1591401796c19c91967976c98ad1ae32015.tar.gz
fix spinach
Diffstat (limited to 'features')
-rw-r--r--features/steps/project/issues/award_emoji.rb8
1 files changed, 5 insertions, 3 deletions
diff --git a/features/steps/project/issues/award_emoji.rb b/features/steps/project/issues/award_emoji.rb
index 12cf8860ec6..1404f34cfe0 100644
--- a/features/steps/project/issues/award_emoji.rb
+++ b/features/steps/project/issues/award_emoji.rb
@@ -15,15 +15,17 @@ class Spinach::Features::AwardEmoji < Spinach::FeatureSteps
end
step 'I click to emoji in the picker' do
- page.within '.emoji-menu' do
+ page.within '.emoji-menu-content' do
page.first('.emoji-icon').click
end
end
step 'I can remove it by clicking to icon' do
page.within '.awards' do
- page.first('.award').click
- expect(page).to_not have_selector '.award'
+ expect do
+ page.find('.award.active').click
+ sleep 0.1
+ end.to change{ page.all(".award").size }.from(3).to(2)
end
end