Commit 37b5b7a5 authored by Alfredo Sumaran's avatar Alfredo Sumaran

Merge branch 'fix-up-emoji-tests' into 'master'

Fix up emoji tests that should be failing

See merge request !10231
parents 34870e16 f7d69a74
......@@ -45,7 +45,7 @@ class Spinach::Features::AwardEmoji < Spinach::FeatureSteps
end
step 'I have new comment with emoji added' do
expect(page).to have_selector ".emoji[title=':smile:']"
expect(page).to have_selector 'gl-emoji[data-name="smile"]'
end
step 'I have award added' do
......
......@@ -196,7 +196,7 @@ module SharedDiffNote
step 'The diff comment preview tab should display rendered Markdown' do
page.within(diff_file_selector) do
find('.js-md-preview-button').click
expect(find('.js-md-preview')).to have_css('img.emoji', visible: true)
expect(find('.js-md-preview')).to have_css('gl-emoji', visible: true)
end
end
......@@ -210,7 +210,7 @@ module SharedDiffNote
step 'I should see a diff comment with an emoji image' do
page.within("#{diff_file_selector} .note") do
expect(page).to have_xpath("//img[@alt=':smile:']")
expect(page).to have_xpath("//gl-emoji[@data-name='smile']")
end
end
......
......@@ -40,7 +40,7 @@ module SharedMarkdown
step 'The Markdown preview tab should display rendered Markdown' do
page.within('.gfm-form') do
find('.js-md-preview-button').click
expect(find('.js-md-preview')).to have_css('img.emoji', visible: true)
expect(find('.js-md-preview')).to have_css('gl-emoji', visible: true)
end
end
......
......@@ -95,7 +95,7 @@ module SharedNote
step 'The comment preview tab should be display rendered Markdown' do
page.within(".js-main-target-form") do
find('.js-md-preview-button').click
expect(find('.js-md-preview')).to have_css('img.emoji', visible: true)
expect(find('.js-md-preview')).to have_css('gl-emoji', visible: true)
end
end
......
......@@ -45,7 +45,7 @@ feature 'Admin Broadcast Messages', feature: true do
page.within('.broadcast-message-preview') do
expect(page).to have_selector('strong', text: 'Markdown')
expect(page).to have_selector('img.emoji')
expect(page).to have_selector('gl-emoji[data-name="tada"]')
end
end
end
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment