From 57a063cdfb2d9f2d6d7029a52eb92b355b0bfd5e Mon Sep 17 00:00:00 2001
From: Dan Brown <ssddanbrown@googlemail.com>
Date: Sat, 29 May 2021 23:46:33 +0100
Subject: [PATCH] Updated nav tests to look for shortened item names

---
 tests/Entity/BookTest.php | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/tests/Entity/BookTest.php b/tests/Entity/BookTest.php
index 74b0b0e0b..e1b06431b 100644
--- a/tests/Entity/BookTest.php
+++ b/tests/Entity/BookTest.php
@@ -39,11 +39,11 @@ class BookTest extends TestCase
 
         $resp = $this->asEditor()->get($chapter->getUrl());
         $resp->assertElementContains('#sibling-navigation', 'Next');
-        $resp->assertElementContains('#sibling-navigation', $chapter->pages[0]->name);
+        $resp->assertElementContains('#sibling-navigation', substr($chapter->pages[0]->name, 0, 20));
 
         $resp = $this->get($chapter->pages[0]->getUrl());
-        $resp->assertElementContains('#sibling-navigation', $chapter->pages[1]->name);
+        $resp->assertElementContains('#sibling-navigation', substr($chapter->pages[1]->name, 0, 20));
         $resp->assertElementContains('#sibling-navigation', 'Previous');
-        $resp->assertElementContains('#sibling-navigation', $chapter->name);
+        $resp->assertElementContains('#sibling-navigation', substr($chapter->name, 0, 20));
     }
 }
\ No newline at end of file