Uploaded image for project: 'Subscription Watch'
  1. Subscription Watch
  2. SWATCH-4586

[GUI] Fix test_navigate_to_openshift_from_ocm_through_menu

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Done
    • Icon: Normal Normal
    • None
    • None
    • Automation, swatch-gui
    • None
    • 3
    • False
    • Hide

      None

      Show
      None
    • False
    • subs-swatch-lightning
    • Swatch Lightning Sprint 10

      PO Summary: We are fixing a broken automated test that failed because the OpenShift menu was reorganized, ensuring that our nav test is pointed at the right place.

      The HCC OpenShift product page menu changed, and our navigation test can no longer verify that the link to Subscription Usage is working. 

      Test error:

              view = navigate_to(curiosity_user_app.platform_ui, "OpenShiftOverview")
              assert view.is_displayed
              nav_tree = view.navigation.nav_item_tree()
              view.navigation.select("Subscriptions")
          
      >       assert "Subscriptions" in nav_tree
      E       AssertionError: assert 'Subscriptions' in OrderedDict({'Overview': None, 'Fleet management': OrderedDict({'Dashboard': None, 'Clusters': None, 'Advisor': ['Recommendations', 'Clusters', 'Workloads'], 'Vulnerability dashboard': ['CVEs', 'Clusters'], 'Cost Management': ['Overview', 'Optimizations', 'OpenShift', 'Amazon Web Services', 'Google Cloud', 'Microsoft Azure', 'Cost Explorer', 'Settings']}), 'Cloud console settings': OrderedDict({'User Access': None, 'Notifications': ['Configure Events', 'Notifications Preferences'], 'Subscriptions': ['OpenShift Usage', 'Annual Subscriptions']}), 'Resources': ['Learning Resources', 'Downloads', 'Releases', 'Assisted Installer']})iqe_curiosity/tests/ui/test_ui_navigation_menu.py:151: AssertionError 

      AC:

      • The test is passing again.

              mmusil Marek Musil
              mmusil Marek Musil
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: