Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix inconsistently failing Errata UI, checking New Host > Installed Packages > table #1612

Merged
merged 1 commit into from
Oct 30, 2024

Conversation

damoore044
Copy link
Contributor

@damoore044 damoore044 commented Oct 29, 2024

Purpose

Occasionally see no such element exception for ErrataManagement CI results,
in get_packages() method on view.content.packages.select()
locally it runs without issue, but we should wait for the packages tab to appear before selecting it, after we navigate to the page.

See for prt Robottelo#16814

two tests using this method, New Host UI > Installed Packages tab > read table :

  • tests/foreman/ui/test_errata.py:: test_positive_apply_for_all_hosts (upgrade)
  • tests/foreman/ui/test_host.py:: test_positive_update_delete_package (rhel8 only) Fails in setup

Related Issue (seen occasionally in 6.15, 6.16 el8/9)

Error Message
selenium.common.exceptions.NoSuchElementException: Message: Could not find an element Locator(by='xpath', locator='.//div[contains(@class, "pf-c-tabs")]/ul/li[button[normalize-space(.)="Content"]]'); 

Stacktrace
tests/foreman/ui/test_errata.py:947: in test_positive_apply_for_all_hosts
    updated_pkg = session.host_new.get_packages(
../../lib64/python3.12/site-packages/airgun/entities/host_new.py:334: in get_packages
    view.content.packages.select()
../../lib64/python3.12/site-packages/widgetastic/widget/base.py:146: in __get__
    obj.child_widget_accessed(widget)
   
    ...
E   selenium.common.exceptions.NoSuchElementException: Message: Could not find an element Locator(by='xpath', locator='.//div[contains(@class, "pf-c-tabs")]/ul/li[button[normalize-space(.)="Content"]]');

@vsedmik vsedmik merged commit 8ce39da into SatelliteQE:master Oct 30, 2024
6 of 10 checks passed
github-actions bot pushed a commit that referenced this pull request Oct 30, 2024
github-actions bot pushed a commit that referenced this pull request Oct 30, 2024
damoore044 added a commit that referenced this pull request Nov 1, 2024
(cherry picked from commit 8ce39da)

Co-authored-by: David Moore <[email protected]>
damoore044 added a commit that referenced this pull request Nov 1, 2024
(cherry picked from commit 8ce39da)

Co-authored-by: David Moore <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
6.15.z 6.16.z CherryPick PR needs CherryPick to previous branches Stream
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants