Skip to content

first cypress web test#189

Open
anpingli wants to merge 1 commit intoopenshift:mainfrom
anpingli:web-test
Open

first cypress web test#189
anpingli wants to merge 1 commit intoopenshift:mainfrom
anpingli:web-test

Conversation

@anpingli
Copy link
Contributor

@anpingli anpingli commented Jan 27, 2026

My the first cypress automation cases.

  • Validate if the troubleshoot panel can be opened and validate if the basic elements appear.
  • Deleted the useless integration-tests folders
  • More tests will be added once this PR is approved.

Prerequisite: The Troubleshoot panel plugin must be enabled.
Execution:
make test-e2e

image

@openshift-ci
Copy link

openshift-ci bot commented Jan 27, 2026

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: anpingli
Once this PR has been reviewed and has the lgtm label, please assign shwetaap for approval. For more information see the Code Review Process.

The full list of commands accepted by this bot can be found here.

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@jgbernalp
Copy link
Contributor

cc @etmurasaki

const fs = require('fs');
const path = require('path');
const report_dir = process.env.ARTIFACT_DIR || '/tmp';

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

missing import registerCypressGrep from '@cypress/grep/src/plugin'; to resolve tags problem on e2e files

@@ -0,0 +1,104 @@
import * as dataTest from '../fixtures/data-test'

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I know the challenge you mentioned during COO UI Testing call about locators on Troub Panel. I believe data-test file should be used to store classes, bc we intend to include PF6 on COO1.5.0 and it will be much easier to maintain the testing files later.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for explaining. I have added the classed element in data-test.txt.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

all these elements are related to monitoring-plugin and I believe you should only the ones used in your test

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes. I'd like to re-use these elements. I will add more troubleshoot and Logging elements and Consider backporting to monitoring-plugin someday.

});

// Execute the waitUntil with the original options (without timeoutMessage)
return cy.waitUntil(fn, waitOptions);

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this waitUntil has an error

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't call this command. I will cherry-pick the fix from the monitor-plugin someday.

@openshift-merge-robot openshift-merge-robot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Feb 2, 2026
@anpingli anpingli force-pushed the web-test branch 2 times, most recently from 6a5b5e6 to 809e3ea Compare February 3, 2026 01:53
@openshift-merge-robot openshift-merge-robot removed the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Feb 3, 2026
@openshift-merge-robot openshift-merge-robot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Feb 3, 2026
@openshift-merge-robot openshift-merge-robot removed the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Feb 3, 2026
@openshift-ci
Copy link

openshift-ci bot commented Feb 3, 2026

@anpingli: all tests passed!

Full PR test history. Your PR dashboard.

Details

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here.

@anpingli anpingli requested a review from etmurasaki February 3, 2026 10:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants