Update 'OcpUserLoginPage' to login in OCP cluster without OAuth config #22823
Labels
area/qe
kind/task
Internal things, technical debt, and to-do tasks to be performed.
severity/P1
Has a major impact to usage or development of the system.
team/A
This team is responsible for the Che Operator and all its operands as well as chectl and Hosted Che
Is your task related to a problem? Please describe
The E2E test
DevConsoleIntegration
uses theOcpUserLoginPage
method to login to OCP cluster, there is a bithard code
- waiting theLoginProviderTitle
:https://github.com/eclipse/che/blob/main/tests/e2e/pageobjects/login/openshift/OcpUserLoginPage.ts#L25
In the case when is used OCP cluster without OAuth config the test
DevConsoleIntegration
is failure.Describe the solution you'd like
This can be resolved by update the
OcpUserLoginPage
method to replace the condition expression:if (await this.ocpLogin.isIdentityProviderLinkVisible())
E.g. -> https://github.com/eclipse/che/blob/main/tests/e2e/pageobjects/login/openshift/RegularUserOcpCheLoginPage.ts#L44
This allows to run the test on OCP cluster as with OAuth config , as without the one.
Describe alternatives you've considered
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: