test: Restrict language switching reload hack to affected browser/version
This was fixed in Cockpit 265, and has only ever affected Chromium, not Firefox. Restrict the hack accordingly, to make sure this does not regress again.
This commit is contained in:
parent
2f92610f28
commit
8862b2b497
1 changed files with 3 additions and 2 deletions
|
|
@ -46,6 +46,7 @@ class TestApplication(testlib.MachineCase):
|
||||||
b.wait_popup('display-language-modal')
|
b.wait_popup('display-language-modal')
|
||||||
b.click("#display-language-modal [data-value='de-de'] button")
|
b.click("#display-language-modal [data-value='de-de'] button")
|
||||||
b.click("#display-language-modal button.pf-m-primary")
|
b.click("#display-language-modal button.pf-m-primary")
|
||||||
|
if self.system_before(265) and b.cdp.browser.name == "chromium":
|
||||||
# HACK: work around language switching in Chrome not working in current session (Cockpit issue #8160)
|
# HACK: work around language switching in Chrome not working in current session (Cockpit issue #8160)
|
||||||
b.reload(ignore_cache=True)
|
b.reload(ignore_cache=True)
|
||||||
b.wait_visible("#content")
|
b.wait_visible("#content")
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue