Uploaded image for project: 'OpenShift Console'
  1. OpenShift Console
  2. CONSOLE-4537

Remove `injectDocumentDomain` from Cypress configs

XMLWordPrintable

    • Icon: Story Story
    • Resolution: Unresolved
    • Icon: Undefined Undefined
    • None
    • openshift-4.19
    • Tests
    • None

      Changes in https://github.com/openshift/console/pull/14875 resulted in Cypress test text form input slowing to the point that it made tests run for up to 2 hours longer than normal and often resulted in Cypress crashing. The workaround was to upgrade Cypress to v14. As part of that upgrade, `injectDocumentDomain` was added to the Cypress configs in order to continue using subdomains without updating the existing tests to use `cy.origin`. However, `injectDocumentDomain` is deprecated and results in a warning when launching Cypress, and `injectDocumentDomain` will be removed in a future version of Cypress. See https://docs.cypress.io/app/references/changelog#14-0-0. We should update the Cypress configs to remove the usage of `injectDocumentDomain` and properly update the tests. I believe the login command is the only affected code.

       

      AC:

      • Remove the `injectDocumentDomain` configuration from the all all the cypress.config.js files which are using it for login purposes, and use `cy.origin()` inside the tests instead.

              Unassigned Unassigned
              rhn-engineering-rhamilto Robb Hamilton
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated: