Skip to content
Snippets Groups Projects
Commit 2d73abab authored by Patrick Barroca's avatar Patrick Barroca :grin:
Browse files

Merge branch 'hotline#136213_probleme_d_affichage_portail' into 'master'

hotline#136213: fix iframe closing tag

See merge request !4058
parents 7b9098f5 ba6eaa01
Branches
Tags
1 merge request!4058hotline#136213: fix iframe closing tag
Pipeline #13650 passed with stage
in 52 minutes and 47 seconds
- ticket #136213 : Affichage : correction de la fermeture de balise iframe
\ No newline at end of file
......@@ -92,7 +92,7 @@ height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
public function getPlayer($name, $url) {
return sprintf('<iframe src="%s" crossorigin=1 allowfullscreen=1 allow= "accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" class ="embed-responsive-item"/>', $url);
return sprintf('<iframe src="%s" crossorigin=1 allowfullscreen=1 allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" class="embed-responsive-item"> </iframe>', $url);
}
......
......@@ -698,6 +698,12 @@ class AuteurPageNoticeAjaxRenderYoutubeChannelTest extends AuthorPageTestCase {
public function playlist441TitleShouldBePresent() {
$this->assertXPathContentContains('//h3', 'David Guetta Playlist 441');
}
/** @test */
public function iframesShouldBeExplicitlyClosed() {
$this->assertXPathCount('//iframe[child::text()=" "]', 3);
}
}
......@@ -738,7 +744,6 @@ class AuteurPageNoticeAjaxRenderYoutubeChannelTarteAuCitronTest extends AuthorPa
/** @test */
public function numberOfIframesShouldBeThree() {
$this->assertXPathCount('//div[@class="youtube_player"]', 3);
}
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment