mirror of
https://github.com/BookStackApp/BookStack.git
synced 2026-01-03 23:42:28 +03:00
Updated tests to align with recent list changes
This commit is contained in:
@@ -195,12 +195,12 @@ class PageRevisionTest extends TestCase
|
||||
$this->createRevisions($page, 1, ['html' => 'new page html']);
|
||||
|
||||
$resp = $this->asAdmin()->get($page->refresh()->getUrl('/revisions'));
|
||||
$this->withHtml($resp)->assertElementContains('td', '(WYSIWYG)');
|
||||
$this->withHtml($resp)->assertElementNotContains('td', '(Markdown)');
|
||||
$this->withHtml($resp)->assertElementContains('.item-list-row > div:nth-child(2)', 'WYSIWYG)');
|
||||
$this->withHtml($resp)->assertElementNotContains('.item-list-row > div:nth-child(2)', 'Markdown)');
|
||||
|
||||
$this->createRevisions($page, 1, ['markdown' => '# Some markdown content']);
|
||||
$resp = $this->get($page->refresh()->getUrl('/revisions'));
|
||||
$this->withHtml($resp)->assertElementContains('td', '(Markdown)');
|
||||
$this->withHtml($resp)->assertElementContains('.item-list-row > div:nth-child(2)', 'Markdown)');
|
||||
}
|
||||
|
||||
public function test_revision_restore_action_only_visible_with_permission()
|
||||
|
||||
Reference in New Issue
Block a user