mirror of
https://github.com/BookStackApp/BookStack.git
synced 2025-12-23 23:02:08 +03:00
Converted the page editor from vue to component
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
<?php namespace Tests\Entity;
|
||||
|
||||
use BookStack\Entities\Page;
|
||||
use BookStack\Entities\Repos\PageRepo;
|
||||
use Tests\BrowserKitTest;
|
||||
|
||||
@@ -101,4 +102,15 @@ class PageDraftTest extends BrowserKitTest
|
||||
->dontSeeInElement('.book-contents', 'New Page');
|
||||
}
|
||||
|
||||
public function test_page_html_in_ajax_fetch_response()
|
||||
{
|
||||
$this->asAdmin();
|
||||
$page = Page::query()->first();
|
||||
|
||||
$this->getJson('/ajax/page/' . $page->id);
|
||||
$this->seeJson([
|
||||
'html' => $page->html,
|
||||
]);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user