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

Converted the page editor from vue to component

This commit is contained in:
Dan Brown
2020-07-05 21:18:17 +01:00
parent 9d6f574494
commit 3bfd26bf86
11 changed files with 262 additions and 220 deletions

View File

@@ -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,
]);
}
}