Use markdown-it-html5-embed plugin so user can embed audio and video using the markdown link syntax []() in the HTML5 way.
6 lines
215 B
Ruby
6 lines
215 B
Ruby
# frozen_string_literal: true
|
|
|
|
Then /^I should see a HTML5 (video|audio) player$/ do |type|
|
|
find(".post-content .media-embed")
|
|
find(".stream-container").should have_css(".post-content .media-embed #{type}")
|
|
end
|