diff --git a/tests/test_admin.py b/tests/test_admin.py index d8367be44..c90133d9f 100644 --- a/tests/test_admin.py +++ b/tests/test_admin.py @@ -2150,9 +2150,9 @@ def test_menuitem_changelist_delete_url_link_opens_in_sideframe(self): url_markup = self.menuitem_modeladmin._get_delete_link(child, request) if CMS_41: - # The url link should keep the sideframe close - self.assertNotIn("js-keep-sideframe", url_markup) - self.assertIn("js-close-sideframe", url_markup) + # The url link should keep the sideframe open by default + self.assertIn("js-keep-sideframe", url_markup) + self.assertNotIn("js-close-sideframe", url_markup) else: # The url link should keep the sideframe open self.assertIn("js-versioning-keep-sideframe", url_markup)