test: Check that window title is translated

This is actually kind of surprising: We never call cockpit.translate()
anywhere.
This commit is contained in:
Martin Pitt 2022-07-20 15:57:07 +02:00 committed by Martin Pitt
parent 109fa37309
commit 652b06d900

View file

@ -44,6 +44,8 @@ class TestApplication(testlib.MachineCase):
b.wait_visible("#content") b.wait_visible("#content")
# menu label (from manifest) should be translated # menu label (from manifest) should be translated
b.wait_text("#host-apps a[href='/starter-kit']", "Bausatz") b.wait_text("#host-apps a[href='/starter-kit']", "Bausatz")
# window title should be translated; this is not considered as "visible"
self.assertIn("Bausatz", b.call_js_func("ph_text", "head title"))
b.go("/starter-kit") b.go("/starter-kit")
b.enter_page("/starter-kit") b.enter_page("/starter-kit")