Merge pull request #1756 from consul/feature/social_metatags_images
Allow social image tags to be overwritten
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user