Commit 4be354e2 authored by Jérome Perrin's avatar Jérome Perrin

Test XHTML: Assert that the module *translated* title is in the page

because in projects we sometimes use english translations to display a
different name to the user.
parent c9d40868
......@@ -386,7 +386,7 @@ class TestXHTML(ERP5TypeTestCase):
error_list = []
for document in self.portal.contentValues():
if document.portal_type.endswith(' Module'):
if document.title not in document.list(reset=1):
if document.getTranslatedTitle() not in document.list(reset=1):
error_list.append(document.id)
self.assertEqual([], error_list)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment