Uploaded image for project: 'OpenShift Bugs'
  1. OpenShift Bugs
  2. OCPBUGS-34222

Unable to run Cypress tests locally

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done-Errata
    • Icon: Normal Normal
    • None
    • 4.16.0, 4.17.0
    • Management Console
    • None
    • No
    • False
    • Hide

      None

      Show
      None
    • Release Note Not Required
    • In Progress

      Description of problem:

      Version-Release number of selected component (if applicable):

      Cypress test cannot be run locally.  This appears to be the result of `window.SERVER_FLAGS.authDisabled` always having a value of `false` when auth is in fact disabled.

      How reproducible:

      Always

      Steps to Reproduce:

          1.  Run `yarn test-cypress-console` with [auth disabled|https://github.com/openshift/console?tab=readme-ov-file#openshift-no-authentication]
          2.  Run any of the tests (e.g., masthead.cy.ts)
          3.  Note the test fails because the test tries to login even though auth is disabled.  This appears to be because https://github.com/openshift/console/blob/d26868305edc663e8b251e5d73a7c62f7a01cd8c/frontend/packages/integration-tests-cypress/support/login.ts#L28 fails since `window.SERVER_FLAGS.authDisabled` incorrectly has a value of `false`.

            rh-ee-ndhevar Nitin Dhevar (Inactive)
            rhn-engineering-rhamilto Robb Hamilton
            Yanping Zhang Yanping Zhang
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: