From 65bf109faddebef69d0348b058729cc2327b4208 Mon Sep 17 00:00:00 2001 From: Martin Pitt Date: Thu, 17 Mar 2022 10:31:12 +0100 Subject: [PATCH] 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] https://github.com/cockpit-project/cockpit/commit/af5678b0be5547 [2] https://github.com/cockpit-project/cockpit/pull/17145 --- test/check-application | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/test/check-application b/test/check-application index 828e590..6e51c90 100755 --- a/test/check-application +++ b/test/check-application @@ -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")