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:
parent
8862b2b497
commit
65bf109fad
1 changed files with 3 additions and 1 deletions
|
|
@ -51,7 +51,9 @@ class TestApplication(testlib.MachineCase):
|
||||||
b.reload(ignore_cache=True)
|
b.reload(ignore_cache=True)
|
||||||
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")
|
# 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.go("/starter-kit")
|
||||||
b.enter_page("/starter-kit")
|
b.enter_page("/starter-kit")
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue