mirror of
https://github.com/Hopiu/wagtail.git
synced 2026-04-27 10:04:49 +00:00
Add additional test for explorer menu item presence
This commit is contained in:
parent
c0203ce26e
commit
cb89f8e04b
1 changed files with 6 additions and 0 deletions
|
|
@ -43,6 +43,12 @@ class TestHome(TestCase, WagtailTestUtils):
|
|||
'<a href="http://www.tomroyal.com/teaandkittens/" class="icon icon-kitten" data-fluffy="yes">Kittens!</a>'
|
||||
)
|
||||
|
||||
# Check that the explorer menu item is here, with the right start page.
|
||||
self.assertContains(
|
||||
response,
|
||||
'data-explorer-start-page="1"'
|
||||
)
|
||||
|
||||
# check that is_shown is respected on menu items
|
||||
response = self.client.get(reverse('wagtailadmin_home') + '?hide-kittens=true')
|
||||
self.assertNotContains(
|
||||
|
|
|
|||
Loading…
Reference in a new issue