1
0
mirror of https://github.com/BookStackApp/BookStack.git synced 2026-01-03 23:42:28 +03:00

Input WYSIWYG: Updated tests, Added simple html limiting

This commit is contained in:
Dan Brown
2023-12-19 15:10:29 +00:00
parent 077b9709d4
commit 7fd6d5b2cc
9 changed files with 134 additions and 36 deletions

View File

@@ -23,12 +23,12 @@ class ChapterTest extends TestCase
$resp = $this->get($book->getUrl('/create-chapter'));
$this->withHtml($resp)->assertElementContains('form[action="' . $book->getUrl('/create-chapter') . '"][method="POST"]', 'Save Chapter');
$resp = $this->post($book->getUrl('/create-chapter'), $chapter->only('name', 'description'));
$resp = $this->post($book->getUrl('/create-chapter'), $chapter->only('name', 'description_html'));
$resp->assertRedirect($book->getUrl('/chapter/my-first-chapter'));
$resp = $this->get($book->getUrl('/chapter/my-first-chapter'));
$resp->assertSee($chapter->name);
$resp->assertSee($chapter->description);
$resp->assertSee($chapter->description_html, false);
}
public function test_delete()