0
0
Fork 0
mirror of https://github.com/BookStackApp/BookStack.git synced 2025-05-04 16:20:26 +00:00

Updated tests to use ssddanbrown/asserthtml package

Closes 
This commit is contained in:
Dan Brown 2022-07-23 15:10:18 +01:00
parent cf73e5f2c6
commit 72c8b138e1
No known key found for this signature in database
GPG key ID: 46D9F943C24A2EF9
48 changed files with 869 additions and 1014 deletions

View file

@ -3,6 +3,7 @@
namespace Tests;
use BookStack\Auth\Access\SocialAuthService;
use Illuminate\Testing\TestResponse;
class DebugViewTest extends TestCase
{
@ -25,8 +26,8 @@ class DebugViewTest extends TestCase
// BookStack version
$resp->assertSeeText('BookStack Version: ' . trim(file_get_contents(base_path('version'))));
// Dynamic help links
$resp->assertElementExists('a[href*="q=' . urlencode('BookStack An error occurred during testing') . '"]');
$resp->assertElementExists('a[href*="?q=is%3Aissue+' . urlencode('An error occurred during testing') . '"]');
$this->withHtml($resp)->assertElementExists('a[href*="q=' . urlencode('BookStack An error occurred during testing') . '"]');
$this->withHtml($resp)->assertElementExists('a[href*="?q=is%3Aissue+' . urlencode('An error occurred during testing') . '"]');
}
public function test_debug_view_only_shows_when_debug_mode_is_enabled()