-
Story
-
Resolution: Done
-
Major
-
None
-
None
-
None
-
3
-
False
-
-
True
-
-
-
3
-
OCMUI Core Sprint 261, OCMUI Core Sprint 262, OCMUI Core Sprint 263
Create a Cypress test to mimic the Catchpoint test (used in status.redhat.com) so OCMUI will be notified of a failure. The Cypress test will also contain a Warning about changing the '/cluster-list' route in the test.
The main points of the Catchpoint test are:
- open("https://console.redhat.com/openshift/cluster-list")
- Redirects to login page, test logs in, the redirects to 'cluster-list'
- waitForVisible("//a[starts-with(@href, '/openshift/details/')]", "30000")
We should add a warning to the `before()` section of https://gitlab.cee.redhat.com/service/uhc-portal/-/blob/master/cypress/e2e/clusters/ClusterList.js., similar to what was added in the Router:
/* WARNING! The "/cluster-list" route is used by catchpoint tests which determine website operation status on 'http:///status.redhat.com'. If this route is changed, then the related catchpoint tests must be updated. For more info. see: https://issues.redhat.com/browse/OCMUI-2398 */
We can add a new test to https://gitlab.cee.redhat.com/service/uhc-portal/-/blob/master/cypress/e2e/clusters/ClusterList.js#L13-13:
/* WARNING! The "/openshift/details/" route is used by catchpoint tests which determine website operation status on 'http:///status.redhat.com'. If this route is changed, then the related catchpoint tests must be updated. For more info. see: https://issues.redhat.com/browse/OCMUI-2398 */ it("tests for cluster detail urls") { ... }