diff options
Diffstat (limited to 'spec/features/issues/filtered_search/dropdown_emoji_spec.rb')
-rw-r--r-- | spec/features/issues/filtered_search/dropdown_emoji_spec.rb | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/spec/features/issues/filtered_search/dropdown_emoji_spec.rb b/spec/features/issues/filtered_search/dropdown_emoji_spec.rb index f5400e00156..c42fcd92a36 100644 --- a/spec/features/issues/filtered_search/dropdown_emoji_spec.rb +++ b/spec/features/issues/filtered_search/dropdown_emoji_spec.rb @@ -92,7 +92,7 @@ describe 'Dropdown emoji', :js do it 'shows the most populated emoji at top of dropdown' do send_keys_to_filtered_search('my-reaction:') - expect(first('#js-dropdown-my-reaction li')).to have_content(award_emoji_star.name) + expect(first('#js-dropdown-my-reaction .filter-dropdown li')).to have_content(award_emoji_star.name) end end @@ -122,18 +122,18 @@ describe 'Dropdown emoji', :js do end it 'selects `None`' do - find('#js-dropdown-assignee .filter-dropdown-item', text: 'None').click + find('#js-dropdown-my-reaction .filter-dropdown-item', text: 'None').click expect(page).to have_css(js_dropdown_emoji, visible: false) - expect_tokens([emoji_token('none')]) + expect_tokens([reaction_token('none', false)]) expect_filtered_search_input_empty end it 'selects `Any`' do - find('#js-dropdown-assignee .filter-dropdown-item', text: 'Any').click + find('#js-dropdown-my-reaction .filter-dropdown-item', text: 'Any').click expect(page).to have_css(js_dropdown_emoji, visible: false) - expect_tokens([emoji_token('any')]) + expect_tokens([reaction_token('any', false)]) expect_filtered_search_input_empty end @@ -143,7 +143,7 @@ describe 'Dropdown emoji', :js do wait_for_requests expect(page).to have_css(js_dropdown_emoji, visible: false) - expect_tokens([emoji_token('thumbsup')]) + expect_tokens([reaction_token('thumbsup')]) expect_filtered_search_input_empty end end |