diff --git a/src/cone/app/tests/__init__.py b/src/cone/app/tests/__init__.py index 0be0f1d0..387cf7fe 100644 --- a/src/cone/app/tests/__init__.py +++ b/src/cone/app/tests/__init__.py @@ -58,7 +58,7 @@ def test_suite(): # pragma: no cover suite.addTest(unittest.findTestCases(test_browser_copysupport)) suite.addTest(unittest.findTestCases(test_browser_exception)) suite.addTest(unittest.findTestCases(test_browser_form)) - # suite.addTest(unittest.findTestCases(test_browser_layout)) # XXX: link with id 3 not there + suite.addTest(unittest.findTestCases(test_browser_layout)) suite.addTest(unittest.findTestCases(test_browser_login)) suite.addTest(unittest.findTestCases(test_browser_order)) # suite.addTest(unittest.findTestCases(test_browser_referencebrowser)) # XXX: extraction errors diff --git a/src/cone/app/tests/test_browser_layout.py b/src/cone/app/tests/test_browser_layout.py index b04b8304..cd1565c3 100644 --- a/src/cone/app/tests/test_browser_layout.py +++ b/src/cone/app/tests/test_browser_layout.py @@ -253,8 +253,7 @@ def test_navtree(self): self.assertTrue(res.find('ajax:action="navtree:#navtree:replace"') != -1) self.assertTrue(res.find('class="contextsensitiv nav-item mb-1 text-white"') != -1) - # Node's which are in navtree - root = get_root() + # Nodes which are in navtree root.properties.in_navtree = True root['1'] = BaseNode() root['1'].properties.in_navtree = True @@ -327,7 +326,7 @@ class InvisibleNavNode(BaseNode): with self.layer.authenticated('manager'): res = render_tile(root, request, 'navtree') self.checkOutput(""" - ...
  • + ...
  • + ...
  • + ...