mirror of
https://github.com/wagtail/wagtail.git
synced 2024-11-28 08:48:04 +01:00
test for #1014
This commit is contained in:
parent
6040b3ada4
commit
c6865e6f5e
@ -360,6 +360,10 @@ class TestPageChooserPanel(TestCase):
|
||||
def test_render_as_field(self):
|
||||
result = self.page_chooser_panel.render_as_field()
|
||||
self.assertIn('<p class="help">help text</p>', result)
|
||||
self.assertIn('<span class="title">Christmas</span>', result)
|
||||
self.assertIn(
|
||||
'<a href="/admin/pages/%d/edit/" class="edit-link button button-small button-secondary" target="_blank">Edit this page</a>' % self.christmas_page.id,
|
||||
result)
|
||||
|
||||
def test_render_error(self):
|
||||
form = self.PageChooserForm({'page': ''}, instance=self.test_instance)
|
||||
|
Loading…
Reference in New Issue
Block a user