mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
DEV: Prevent videos from preloading metadata (#23807)
Preloading just metadata is not always respected by browsers, and sometimes the whole video will be downloaded. This switches to using a placeholder image for the video and only loads the video when the play button is clicked.
This commit is contained in:
@@ -325,7 +325,9 @@ describe "Composer Form Templates", type: :system do
|
||||
)
|
||||
expect(find("#{topic_page.post_by_number_selector(1)} .cooked")).to have_css("a.attachment")
|
||||
expect(find("#{topic_page.post_by_number_selector(1)} .cooked")).to have_css("audio")
|
||||
expect(find("#{topic_page.post_by_number_selector(1)} .cooked")).to have_css("video")
|
||||
expect(find("#{topic_page.post_by_number_selector(1)} .cooked")).to have_css(
|
||||
".video-placeholder-container",
|
||||
)
|
||||
end
|
||||
|
||||
it "shows labels and descriptions when a form template is assigned to the category" do
|
||||
|
||||
Reference in New Issue
Block a user