mirror of
https://github.com/discourse/discourse.git
synced 2025-05-30 07:11:34 +08:00
DEV: Drop experimental enable_diffhtml_preview
setting (#31306)
This was intended to provide a better UX for interactive elements in the composer preview. However, the morphing strategy has irreconcilable conflicts with our `decorateCooked` API, and so we have been unable to enable this by default. Going forward, we're focussing efforts on the WYSIWYG composer to provide this kind of smooth UX, so we're dropping the `enable_diffhtml_preview` approach.
This commit is contained in:
@ -137,26 +137,6 @@ describe "Uploading files in the composer", type: :system do
|
||||
expect(composer).to have_no_in_progress_uploads
|
||||
expect(composer.preview).to have_css(".onebox-placeholder-container")
|
||||
end
|
||||
|
||||
it "shows video player in composer" do
|
||||
SiteSetting.enable_diffhtml_preview = true
|
||||
|
||||
visit "/new-topic"
|
||||
expect(composer).to be_opened
|
||||
topic.fill_in_composer_title("Video upload test")
|
||||
|
||||
file_path_1 = file_from_fixtures("small.mp4", "media").path
|
||||
attach_file(file_path_1) { composer.click_toolbar_button("upload") }
|
||||
|
||||
expect(composer).to have_no_in_progress_uploads
|
||||
expect(composer.preview).to have_css(".video-container video")
|
||||
|
||||
expect(page).to have_css(
|
||||
".video-container video source[src]",
|
||||
visible: false,
|
||||
wait: Capybara.default_max_wait_time,
|
||||
)
|
||||
end
|
||||
end
|
||||
|
||||
context "when multiple images are uploaded" do
|
||||
|
Reference in New Issue
Block a user