Merge pull request #1756 from consul/feature/social_metatags_images

Allow social image tags to be overwritten
This commit is contained in:
BertoCQ
2017-07-18 13:37:45 +02:00
committed by GitHub
11 changed files with 13 additions and 10 deletions

View File

@@ -46,17 +46,17 @@ feature "Admin custom images" do
click_link "Custom Images"
end
within("tr.social-media-icon") do
attach_file "site_customization_image_image", "spec/fixtures/files/social-media-icon.png"
within("tr.social_media_icon") do
attach_file "site_customization_image_image", "spec/fixtures/files/social_media_icon.png"
click_button "Update"
end
expect(page).to have_css("img[src*='social-media-icon.png']")
expect(page).to have_css("img[src*='social_media_icon.png']")
within("tr.social-media-icon") do
within("tr.social_media_icon") do
click_link "Delete"
end
expect(page).to_not have_css("img[src*='social-media-icon.png']")
expect(page).to_not have_css("img[src*='social_media_icon.png']")
end
end