mirror of
https://github.com/Universal-Omega/PortableInfobox.git
synced 2024-11-15 20:09:44 +00:00
XW-1300 | use portable-infobox-hero-image component in tests
This commit is contained in:
parent
111a15dce4
commit
81ca93b542
|
@ -726,7 +726,7 @@ class PortableInfoboxRenderServiceTest extends WikiaBaseTest {
|
|||
],
|
||||
'output' => '<aside class="portable-infobox pi-background">
|
||||
<div class="pi-item pi-hero">
|
||||
<figure class="article-media-thumbnail" data-component="article-media-thumbnail" data-attrs="{"itemContext":"portable-infobox","ref":1}">
|
||||
<figure data-component="portable-infobox-hero-image" data-attrs="{"itemContext":"portable-infobox","ref":1}">
|
||||
<a href="http://image.jpg">
|
||||
<img class="article-media-placeholder" src="data:image/svg+xml;charset=utf-8,%3Csvg xmlns%3D\'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg\' viewBox%3D\'0 0 400 200\'%2F%3E" alt="" width="400" height="200"/>
|
||||
<noscript>
|
||||
|
@ -784,7 +784,7 @@ class PortableInfoboxRenderServiceTest extends WikiaBaseTest {
|
|||
<hgroup class="pi-hero-title-wrapper pi-item-spacing">
|
||||
<h2 class="pi-hero-title">Test <a href="example.com">Title</a></h2>
|
||||
</hgroup>
|
||||
<figure class="article-media-thumbnail" data-component="article-media-thumbnail" data-attrs="{"itemContext":"portable-infobox","ref":44}">
|
||||
<figure data-component="portable-infobox-hero-image" data-attrs="{"itemContext":"portable-infobox","ref":44}">
|
||||
<a href="http://image.jpg">
|
||||
<img class="article-media-placeholder" src="data:image/svg+xml;charset=utf-8,%3Csvg xmlns%3D\'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg\' viewBox%3D\'0 0 400 200\'%2F%3E" alt="" width="400" height="200"/>
|
||||
<noscript>
|
||||
|
|
Loading…
Reference in a new issue