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

E2E-tests occasionally fail due to session timeout

XMLWordPrintable

    • False
    • Hide

      None

      Show
      None
    • False

      our E2E tests, running in the Cypress pipeline, sometimes break due to failed login attempts / session invalidation.

      see this CI run, which reports this error from OCMRolesAndAccess's beforeAll hook:

      1) OCM Roles And Access
             "before all" hook for "successfully registers a new cluster and redirects to its details page":
      [0m[31m     AssertionError: Timed out retrying after 10000ms: expected 'https://prod.foo.redhat.com:1337/openshift/' to include '/openshift/cluster-list'
      
      This error occurred while creating the session. Because the session setup failed, we failed the test.
      
      Because this error occurred during a `before all` hook we are skipping all of the remaining tests.
      
      Although you have test retries enabled, we do not retry tests when `before all` or `after all` hooks fail[0m[90m
            at ClusterList.assertUrlIncludes (webpack://cloud.openshift.com/./cypress/pageobjects/page.js:7:20)
            at ClusterList.isClusterListUrl (webpack://cloud.openshift.com/./cypress/pageobjects/ClusterList.page.js:8:10)
            at Object.eval [as setup] (webpack://cloud.openshift.com/./cypress/support/e2e.js:43:20)
      

      the screenshot from that moment of failure shows a blank page.

      we should investigate the root cause of this problem, and - according to our findings - either adjust test-configs (e.g. timeouts), fix the testing framework, or fix the responsible tests.

              Unassigned Unassigned
              emalka@redhat.com Lyn M
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated: