1
0
mirror of https://github.com/BookStackApp/BookStack.git synced 2025-07-30 04:23:11 +03:00

Lexical: Added about button/view

Re-used existing route and moved tinymce help to its own different
route. Added test to cover.
Added new external-content block to support in editor UI.
This commit is contained in:
Dan Brown
2024-12-17 22:40:28 +00:00
parent f4005a139b
commit ebe2ca7faf
14 changed files with 388 additions and 170 deletions

View File

@ -6,9 +6,9 @@ use Tests\TestCase;
class HelpTest extends TestCase
{
public function test_wysiwyg_help_shows_tiny_and_tiny_license_link()
public function test_tinymce_help_shows_tiny_and_tiny_license_link()
{
$resp = $this->get('/help/wysiwyg');
$resp = $this->get('/help/tinymce');
$resp->assertOk();
$this->withHtml($resp)->assertElementExists('a[href="https://www.tiny.cloud/"]');
$this->withHtml($resp)->assertElementExists('a[href="' . url('/libs/tinymce/license.txt') . '"]');
@ -22,4 +22,12 @@ class HelpTest extends TestCase
$contents = file_get_contents($expectedPath);
$this->assertStringContainsString('MIT License', $contents);
}
public function test_wysiwyg_help_shows_lexical_and_licenses_link()
{
$resp = $this->get('/help/wysiwyg');
$resp->assertOk();
$this->withHtml($resp)->assertElementExists('a[href="https://lexical.dev/"]');
$this->withHtml($resp)->assertElementExists('a[href="' . url('/licenses') . '"]');
}
}