Skip to content

Commit

Permalink
tests: address pixel tests flakiness with unloaded logo image
Browse files Browse the repository at this point in the history
Resolves: INSTALLER-3792
  • Loading branch information
rvykydal authored and KKoukiou committed Nov 17, 2023
1 parent 6730bb6 commit ff4afef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/helpers/installer.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit ff4afef

Please sign in to comment.