summaryrefslogtreecommitdiff
path: root/spec/features/issues/award_spec.rb
diff options
context:
space:
mode:
authorPhil Hughes <me@iamphill.com>2016-04-01 18:18:45 +0100
committerFatih Acet <acetfatih@gmail.com>2016-05-19 14:13:16 -0500
commit783a5ae98c17ffd1d93e2e5390e543e5f2f92bcc (patch)
treebb007cb5589ebfb54de34b38a38cbdcd764d3dda /spec/features/issues/award_spec.rb
parentbf96c30510c0efcd56338f60c902b5b64cf98bad (diff)
downloadgitlab-ce-783a5ae98c17ffd1d93e2e5390e543e5f2f92bcc.tar.gz
Adds the emoji menu to the body and then re-positions it depending on which button clicked
This spots bugs where the menu could be in a div that has overflow hidden on ie. diff comments
Diffstat (limited to 'spec/features/issues/award_spec.rb')
-rw-r--r--spec/features/issues/award_spec.rb13
1 files changed, 6 insertions, 7 deletions
diff --git a/spec/features/issues/award_spec.rb b/spec/features/issues/award_spec.rb
index 46e1ed5d8cd..209d1cca176 100644
--- a/spec/features/issues/award_spec.rb
+++ b/spec/features/issues/award_spec.rb
@@ -46,8 +46,9 @@ feature 'Issue awards', js: true, feature: true do
page.within('.note') do
find('.js-add-award').click
- expect(page).to have_selector('.emoji-menu', count: 1)
end
+
+ expect(page).to have_selector('.emoji-menu', count: 1)
end
it 'should add award to note' do
@@ -117,16 +118,14 @@ feature 'Issue awards', js: true, feature: true do
def show_note_award_menu
page.within('.note') do
find('.js-add-award').click
- expect(page).to have_selector('.emoji-menu')
end
+ expect(page).to have_selector('.emoji-menu')
end
def award_on_note(index = 1)
- page.within('.note') do
- page.within('.emoji-menu') do
- buttons = all('.js-emoji-btn')
- buttons[index].click
- end
+ page.within('.emoji-menu') do
+ buttons = all('.js-emoji-btn')
+ buttons[index].click
end
end