From ff4afef5edea5e444738f51c29c9aa8d23989ce1 Mon Sep 17 00:00:00 2001 From: Radek Vykydal Date: Thu, 16 Nov 2023 17:02:32 +0100 Subject: [PATCH] tests: address pixel tests flakiness with unloaded logo image Resolves: INSTALLER-3792 --- test/helpers/installer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/helpers/installer.py b/test/helpers/installer.py index 7c0e57cc1d..47d78b97f6 100644 --- a/test/helpers/installer.py +++ b/test/helpers/installer.py @@ -132,7 +132,7 @@ def open(self, step="installation-language"): self.browser.open(f"/cockpit/@localhost/anaconda-webui/index.html#/{step}") self.wait_current_page(step) # Ensure that the logo is visible before proceeding as pixel tests get racy otherwise - self.browser.wait_js_cond("document.querySelector('.logo').complete") + self.browser.wait_js_cond("document.querySelector('.logo').complete && document.querySelector('.logo').naturalHeight !== 0") def click_step_on_sidebar(self, step=None): step = step or self.get_current_page()