diff --git a/library/digital_resources/StoryPlayR/tests/StoryPlayRTest.php b/library/digital_resources/StoryPlayR/tests/StoryPlayRTest.php
index 4d87e3041104bb2c0271bea25a6a97c993a2cb43..528910038e3198ab35aca0f4814496abcb14bfc2 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');
   }