]> BookStack Code Mirror - bookstack/blobdiff - tests/Entity/PageRevisionTest.php
Added language list favourites sorting, updated styles
[bookstack] / tests / Entity / PageRevisionTest.php
index ce203ea36d65a1805e13b4d106b2dc7dd5849d32..cc49002492cdbafd44128e905b5676de54c3e8b7 100644 (file)
@@ -211,11 +211,11 @@ class PageRevisionTest extends TestCase
         $this->asAdmin()->put($page->getUrl(), ['name' => 'Updated page', 'html' => 'new page html']);
 
         $resp = $this->get($page->refresh()->getUrl('/revisions'));
-        $resp->assertElementContains('td', '(WYSIWYG)');
-        $resp->assertElementNotContains('td', '(Markdown)');
+        $this->withHtml($resp)->assertElementContains('td', '(WYSIWYG)');
+        $this->withHtml($resp)->assertElementNotContains('td', '(Markdown)');
 
         $this->asAdmin()->put($page->getUrl(), ['name' => 'Updated page', 'markdown' => '# Some markdown content']);
         $resp = $this->get($page->refresh()->getUrl('/revisions'));
-        $resp->assertElementContains('td', '(Markdown)');
+        $this->withHtml($resp)->assertElementContains('td', '(Markdown)');
     }
 }