Uploaded image for project: 'OCMUI - OpenShift Cluster Manager UI'
  1. OCMUI - OpenShift Cluster Manager UI
  2. OCMUI-2391

Update Cypress 'cluster-list' test to warn about Catchpoint test

    • Icon: Story Story
    • Resolution: Done
    • Icon: Major Major
    • None
    • None
    • None
    • 3
    • OCMUI Core Sprint 261, OCMUI Core Sprint 262, OCMUI Core Sprint 263

      Create a Cypress test to mimic the Catchpoint test (used in status.redhat.com) so OCMUI will be notified of a failure. The Cypress test will also contain a Warning about changing the '/cluster-list' route in the test.

      The main points of the Catchpoint test are:

      1. open("https://console.redhat.com/openshift/cluster-list")
      2. Redirects to login page, test logs in, the redirects to 'cluster-list'
      3. waitForVisible("//a[starts-with(@href, '/openshift/details/')]", "30000")

       
      We should add a warning to the `before()` section of https://gitlab.cee.redhat.com/service/uhc-portal/-/blob/master/cypress/e2e/clusters/ClusterList.js., similar to what was added in the Router:

      /* WARNING! The "/cluster-list" route is used by catchpoint tests which determine
      website operation status on 'http:///status.redhat.com'.  If this route is changed, then the related catchpoint tests must be updated. For more info. see: https://issues.redhat.com/browse/OCMUI-2398 */

      We can add a new test to https://gitlab.cee.redhat.com/service/uhc-portal/-/blob/master/cypress/e2e/clusters/ClusterList.js#L13-13:

      /* WARNING! The "/openshift/details/" route is used by catchpoint tests which determine website operation status on 'http:///status.redhat.com'. If this route is changed, then the related catchpoint tests must be updated. For more info. see: https://issues.redhat.com/browse/OCMUI-2398 */
      
      it("tests for cluster detail urls") {
        ...
      }
      
      

       

       

        1. status-redhat.png
          status-redhat.png
          105 kB
        2. status-2.png
          status-2.png
          6 kB
        3. Screenshot 2024-09-19 at 3.04.48 PM.png
          Screenshot 2024-09-19 at 3.04.48 PM.png
          312 kB
        4. cluster-list.png
          cluster-list.png
          102 kB

              rh-ee-lufreita Lucas Freitas
              dtaylor@redhat.com David Taylor
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: