def METHOD_NAME(self):
    self.login()
    response = self.client.get(
        reverse("wagtailadmin_pages:view_draft", args=(self.child_page.id,))
    )
    # Should show edit link in the userbar
    # https://github.com/wagtail/wagtail/issues/10002
    self.assertContains(response, "Edit this page")
    self.assertContains(
        response, reverse("wagtailadmin_pages:edit", args=(self.child_page.id,))
    )