mirror of
https://github.com/discourse/discourse.git
synced 2025-02-22 00:03:26 +08:00
DEV: more accurate spec for email iframe handling
This commit is contained in:
parent
8698a10920
commit
230e111e87
@ -108,7 +108,7 @@ describe Email::Styles do
|
|||||||
end
|
end
|
||||||
|
|
||||||
it "prefers data-original-href attribute to get iframe link" do
|
it "prefers data-original-href attribute to get iframe link" do
|
||||||
original_url = "https://vimeo.com/329875646"
|
original_url = "https://vimeo.com/329875646/85f1546a42"
|
||||||
iframe_url = "https://player.vimeo.com/video/329875646"
|
iframe_url = "https://player.vimeo.com/video/329875646"
|
||||||
frag = html_fragment("<iframe src=\"#{iframe_url}\" data-original-href=\"#{original_url}\"></iframe>")
|
frag = html_fragment("<iframe src=\"#{iframe_url}\" data-original-href=\"#{original_url}\"></iframe>")
|
||||||
expect(frag.at('iframe')).to be_blank
|
expect(frag.at('iframe')).to be_blank
|
||||||
|
Loading…
x
Reference in New Issue
Block a user