diff options
author | Fatih Acet <acetfatih@gmail.com> | 2017-07-20 17:42:37 +0300 |
---|---|---|
committer | Fatih Acet <acetfatih@gmail.com> | 2017-07-21 22:35:26 +0300 |
commit | a22665931d85f3980f9b0f0e5301142a0803087d (patch) | |
tree | b5bd965e0c6f331b7fc8b30fc75499bbf21305c0 /spec | |
parent | 0555d6918ccb92faf7a62927820efdac3576f1f3 (diff) |
IssueNotesRefactor: Fix award emoji specs.
Diffstat (limited to 'spec')
-rw-r--r-- | spec/features/issues/award_emoji_spec.rb | 4 | ||||
-rw-r--r-- | spec/support/quick_actions_helpers.rb | 1 |
2 files changed, 3 insertions, 2 deletions
diff --git a/spec/features/issues/award_emoji_spec.rb b/spec/features/issues/award_emoji_spec.rb index 823c779e0d9..f6368167665 100644 --- a/spec/features/issues/award_emoji_spec.rb +++ b/spec/features/issues/award_emoji_spec.rb @@ -70,13 +70,13 @@ describe 'Awards Emoji', feature: true do it 'toggles the smiley emoji on a note', js: true do toggle_smiley_emoji(true) - within('.note-awards') do + within('.note-body') do expect(find(emoji_counter)).to have_text("1") end toggle_smiley_emoji(false) - within('.note-awards') do + within('.note-body') do expect(page).not_to have_selector(emoji_counter) end end diff --git a/spec/support/quick_actions_helpers.rb b/spec/support/quick_actions_helpers.rb index fc8243429f5..87d1e705fc8 100644 --- a/spec/support/quick_actions_helpers.rb +++ b/spec/support/quick_actions_helpers.rb @@ -4,6 +4,7 @@ module QuickActionsHelpers page.within('.js-main-target-form') do fill_in 'note-body', with: text find('.js-comment-submit-button').trigger('click') + wait_for_requests end end end |