From 6476088f8d099cd9a5075f0a1658951ee6657dae Mon Sep 17 00:00:00 2001
From: gloas <gloas@afi-sa.fr>
Date: Wed, 2 May 2018 15:31:07 +0200
Subject: [PATCH] hotline #74731 fix failures

---
 .../digital_resources/StoryPlayR/tests/StoryPlayRTest.php   | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/library/digital_resources/StoryPlayR/tests/StoryPlayRTest.php b/library/digital_resources/StoryPlayR/tests/StoryPlayRTest.php
index 4d87e304110..528910038e3 100644
--- a/library/digital_resources/StoryPlayR/tests/StoryPlayRTest.php
+++ b/library/digital_resources/StoryPlayR/tests/StoryPlayRTest.php
@@ -142,19 +142,19 @@ class StoryPlayRDashboardActivatedTest extends StoryPlayRActivatedTestCase {
 
   /** @test */
   public function testSsoValidateUrlShoudlBeDisplay() {
-    $this->assertXPathContentContains('//a', '/StoryPlayR_Plugin/auth/validate?sessionid=ST-');
+    $this->assertXPathContentContains('//pre', '/StoryPlayR_Plugin/auth/validate?sessionid=ST-');
   }
 
 
   /** @test */
   public function harvestUrlShouldContainsOpdsCatalogUrlAndProviderAndMediathequeid() {
-    $this->assertXPath('//a[@href="https://preprod.storyplayr.com/api/opds-with-links?portalProvider=bokeh&mediathequeid=123456"]');
+    $this->assertXPathContentContains('//pre', 'https://preprod.storyplayr.com/api/opds-with-links?portalProvider=bokeh');
   }
 
 
   /** @test */
   public function sourceImageShouldBeValid() {
-    $this->assertXPathContentContains('//a','Image source : https://preprod');
+    $this->assertXPathContentContains('//pre','Image source : https://preprod');
   }
 
 
-- 
GitLab