X-Git-Url: http://source.bookstackapp.com/bookstack/blobdiff_plain/85f59b5275da9cc27e8823b22c6a5def4ade1311..refs/pull/3593/head:/tests/Entity/ConvertTest.php diff --git a/tests/Entity/ConvertTest.php b/tests/Entity/ConvertTest.php index 10b276a47..58f694f60 100644 --- a/tests/Entity/ConvertTest.php +++ b/tests/Entity/ConvertTest.php @@ -12,7 +12,6 @@ use Tests\TestCase; class ConvertTest extends TestCase { - public function test_chapter_edit_view_shows_convert_option() { /** @var Chapter $chapter */ @@ -21,7 +20,7 @@ class ConvertTest extends TestCase $resp = $this->asEditor()->get($chapter->getUrl('/edit')); $resp->assertSee('Convert to Book'); $resp->assertSee('Convert Chapter'); - $resp->assertElementExists('form[action$="/convert-to-book"] button'); + $this->withHtml($resp)->assertElementExists('form[action$="/convert-to-book"] button'); } public function test_convert_chapter_to_book() @@ -78,7 +77,7 @@ class ConvertTest extends TestCase $resp->assertSee('Convert to Shelf'); $resp->assertSee('Convert Book'); $resp->assertSee('Note that permissions on shelves do not auto-cascade to content'); - $resp->assertElementExists('form[action$="/convert-to-shelf"] button'); + $this->withHtml($resp)->assertElementExists('form[action$="/convert-to-shelf"] button'); } public function test_book_convert_to_shelf() @@ -143,5 +142,4 @@ class ConvertTest extends TestCase $this->assertNotPermissionError($resp); $resp->assertRedirect(); } - -} \ No newline at end of file +}