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

cy.createProject command is failing when matching project name

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Undefined Undefined
    • 4.20.0
    • 4.19
    • Management Console
    • None
    • Quality / Stability / Reliability
    • False
    • Hide

      None

      Show
      None
    • None
    • Critical
    • None
    • None
    • None
    • None
    • Proposed
    • Release Note Not Required
    • Hide
      Before this update, Cypress tests failed because the project name format in the code did not match the expected value. This update adjusts the name-matching logic to handle additional text in project names. As a result, Cypress tests now run reliably with correctly matched project names. (link:https://issues.redhat.com/browse/OCPBUGS-55808[OCPBUGS-55808])
      Show
      Before this update, Cypress tests failed because the project name format in the code did not match the expected value. This update adjusts the name-matching logic to handle additional text in project names. As a result, Cypress tests now run reliably with correctly matched project names. (link: https://issues.redhat.com/browse/OCPBUGS-55808 [ OCPBUGS-55808 ])
    • None
    • None
    • None
    • None

      Description of problem:

       https://github.com/openshift/console/blob/main/frontend/packages/integration-tests-cypress/support/project.ts#L20-L34 
      
      this code is matching exact project name while the whole text got in Cypress is `ProjectPR <project_name>Active`
      cy.get('[data-test="page-heading"] h1').should('have.text', name);    
      
      many QE tests are blocked by this issue

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

          

      How reproducible:

      Always    

      Steps to Reproduce:

          1.
          2.
          3.
          

      Actual results:

          

      Expected results:

          

      Additional info:

          

              jhadvig@redhat.com Jakub Hadvig
              rhn-support-yapei YaDan Pei
              None
              None
              YaDan Pei YaDan Pei
              Jocelyn Sese Jocelyn Sese
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated: