test: Add quirk for cockpit 265 shell menu translation regression

[1] regressed the translations of menu labels for external projects.
This will get fixed in the next version [2]. Adjust the tests to not
break with Cockpit version == 265.

[1] af5678b0be
[2] https://github.com/cockpit-project/cockpit/pull/17145
This commit is contained in:
Martin Pitt 2022-03-17 10:31:12 +01:00 committed by Martin Pitt
parent 8862b2b497
commit 65bf109fad

View file

@ -51,7 +51,9 @@ class TestApplication(testlib.MachineCase):
b.reload(ignore_cache=True)
b.wait_visible("#content")
# menu label (from manifest) should be translated
b.wait_text("#host-apps a[href='/starter-kit']", "Bausatz")
# HACK: This regressed in cockpit 265, see https://github.com/cockpit-project/cockpit/pull/17145
if self.system_before(265) or not self.system_before(266):
b.wait_text("#host-apps a[href='/starter-kit']", "Bausatz")
b.go("/starter-kit")
b.enter_page("/starter-kit")