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

[6.15.z] Fix inconsistently failing Errata UI, checking New Host > Installed Packages > table #1614

Conversation

Satellite-QE
Copy link
Contributor

Cherrypick of PR: #1612

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"]]');

@Satellite-QE Satellite-QE added 6.15.z Auto_Cherry_Picked GHA has automatically cherrypicked this PR No-CherryPick PR doesnt need CherryPick to previous branches labels Oct 30, 2024
@damoore044 damoore044 merged commit dcc059d into 6.15.z Nov 1, 2024
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
6.15.z Auto_Cherry_Picked GHA has automatically cherrypicked this PR No-CherryPick PR doesnt need CherryPick to previous branches
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants