Skip to content

Conversation

@logonoff
Copy link
Member

@logonoff logonoff commented Dec 15, 2025

Hopefully the final solution to #15829, #15776, #14928, #14866, ...

@openshift-ci-robot openshift-ci-robot added the jira/valid-reference Indicates that this PR references a valid Jira ticket of any type. label Dec 15, 2025
@openshift-ci-robot
Copy link
Contributor

@logonoff: This pull request explicitly references no jira issue.

Details

In response to this:

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 openshift-eng/jira-lifecycle-plugin repository.

@coderabbitai
Copy link

coderabbitai bot commented Dec 15, 2025

Walkthrough

Adds detection for an "INTEGRATION_TEST" feature flag (based on navigator.userAgent) and registers an exposed handler; marks guided-tour extensions disallowed for that flag. Removes the exported guidedTour utility and deletes many test imports and calls to guidedTour.close(). Adds Cypress userAgent config to multiple integration-test configs.

Changes

Cohort / File(s) Change Summary
Console feature flag & registration
frontend/packages/console-app/src/features/integration-test.ts, frontend/packages/console-app/src/consts.ts, frontend/packages/console-app/package.json, frontend/packages/console-app/console-extensions.json
Added FLAG_INTEGRATION_TEST constant, implemented and exported handler: FeatureFlagHandler that checks window.navigator.userAgent for ConsoleIntegrationTestEnvironment, exposed detectIntegrationTest module in package.json, and registered a console.flag extension referencing detectIntegrationTest.handler. Also updated guided-tour extension to include flags.disallowed: ["INTEGRATION_TEST"].
Disallow guided-tour in dev-console extensions
frontend/packages/dev-console/console-extensions.json
Added flags.disallowed: ["INTEGRATION_TEST"] to the INTERNAL_DO_NOT_USE.guided-tour entry.
Cypress userAgent added to e2e configs
frontend/packages/console-telemetry-plugin/integration-tests/cypress.config.js, frontend/packages/dev-console/integration-tests/cypress.config.js, frontend/packages/helm-plugin/integration-tests/cypress.config.js, frontend/packages/integration-tests-cypress/cypress.config.js, frontend/packages/knative-plugin/integration-tests/cypress.config.js, frontend/packages/operator-lifecycle-manager/integration-tests-cypress/cypress.config.js, frontend/packages/shipwright-plugin/integration-tests/cypress.config.js, frontend/packages/topology/integration-tests/cypress.config.js, frontend/packages/webterminal-plugin/integration-tests/cypress.config.js
Added userAgent: 'ConsoleIntegrationTestEnvironment' to the e2e configuration in each Cypress config.
Removed guided-tour utility
frontend/packages/integration-tests-cypress/views/guided-tour.ts
Deleted the exported guidedTour object (methods close() and isOpen() removed).
Removed guided-tour imports and close() calls from support/hooks and pages
frontend/packages/console-telemetry-plugin/integration-tests/support/commands/hooks.ts, frontend/packages/dev-console/integration-tests/support/pages/app.ts, frontend/packages/dev-console/integration-tests/support/pages/functions/checkDeveloperPerspective.ts, frontend/packages/dev-console/integration-tests/support/pages/functions/createGitWorkload.ts, frontend/packages/helm-plugin/integration-tests/support/commands/hooks.ts, frontend/packages/integration-tests-cypress/support/admin.ts, frontend/packages/knative-plugin/integration-tests/support/commands/hooks.ts, frontend/packages/knative-plugin/integration-tests/support/pages/dev-perspective/common.ts, frontend/packages/shipwright-plugin/integration-tests/support/commands/hooks.ts, frontend/packages/topology/integration-tests/support/commands/hooks.ts, frontend/packages/webterminal-plugin/integration-tests/support/commands/hooks.ts, ...(many similar support/page files)
Removed guidedTour imports and guidedTour.close() invocations from test setup hooks and page helper flows across multiple packages.
Removed guided-tour from step definitions
frontend/packages/dev-console/integration-tests/support/step-definitions/..., frontend/packages/helm-plugin/integration-tests/support/step-definitions/..., frontend/packages/knative-plugin/integration-tests/support/step-definitions/..., frontend/packages/shipwright-plugin/integration-tests/support/step-definitions/..., frontend/packages/topology/integration-tests/support/step-definitions/..., frontend/packages/webterminal-plugin/integration-tests/support/step-definitions/...
Removed guidedTour imports and guidedTour.close() calls from many step-definition files.
Removed guided-tour handling from many test specs
frontend/packages/integration-tests-cypress/tests/app/*.cy.ts, frontend/packages/integration-tests-cypress/tests/crud/*.cy.ts, frontend/packages/integration-tests-cypress/tests/dashboards/*.cy.ts, frontend/packages/integration-tests-cypress/tests/events/*.cy.ts, frontend/packages/integration-tests-cypress/tests/storage/*.cy.ts, frontend/packages/integration-tests-cypress/tests/* (many test spec files across packages)
Deleted guidedTour imports and calls to guidedTour.close() from before hooks and test setup in ~49 test spec files; in one spec a Deployment resource was added to the bulk create request object.
Feature file doc update
frontend/packages/dev-console/integration-tests/features/getting-started/getting-started-tour-dev-perspective.feature
Replaced initial tags with a comment indicating the automatic guided tour is disabled in Cypress and added @manual tag.

Estimated code review effort

🎯 3 (Moderate) | ⏱️ ~20 minutes

  • Large set of repetitive removals (guidedTour imports/calls) reduces per-file reasoning, but spread across many packages.
  • New feature-flag handler is simple but should be checked for correct import/export and exact userAgent string usage.
  • Areas to focus on:
    • frontend/packages/console-app/src/features/integration-test.ts — verify handler signature, import of FeatureFlagHandler, and correct invocation of callback with FLAG_INTEGRATION_TEST.
    • frontend/packages/console-app/console-extensions.json and frontend/packages/dev-console/console-extensions.json — ensure flags.disallowed entries target the correct flag name "INTEGRATION_TEST".
    • Consistency of userAgent: 'ConsoleIntegrationTestEnvironment' across all updated Cypress config files.
✨ Finishing touches
  • 📝 Generate docstrings
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment

📜 Recent review details

Configuration used: CodeRabbit UI

Review profile: CHILL

Plan: Pro

Cache: Disabled due to data retention organization setting

Knowledge base: Disabled due to Reviews -> Disable Knowledge Base setting

📥 Commits

Reviewing files that changed from the base of the PR and between 0c3853a and ea2ec9d.

📒 Files selected for processing (90)
  • frontend/packages/console-app/console-extensions.json (1 hunks)
  • frontend/packages/console-app/package.json (1 hunks)
  • frontend/packages/console-app/src/consts.ts (1 hunks)
  • frontend/packages/console-app/src/features/integration-test.ts (1 hunks)
  • frontend/packages/console-telemetry-plugin/integration-tests/cypress.config.js (1 hunks)
  • frontend/packages/console-telemetry-plugin/integration-tests/support/commands/hooks.ts (0 hunks)
  • frontend/packages/dev-console/console-extensions.json (1 hunks)
  • frontend/packages/dev-console/integration-tests/cypress.config.js (1 hunks)
  • frontend/packages/dev-console/integration-tests/features/getting-started/getting-started-tour-dev-perspective.feature (1 hunks)
  • frontend/packages/dev-console/integration-tests/support/pages/app.ts (0 hunks)
  • frontend/packages/dev-console/integration-tests/support/pages/functions/checkDeveloperPerspective.ts (0 hunks)
  • frontend/packages/dev-console/integration-tests/support/pages/functions/createGitWorkload.ts (0 hunks)
  • frontend/packages/dev-console/integration-tests/support/step-definitions/common/common.ts (0 hunks)
  • frontend/packages/dev-console/integration-tests/support/step-definitions/common/operators.ts (0 hunks)
  • frontend/packages/dev-console/integration-tests/support/step-definitions/customization/configure-perspectives.ts (0 hunks)
  • frontend/packages/dev-console/integration-tests/support/step-definitions/health-checks/add-health-checks-topology-sidebar.ts (0 hunks)
  • frontend/packages/dev-console/integration-tests/support/step-definitions/topology/create-workloads.ts (0 hunks)
  • frontend/packages/helm-plugin/integration-tests/cypress.config.js (1 hunks)
  • frontend/packages/helm-plugin/integration-tests/support/commands/hooks.ts (0 hunks)
  • frontend/packages/helm-plugin/integration-tests/support/step-definitions/common/common.ts (0 hunks)
  • frontend/packages/integration-tests-cypress/cypress.config.js (1 hunks)
  • frontend/packages/integration-tests-cypress/support/admin.ts (0 hunks)
  • frontend/packages/integration-tests-cypress/tests/app/admission-webhook-warning-notifications.cy.ts (1 hunks)
  • frontend/packages/integration-tests-cypress/tests/app/auth-multiuser-login.cy.ts (1 hunks)
  • frontend/packages/integration-tests-cypress/tests/app/debug-pod.cy.ts (0 hunks)
  • frontend/packages/integration-tests-cypress/tests/app/demo-dynamic-plugin.cy.ts (0 hunks)
  • frontend/packages/integration-tests-cypress/tests/app/filtering-and-searching.cy.ts (0 hunks)
  • frontend/packages/integration-tests-cypress/tests/app/masthead.cy.ts (0 hunks)
  • frontend/packages/integration-tests-cypress/tests/app/node-terminal.cy.ts (0 hunks)
  • frontend/packages/integration-tests-cypress/tests/app/overview.cy.ts (0 hunks)
  • frontend/packages/integration-tests-cypress/tests/app/poll-console-updates.cy.ts (0 hunks)
  • frontend/packages/integration-tests-cypress/tests/app/resource-log.cy.ts (0 hunks)
  • frontend/packages/integration-tests-cypress/tests/app/start-job-from-cronjob.cy.ts (0 hunks)
  • frontend/packages/integration-tests-cypress/tests/app/template.cy.ts (0 hunks)
  • frontend/packages/integration-tests-cypress/tests/app/yaml-editor-settings.cy.ts (0 hunks)
  • frontend/packages/integration-tests-cypress/tests/cluster-settings/oauth.cy.ts (0 hunks)
  • frontend/packages/integration-tests-cypress/tests/crd-extensions/console-external-log-link.cy.ts (0 hunks)
  • frontend/packages/integration-tests-cypress/tests/crud/add-storage-crud.cy.ts (0 hunks)
  • frontend/packages/integration-tests-cypress/tests/crud/annotations.cy.ts (0 hunks)
  • frontend/packages/integration-tests-cypress/tests/crud/bulk-create-resources.cy.ts (0 hunks)
  • frontend/packages/integration-tests-cypress/tests/crud/customresourcedefinition.cy.ts (0 hunks)
  • frontend/packages/integration-tests-cypress/tests/crud/environment.cy.ts (0 hunks)
  • frontend/packages/integration-tests-cypress/tests/crud/image-pull-secret.cy.ts (0 hunks)
  • frontend/packages/integration-tests-cypress/tests/crud/namespace-crud.cy.ts (0 hunks)
  • frontend/packages/integration-tests-cypress/tests/crud/other-routes.cy.ts (0 hunks)
  • frontend/packages/integration-tests-cypress/tests/crud/quotas.cy.ts (0 hunks)
  • frontend/packages/integration-tests-cypress/tests/crud/resource-crud.cy.ts (0 hunks)
  • frontend/packages/integration-tests-cypress/tests/crud/roles-rolebindings.cy.ts (0 hunks)
  • frontend/packages/integration-tests-cypress/tests/crud/secrets/add-to-workload.cy.ts (0 hunks)
  • frontend/packages/integration-tests-cypress/tests/crud/secrets/image-pull.cy.ts (0 hunks)
  • frontend/packages/integration-tests-cypress/tests/crud/secrets/key-value.cy.ts (0 hunks)
  • frontend/packages/integration-tests-cypress/tests/crud/secrets/source.cy.ts (0 hunks)
  • frontend/packages/integration-tests-cypress/tests/crud/secrets/webhook.cy.ts (0 hunks)
  • frontend/packages/integration-tests-cypress/tests/dashboards/cluster-dashboard.cy.ts (0 hunks)
  • frontend/packages/integration-tests-cypress/tests/dashboards/project-dashboard.cy.ts (0 hunks)
  • frontend/packages/integration-tests-cypress/tests/events/events.cy.ts (0 hunks)
  • frontend/packages/integration-tests-cypress/tests/favorite/favorite-option.cy.ts (0 hunks)
  • frontend/packages/integration-tests-cypress/tests/i18n/pseudolocalization.cy.ts (0 hunks)
  • frontend/packages/integration-tests-cypress/tests/storage/clone.cy.ts (0 hunks)
  • frontend/packages/integration-tests-cypress/tests/storage/create-storage-class.cy.ts (0 hunks)
  • frontend/packages/integration-tests-cypress/tests/storage/snapshot.cy.ts (0 hunks)
  • frontend/packages/integration-tests-cypress/views/guided-tour.ts (0 hunks)
  • frontend/packages/knative-plugin/integration-tests/cypress.config.js (1 hunks)
  • frontend/packages/knative-plugin/integration-tests/support/commands/hooks.ts (0 hunks)
  • frontend/packages/knative-plugin/integration-tests/support/pages/dev-perspective/common.ts (0 hunks)
  • frontend/packages/knative-plugin/integration-tests/support/pages/dev-perspective/test-serverless-function-page.ts (0 hunks)
  • frontend/packages/knative-plugin/integration-tests/support/step-definitions/serverless/actions-on-knative-revision.ts (0 hunks)
  • frontend/packages/operator-lifecycle-manager/integration-tests-cypress/cypress.config.js (1 hunks)
  • frontend/packages/operator-lifecycle-manager/integration-tests-cypress/tests/catalog-source-details.cy.ts (0 hunks)
  • frontend/packages/operator-lifecycle-manager/integration-tests-cypress/tests/create-namespace.cy.ts (0 hunks)
  • frontend/packages/operator-lifecycle-manager/integration-tests-cypress/tests/deprecated-operator-warnings.cy.ts (0 hunks)
  • frontend/packages/operator-lifecycle-manager/integration-tests-cypress/tests/operator-hub.cy.ts (0 hunks)
  • frontend/packages/operator-lifecycle-manager/integration-tests-cypress/tests/operator-install-global.cy.ts (0 hunks)
  • frontend/packages/operator-lifecycle-manager/integration-tests-cypress/tests/operator-install-single-namespace.cy.ts (0 hunks)
  • frontend/packages/operator-lifecycle-manager/integration-tests-cypress/tests/operator-uninstall.cy.ts (0 hunks)
  • frontend/packages/shipwright-plugin/integration-tests/cypress.config.js (1 hunks)
  • frontend/packages/shipwright-plugin/integration-tests/support/commands/hooks.ts (0 hunks)
  • frontend/packages/shipwright-plugin/integration-tests/support/step-definitions/common/common.ts (0 hunks)
  • frontend/packages/topology/integration-tests/cypress.config.js (1 hunks)
  • frontend/packages/topology/integration-tests/support/commands/hooks.ts (0 hunks)
  • frontend/packages/topology/integration-tests/support/pages/topology/topology-page.ts (0 hunks)
  • frontend/packages/topology/integration-tests/support/step-definitions/common/topology.ts (0 hunks)
  • frontend/packages/topology/integration-tests/support/step-definitions/topology/chart-view.ts (0 hunks)
  • frontend/packages/topology/integration-tests/support/step-definitions/topology/poddisruptionbdget-warning.ts (0 hunks)
  • frontend/packages/topology/integration-tests/support/step-definitions/topology/resource-quota-warning.ts (0 hunks)
  • frontend/packages/topology/integration-tests/support/step-definitions/topology/workload-sidebar.ts (0 hunks)
  • frontend/packages/webterminal-plugin/integration-tests/cypress.config.js (1 hunks)
  • frontend/packages/webterminal-plugin/integration-tests/support/commands/hooks.ts (0 hunks)
  • frontend/packages/webterminal-plugin/integration-tests/support/step-definitions/common/webTerminal.ts (0 hunks)
  • frontend/packages/webterminal-plugin/integration-tests/support/step-definitions/web-terminal/web-terminal-adminuser.ts (0 hunks)
💤 Files with no reviewable changes (73)
  • frontend/packages/topology/integration-tests/support/step-definitions/topology/chart-view.ts
  • frontend/packages/dev-console/integration-tests/support/step-definitions/common/operators.ts
  • frontend/packages/integration-tests-cypress/tests/events/events.cy.ts
  • frontend/packages/dev-console/integration-tests/support/pages/app.ts
  • frontend/packages/integration-tests-cypress/tests/crd-extensions/console-external-log-link.cy.ts
  • frontend/packages/webterminal-plugin/integration-tests/support/step-definitions/common/webTerminal.ts
  • frontend/packages/integration-tests-cypress/tests/app/yaml-editor-settings.cy.ts
  • frontend/packages/integration-tests-cypress/tests/crud/secrets/source.cy.ts
  • frontend/packages/integration-tests-cypress/tests/app/resource-log.cy.ts
  • frontend/packages/topology/integration-tests/support/step-definitions/topology/resource-quota-warning.ts
  • frontend/packages/topology/integration-tests/support/step-definitions/topology/workload-sidebar.ts
  • frontend/packages/integration-tests-cypress/tests/crud/environment.cy.ts
  • frontend/packages/operator-lifecycle-manager/integration-tests-cypress/tests/operator-uninstall.cy.ts
  • frontend/packages/integration-tests-cypress/tests/crud/quotas.cy.ts
  • frontend/packages/integration-tests-cypress/tests/dashboards/project-dashboard.cy.ts
  • frontend/packages/integration-tests-cypress/tests/app/node-terminal.cy.ts
  • frontend/packages/integration-tests-cypress/tests/dashboards/cluster-dashboard.cy.ts
  • frontend/packages/knative-plugin/integration-tests/support/pages/dev-perspective/test-serverless-function-page.ts
  • frontend/packages/dev-console/integration-tests/support/step-definitions/common/common.ts
  • frontend/packages/topology/integration-tests/support/pages/topology/topology-page.ts
  • frontend/packages/integration-tests-cypress/tests/crud/roles-rolebindings.cy.ts
  • frontend/packages/integration-tests-cypress/tests/crud/customresourcedefinition.cy.ts
  • frontend/packages/dev-console/integration-tests/support/pages/functions/createGitWorkload.ts
  • frontend/packages/topology/integration-tests/support/step-definitions/topology/poddisruptionbdget-warning.ts
  • frontend/packages/knative-plugin/integration-tests/support/pages/dev-perspective/common.ts
  • frontend/packages/integration-tests-cypress/tests/crud/secrets/image-pull.cy.ts
  • frontend/packages/operator-lifecycle-manager/integration-tests-cypress/tests/operator-hub.cy.ts
  • frontend/packages/integration-tests-cypress/tests/app/poll-console-updates.cy.ts
  • frontend/packages/webterminal-plugin/integration-tests/support/step-definitions/web-terminal/web-terminal-adminuser.ts
  • frontend/packages/integration-tests-cypress/tests/app/overview.cy.ts
  • frontend/packages/console-telemetry-plugin/integration-tests/support/commands/hooks.ts
  • frontend/packages/integration-tests-cypress/tests/crud/add-storage-crud.cy.ts
  • frontend/packages/integration-tests-cypress/tests/crud/namespace-crud.cy.ts
  • frontend/packages/integration-tests-cypress/tests/storage/create-storage-class.cy.ts
  • frontend/packages/webterminal-plugin/integration-tests/support/commands/hooks.ts
  • frontend/packages/operator-lifecycle-manager/integration-tests-cypress/tests/operator-install-single-namespace.cy.ts
  • frontend/packages/dev-console/integration-tests/support/pages/functions/checkDeveloperPerspective.ts
  • frontend/packages/helm-plugin/integration-tests/support/commands/hooks.ts
  • frontend/packages/integration-tests-cypress/tests/storage/clone.cy.ts
  • frontend/packages/dev-console/integration-tests/support/step-definitions/topology/create-workloads.ts
  • frontend/packages/integration-tests-cypress/support/admin.ts
  • frontend/packages/operator-lifecycle-manager/integration-tests-cypress/tests/create-namespace.cy.ts
  • frontend/packages/integration-tests-cypress/tests/app/template.cy.ts
  • frontend/packages/integration-tests-cypress/tests/cluster-settings/oauth.cy.ts
  • frontend/packages/topology/integration-tests/support/commands/hooks.ts
  • frontend/packages/integration-tests-cypress/tests/app/masthead.cy.ts
  • frontend/packages/knative-plugin/integration-tests/support/step-definitions/serverless/actions-on-knative-revision.ts
  • frontend/packages/integration-tests-cypress/tests/crud/bulk-create-resources.cy.ts
  • frontend/packages/integration-tests-cypress/views/guided-tour.ts
  • frontend/packages/integration-tests-cypress/tests/crud/other-routes.cy.ts
  • frontend/packages/integration-tests-cypress/tests/crud/annotations.cy.ts
  • frontend/packages/integration-tests-cypress/tests/crud/secrets/key-value.cy.ts
  • frontend/packages/operator-lifecycle-manager/integration-tests-cypress/tests/catalog-source-details.cy.ts
  • frontend/packages/dev-console/integration-tests/support/step-definitions/customization/configure-perspectives.ts
  • frontend/packages/integration-tests-cypress/tests/crud/resource-crud.cy.ts
  • frontend/packages/knative-plugin/integration-tests/support/commands/hooks.ts
  • frontend/packages/operator-lifecycle-manager/integration-tests-cypress/tests/operator-install-global.cy.ts
  • frontend/packages/integration-tests-cypress/tests/storage/snapshot.cy.ts
  • frontend/packages/integration-tests-cypress/tests/crud/image-pull-secret.cy.ts
  • frontend/packages/integration-tests-cypress/tests/app/filtering-and-searching.cy.ts
  • frontend/packages/shipwright-plugin/integration-tests/support/step-definitions/common/common.ts
  • frontend/packages/integration-tests-cypress/tests/app/start-job-from-cronjob.cy.ts
  • frontend/packages/integration-tests-cypress/tests/app/demo-dynamic-plugin.cy.ts
  • frontend/packages/integration-tests-cypress/tests/crud/secrets/add-to-workload.cy.ts
  • frontend/packages/dev-console/integration-tests/support/step-definitions/health-checks/add-health-checks-topology-sidebar.ts
  • frontend/packages/topology/integration-tests/support/step-definitions/common/topology.ts
  • frontend/packages/integration-tests-cypress/tests/i18n/pseudolocalization.cy.ts
  • frontend/packages/integration-tests-cypress/tests/crud/secrets/webhook.cy.ts
  • frontend/packages/helm-plugin/integration-tests/support/step-definitions/common/common.ts
  • frontend/packages/operator-lifecycle-manager/integration-tests-cypress/tests/deprecated-operator-warnings.cy.ts
  • frontend/packages/integration-tests-cypress/tests/app/debug-pod.cy.ts
  • frontend/packages/integration-tests-cypress/tests/favorite/favorite-option.cy.ts
  • frontend/packages/shipwright-plugin/integration-tests/support/commands/hooks.ts
🚧 Files skipped from review as they are similar to previous changes (13)
  • frontend/packages/console-telemetry-plugin/integration-tests/cypress.config.js
  • frontend/packages/console-app/src/features/integration-test.ts
  • frontend/packages/webterminal-plugin/integration-tests/cypress.config.js
  • frontend/packages/console-app/src/consts.ts
  • frontend/packages/dev-console/integration-tests/cypress.config.js
  • frontend/packages/operator-lifecycle-manager/integration-tests-cypress/cypress.config.js
  • frontend/packages/knative-plugin/integration-tests/cypress.config.js
  • frontend/packages/dev-console/integration-tests/features/getting-started/getting-started-tour-dev-perspective.feature
  • frontend/packages/console-app/package.json
  • frontend/packages/console-app/console-extensions.json
  • frontend/packages/dev-console/console-extensions.json
  • frontend/packages/helm-plugin/integration-tests/cypress.config.js
  • frontend/packages/integration-tests-cypress/cypress.config.js
🧰 Additional context used
📓 Path-based instructions (1)
**

⚙️ CodeRabbit configuration file

-Focus on major issues impacting performance, readability, maintainability and security. Avoid nitpicks and avoid verbosity.

Files:

  • frontend/packages/topology/integration-tests/cypress.config.js
  • frontend/packages/integration-tests-cypress/tests/app/auth-multiuser-login.cy.ts
  • frontend/packages/integration-tests-cypress/tests/app/admission-webhook-warning-notifications.cy.ts
  • frontend/packages/shipwright-plugin/integration-tests/cypress.config.js
🔇 Additional comments (4)
frontend/packages/integration-tests-cypress/tests/app/auth-multiuser-login.cy.ts (1)

27-27: Comment update aligns with new guided‑tour behavior

The updated comment correctly reflects that this test now only cares about the default Developer perspective for the test user, with guided‑tour handling removed elsewhere in the stack. No further changes needed here.

frontend/packages/integration-tests-cypress/tests/app/admission-webhook-warning-notifications.cy.ts (1)

70-104: Deployment YAML addition for bulk import looks correct

The multi-document YAML (Pod + Deployment) is well-formed, matches the resources metadata (kind/name/path), and uses a valid apps/v1 Deployment schema (selector and template labels align, strategy/replicas/containers are coherent). No issues from a test maintainability or correctness perspective.

frontend/packages/shipwright-plugin/integration-tests/cypress.config.js (1)

49-49: LGTM! Consistent userAgent configuration.

The userAgent configuration matches the topology integration tests config, ensuring consistency across test suites.

frontend/packages/topology/integration-tests/cypress.config.js (1)

54-54: The userAgent configuration is correctly implemented and consistent across the codebase. All 9 Cypress config files include the identical userAgent: 'ConsoleIntegrationTestEnvironment' string, and the frontend detection logic in frontend/packages/console-app/src/features/integration-test.ts properly matches this value to set the FLAG_INTEGRATION_TEST flag for disabling features during integration tests.


Comment @coderabbitai help to get the list of available commands and usage tips.

@openshift-ci openshift-ci bot added component/core Related to console core functionality component/dev-console Related to dev-console approved Indicates a PR has been approved by an approver from all required OWNERS files. component/helm Related to helm-plugin component/knative Related to knative-plugin component/olm Related to OLM component/topology Related to topology kind/cypress Related to Cypress e2e integration testing labels Dec 15, 2025
@logonoff
Copy link
Member Author

/label px-approved
/label docs-approved

@openshift-ci openshift-ci bot added px-approved Signifies that Product Support has signed off on this PR docs-approved Signifies that Docs has signed off on this PR labels Dec 15, 2025
Copy link

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 0

Caution

Some comments are outside the diff and can’t be posted inline due to platform limitations.

⚠️ Outside diff range comments (1)
frontend/packages/integration-tests-cypress/tests/app/admission-webhook-warning-notifications.cy.ts (1)

96-96: Fix typo in environment variable value.

The value frontennd appears to be a typo and should likely be frontend.

Apply this diff:

-              value: frontennd
+              value: frontend
🧹 Nitpick comments (1)
frontend/packages/integration-tests-cypress/tests/app/auth-multiuser-login.cy.ts (1)

27-27: Align test comment with actual assertions

This comment says we test that the Developer perspective is the default, but the current assertions only verify the username (the perspective check is commented out below). Consider updating the comment or re-enabling the perspective assertion once the operator PR is in, to avoid confusion.

📜 Review details

Configuration used: CodeRabbit UI

Review profile: CHILL

Plan: Pro

Cache: Disabled due to data retention organization setting

Knowledge base: Disabled due to Reviews -> Disable Knowledge Base setting

📥 Commits

Reviewing files that changed from the base of the PR and between 335ed77 and 0c3853a.

📒 Files selected for processing (90)
  • frontend/packages/console-app/console-extensions.json (1 hunks)
  • frontend/packages/console-app/package.json (1 hunks)
  • frontend/packages/console-app/src/consts.ts (1 hunks)
  • frontend/packages/console-app/src/features/integration-test.ts (1 hunks)
  • frontend/packages/console-telemetry-plugin/integration-tests/cypress.config.js (1 hunks)
  • frontend/packages/console-telemetry-plugin/integration-tests/support/commands/hooks.ts (0 hunks)
  • frontend/packages/dev-console/console-extensions.json (1 hunks)
  • frontend/packages/dev-console/integration-tests/cypress.config.js (1 hunks)
  • frontend/packages/dev-console/integration-tests/features/getting-started/getting-started-tour-dev-perspective.feature (1 hunks)
  • frontend/packages/dev-console/integration-tests/support/pages/app.ts (0 hunks)
  • frontend/packages/dev-console/integration-tests/support/pages/functions/checkDeveloperPerspective.ts (0 hunks)
  • frontend/packages/dev-console/integration-tests/support/pages/functions/createGitWorkload.ts (0 hunks)
  • frontend/packages/dev-console/integration-tests/support/step-definitions/common/common.ts (0 hunks)
  • frontend/packages/dev-console/integration-tests/support/step-definitions/common/operators.ts (0 hunks)
  • frontend/packages/dev-console/integration-tests/support/step-definitions/customization/configure-perspectives.ts (0 hunks)
  • frontend/packages/dev-console/integration-tests/support/step-definitions/health-checks/add-health-checks-topology-sidebar.ts (0 hunks)
  • frontend/packages/dev-console/integration-tests/support/step-definitions/topology/create-workloads.ts (0 hunks)
  • frontend/packages/helm-plugin/integration-tests/cypress.config.js (1 hunks)
  • frontend/packages/helm-plugin/integration-tests/support/commands/hooks.ts (0 hunks)
  • frontend/packages/helm-plugin/integration-tests/support/step-definitions/common/common.ts (0 hunks)
  • frontend/packages/integration-tests-cypress/cypress.config.js (1 hunks)
  • frontend/packages/integration-tests-cypress/support/admin.ts (0 hunks)
  • frontend/packages/integration-tests-cypress/tests/app/admission-webhook-warning-notifications.cy.ts (1 hunks)
  • frontend/packages/integration-tests-cypress/tests/app/auth-multiuser-login.cy.ts (1 hunks)
  • frontend/packages/integration-tests-cypress/tests/app/debug-pod.cy.ts (0 hunks)
  • frontend/packages/integration-tests-cypress/tests/app/demo-dynamic-plugin.cy.ts (0 hunks)
  • frontend/packages/integration-tests-cypress/tests/app/filtering-and-searching.cy.ts (0 hunks)
  • frontend/packages/integration-tests-cypress/tests/app/masthead.cy.ts (0 hunks)
  • frontend/packages/integration-tests-cypress/tests/app/node-terminal.cy.ts (0 hunks)
  • frontend/packages/integration-tests-cypress/tests/app/overview.cy.ts (0 hunks)
  • frontend/packages/integration-tests-cypress/tests/app/poll-console-updates.cy.ts (0 hunks)
  • frontend/packages/integration-tests-cypress/tests/app/resource-log.cy.ts (0 hunks)
  • frontend/packages/integration-tests-cypress/tests/app/start-job-from-cronjob.cy.ts (0 hunks)
  • frontend/packages/integration-tests-cypress/tests/app/template.cy.ts (0 hunks)
  • frontend/packages/integration-tests-cypress/tests/app/yaml-editor-settings.cy.ts (0 hunks)
  • frontend/packages/integration-tests-cypress/tests/cluster-settings/oauth.cy.ts (0 hunks)
  • frontend/packages/integration-tests-cypress/tests/crd-extensions/console-external-log-link.cy.ts (0 hunks)
  • frontend/packages/integration-tests-cypress/tests/crud/add-storage-crud.cy.ts (0 hunks)
  • frontend/packages/integration-tests-cypress/tests/crud/annotations.cy.ts (0 hunks)
  • frontend/packages/integration-tests-cypress/tests/crud/bulk-create-resources.cy.ts (0 hunks)
  • frontend/packages/integration-tests-cypress/tests/crud/customresourcedefinition.cy.ts (0 hunks)
  • frontend/packages/integration-tests-cypress/tests/crud/environment.cy.ts (0 hunks)
  • frontend/packages/integration-tests-cypress/tests/crud/image-pull-secret.cy.ts (0 hunks)
  • frontend/packages/integration-tests-cypress/tests/crud/namespace-crud.cy.ts (0 hunks)
  • frontend/packages/integration-tests-cypress/tests/crud/other-routes.cy.ts (0 hunks)
  • frontend/packages/integration-tests-cypress/tests/crud/quotas.cy.ts (0 hunks)
  • frontend/packages/integration-tests-cypress/tests/crud/resource-crud.cy.ts (0 hunks)
  • frontend/packages/integration-tests-cypress/tests/crud/roles-rolebindings.cy.ts (0 hunks)
  • frontend/packages/integration-tests-cypress/tests/crud/secrets/add-to-workload.cy.ts (0 hunks)
  • frontend/packages/integration-tests-cypress/tests/crud/secrets/image-pull.cy.ts (0 hunks)
  • frontend/packages/integration-tests-cypress/tests/crud/secrets/key-value.cy.ts (0 hunks)
  • frontend/packages/integration-tests-cypress/tests/crud/secrets/source.cy.ts (0 hunks)
  • frontend/packages/integration-tests-cypress/tests/crud/secrets/webhook.cy.ts (0 hunks)
  • frontend/packages/integration-tests-cypress/tests/dashboards/cluster-dashboard.cy.ts (0 hunks)
  • frontend/packages/integration-tests-cypress/tests/dashboards/project-dashboard.cy.ts (0 hunks)
  • frontend/packages/integration-tests-cypress/tests/events/events.cy.ts (0 hunks)
  • frontend/packages/integration-tests-cypress/tests/favorite/favorite-option.cy.ts (0 hunks)
  • frontend/packages/integration-tests-cypress/tests/i18n/pseudolocalization.cy.ts (0 hunks)
  • frontend/packages/integration-tests-cypress/tests/storage/clone.cy.ts (0 hunks)
  • frontend/packages/integration-tests-cypress/tests/storage/create-storage-class.cy.ts (0 hunks)
  • frontend/packages/integration-tests-cypress/tests/storage/snapshot.cy.ts (0 hunks)
  • frontend/packages/integration-tests-cypress/views/guided-tour.ts (0 hunks)
  • frontend/packages/knative-plugin/integration-tests/cypress.config.js (1 hunks)
  • frontend/packages/knative-plugin/integration-tests/support/commands/hooks.ts (0 hunks)
  • frontend/packages/knative-plugin/integration-tests/support/pages/dev-perspective/common.ts (0 hunks)
  • frontend/packages/knative-plugin/integration-tests/support/pages/dev-perspective/test-serverless-function-page.ts (0 hunks)
  • frontend/packages/knative-plugin/integration-tests/support/step-definitions/serverless/actions-on-knative-revision.ts (0 hunks)
  • frontend/packages/operator-lifecycle-manager/integration-tests-cypress/cypress.config.js (1 hunks)
  • frontend/packages/operator-lifecycle-manager/integration-tests-cypress/tests/catalog-source-details.cy.ts (0 hunks)
  • frontend/packages/operator-lifecycle-manager/integration-tests-cypress/tests/create-namespace.cy.ts (0 hunks)
  • frontend/packages/operator-lifecycle-manager/integration-tests-cypress/tests/deprecated-operator-warnings.cy.ts (0 hunks)
  • frontend/packages/operator-lifecycle-manager/integration-tests-cypress/tests/operator-hub.cy.ts (0 hunks)
  • frontend/packages/operator-lifecycle-manager/integration-tests-cypress/tests/operator-install-global.cy.ts (0 hunks)
  • frontend/packages/operator-lifecycle-manager/integration-tests-cypress/tests/operator-install-single-namespace.cy.ts (0 hunks)
  • frontend/packages/operator-lifecycle-manager/integration-tests-cypress/tests/operator-uninstall.cy.ts (0 hunks)
  • frontend/packages/shipwright-plugin/integration-tests/cypress.config.js (1 hunks)
  • frontend/packages/shipwright-plugin/integration-tests/support/commands/hooks.ts (0 hunks)
  • frontend/packages/shipwright-plugin/integration-tests/support/step-definitions/common/common.ts (0 hunks)
  • frontend/packages/topology/integration-tests/cypress.config.js (1 hunks)
  • frontend/packages/topology/integration-tests/support/commands/hooks.ts (0 hunks)
  • frontend/packages/topology/integration-tests/support/pages/topology/topology-page.ts (0 hunks)
  • frontend/packages/topology/integration-tests/support/step-definitions/common/topology.ts (0 hunks)
  • frontend/packages/topology/integration-tests/support/step-definitions/topology/chart-view.ts (0 hunks)
  • frontend/packages/topology/integration-tests/support/step-definitions/topology/poddisruptionbdget-warning.ts (0 hunks)
  • frontend/packages/topology/integration-tests/support/step-definitions/topology/resource-quota-warning.ts (0 hunks)
  • frontend/packages/topology/integration-tests/support/step-definitions/topology/workload-sidebar.ts (0 hunks)
  • frontend/packages/webterminal-plugin/integration-tests/cypress.config.js (1 hunks)
  • frontend/packages/webterminal-plugin/integration-tests/support/commands/hooks.ts (0 hunks)
  • frontend/packages/webterminal-plugin/integration-tests/support/step-definitions/common/webTerminal.ts (0 hunks)
  • frontend/packages/webterminal-plugin/integration-tests/support/step-definitions/web-terminal/web-terminal-adminuser.ts (0 hunks)
💤 Files with no reviewable changes (73)
  • frontend/packages/helm-plugin/integration-tests/support/commands/hooks.ts
  • frontend/packages/integration-tests-cypress/tests/crud/annotations.cy.ts
  • frontend/packages/integration-tests-cypress/tests/crud/namespace-crud.cy.ts
  • frontend/packages/integration-tests-cypress/tests/app/template.cy.ts
  • frontend/packages/integration-tests-cypress/tests/dashboards/project-dashboard.cy.ts
  • frontend/packages/integration-tests-cypress/tests/crud/add-storage-crud.cy.ts
  • frontend/packages/operator-lifecycle-manager/integration-tests-cypress/tests/create-namespace.cy.ts
  • frontend/packages/integration-tests-cypress/tests/crud/secrets/source.cy.ts
  • frontend/packages/topology/integration-tests/support/commands/hooks.ts
  • frontend/packages/topology/integration-tests/support/step-definitions/common/topology.ts
  • frontend/packages/integration-tests-cypress/tests/crud/bulk-create-resources.cy.ts
  • frontend/packages/integration-tests-cypress/tests/app/poll-console-updates.cy.ts
  • frontend/packages/operator-lifecycle-manager/integration-tests-cypress/tests/operator-install-single-namespace.cy.ts
  • frontend/packages/dev-console/integration-tests/support/step-definitions/customization/configure-perspectives.ts
  • frontend/packages/integration-tests-cypress/support/admin.ts
  • frontend/packages/topology/integration-tests/support/step-definitions/topology/workload-sidebar.ts
  • frontend/packages/helm-plugin/integration-tests/support/step-definitions/common/common.ts
  • frontend/packages/console-telemetry-plugin/integration-tests/support/commands/hooks.ts
  • frontend/packages/webterminal-plugin/integration-tests/support/commands/hooks.ts
  • frontend/packages/operator-lifecycle-manager/integration-tests-cypress/tests/catalog-source-details.cy.ts
  • frontend/packages/integration-tests-cypress/tests/app/filtering-and-searching.cy.ts
  • frontend/packages/integration-tests-cypress/tests/crud/secrets/key-value.cy.ts
  • frontend/packages/integration-tests-cypress/tests/dashboards/cluster-dashboard.cy.ts
  • frontend/packages/topology/integration-tests/support/step-definitions/topology/poddisruptionbdget-warning.ts
  • frontend/packages/integration-tests-cypress/tests/crud/roles-rolebindings.cy.ts
  • frontend/packages/shipwright-plugin/integration-tests/support/step-definitions/common/common.ts
  • frontend/packages/operator-lifecycle-manager/integration-tests-cypress/tests/operator-hub.cy.ts
  • frontend/packages/integration-tests-cypress/tests/app/yaml-editor-settings.cy.ts
  • frontend/packages/topology/integration-tests/support/pages/topology/topology-page.ts
  • frontend/packages/dev-console/integration-tests/support/pages/app.ts
  • frontend/packages/integration-tests-cypress/tests/cluster-settings/oauth.cy.ts
  • frontend/packages/integration-tests-cypress/tests/crd-extensions/console-external-log-link.cy.ts
  • frontend/packages/integration-tests-cypress/tests/storage/create-storage-class.cy.ts
  • frontend/packages/topology/integration-tests/support/step-definitions/topology/chart-view.ts
  • frontend/packages/integration-tests-cypress/tests/crud/secrets/webhook.cy.ts
  • frontend/packages/integration-tests-cypress/tests/storage/clone.cy.ts
  • frontend/packages/integration-tests-cypress/tests/app/start-job-from-cronjob.cy.ts
  • frontend/packages/integration-tests-cypress/tests/crud/secrets/image-pull.cy.ts
  • frontend/packages/dev-console/integration-tests/support/pages/functions/createGitWorkload.ts
  • frontend/packages/integration-tests-cypress/tests/crud/quotas.cy.ts
  • frontend/packages/knative-plugin/integration-tests/support/pages/dev-perspective/test-serverless-function-page.ts
  • frontend/packages/operator-lifecycle-manager/integration-tests-cypress/tests/operator-install-global.cy.ts
  • frontend/packages/knative-plugin/integration-tests/support/commands/hooks.ts
  • frontend/packages/dev-console/integration-tests/support/step-definitions/common/common.ts
  • frontend/packages/shipwright-plugin/integration-tests/support/commands/hooks.ts
  • frontend/packages/dev-console/integration-tests/support/step-definitions/topology/create-workloads.ts
  • frontend/packages/operator-lifecycle-manager/integration-tests-cypress/tests/operator-uninstall.cy.ts
  • frontend/packages/dev-console/integration-tests/support/step-definitions/common/operators.ts
  • frontend/packages/integration-tests-cypress/tests/app/node-terminal.cy.ts
  • frontend/packages/integration-tests-cypress/tests/i18n/pseudolocalization.cy.ts
  • frontend/packages/webterminal-plugin/integration-tests/support/step-definitions/web-terminal/web-terminal-adminuser.ts
  • frontend/packages/dev-console/integration-tests/support/pages/functions/checkDeveloperPerspective.ts
  • frontend/packages/integration-tests-cypress/tests/crud/customresourcedefinition.cy.ts
  • frontend/packages/integration-tests-cypress/tests/crud/secrets/add-to-workload.cy.ts
  • frontend/packages/integration-tests-cypress/tests/app/demo-dynamic-plugin.cy.ts
  • frontend/packages/integration-tests-cypress/tests/favorite/favorite-option.cy.ts
  • frontend/packages/integration-tests-cypress/views/guided-tour.ts
  • frontend/packages/integration-tests-cypress/tests/events/events.cy.ts
  • frontend/packages/integration-tests-cypress/tests/crud/environment.cy.ts
  • frontend/packages/dev-console/integration-tests/support/step-definitions/health-checks/add-health-checks-topology-sidebar.ts
  • frontend/packages/webterminal-plugin/integration-tests/support/step-definitions/common/webTerminal.ts
  • frontend/packages/integration-tests-cypress/tests/crud/image-pull-secret.cy.ts
  • frontend/packages/integration-tests-cypress/tests/app/resource-log.cy.ts
  • frontend/packages/topology/integration-tests/support/step-definitions/topology/resource-quota-warning.ts
  • frontend/packages/integration-tests-cypress/tests/crud/resource-crud.cy.ts
  • frontend/packages/integration-tests-cypress/tests/storage/snapshot.cy.ts
  • frontend/packages/integration-tests-cypress/tests/app/masthead.cy.ts
  • frontend/packages/integration-tests-cypress/tests/app/overview.cy.ts
  • frontend/packages/integration-tests-cypress/tests/crud/other-routes.cy.ts
  • frontend/packages/operator-lifecycle-manager/integration-tests-cypress/tests/deprecated-operator-warnings.cy.ts
  • frontend/packages/integration-tests-cypress/tests/app/debug-pod.cy.ts
  • frontend/packages/knative-plugin/integration-tests/support/step-definitions/serverless/actions-on-knative-revision.ts
  • frontend/packages/knative-plugin/integration-tests/support/pages/dev-perspective/common.ts
🧰 Additional context used
📓 Path-based instructions (1)
**

⚙️ CodeRabbit configuration file

-Focus on major issues impacting performance, readability, maintainability and security. Avoid nitpicks and avoid verbosity.

Files:

  • frontend/packages/helm-plugin/integration-tests/cypress.config.js
  • frontend/packages/console-telemetry-plugin/integration-tests/cypress.config.js
  • frontend/packages/dev-console/integration-tests/cypress.config.js
  • frontend/packages/topology/integration-tests/cypress.config.js
  • frontend/packages/webterminal-plugin/integration-tests/cypress.config.js
  • frontend/packages/console-app/src/features/integration-test.ts
  • frontend/packages/console-app/src/consts.ts
  • frontend/packages/operator-lifecycle-manager/integration-tests-cypress/cypress.config.js
  • frontend/packages/dev-console/integration-tests/features/getting-started/getting-started-tour-dev-perspective.feature
  • frontend/packages/shipwright-plugin/integration-tests/cypress.config.js
  • frontend/packages/integration-tests-cypress/cypress.config.js
  • frontend/packages/knative-plugin/integration-tests/cypress.config.js
  • frontend/packages/integration-tests-cypress/tests/app/auth-multiuser-login.cy.ts
  • frontend/packages/console-app/package.json
  • frontend/packages/integration-tests-cypress/tests/app/admission-webhook-warning-notifications.cy.ts
  • frontend/packages/dev-console/console-extensions.json
  • frontend/packages/console-app/console-extensions.json
🧬 Code graph analysis (1)
frontend/packages/console-app/src/features/integration-test.ts (2)
frontend/packages/console-dynamic-plugin-sdk/src/extensions/feature-flags.ts (1)
  • FeatureFlagHandler (46-46)
frontend/packages/console-app/src/consts.ts (1)
  • FLAG_CYPRESS (3-3)
🔇 Additional comments (17)
frontend/packages/dev-console/integration-tests/features/getting-started/getting-started-tour-dev-perspective.feature (1)

5-5: Comment accurately documents test behavior

The note about the automatic guided tour being disabled under Cypress explains why these scenarios are now manual-only; no issues from a test-maintainability perspective.

frontend/packages/dev-console/console-extensions.json (1)

26-33: Correctly gates dev guided tour behind CYPRESS flag

Adding flags.disallowed: ["CYPRESS"] to the dev guided-tour extension cleanly disables it in the integration-test environment while leaving normal behavior unchanged. The structure is valid and consistent with other flag usage.

frontend/packages/helm-plugin/integration-tests/cypress.config.js (1)

35-52: UA configuration matches integration-test flagging approach

Setting userAgent: 'ConsoleIntegrationTestEnvironment' in the Helm e2e config is consistent with the new CYPRESS flag detection strategy and should not affect non-test environments. Please verify that the isIntegrationTestEnvironment handler is matching exactly this string.

frontend/packages/console-telemetry-plugin/integration-tests/cypress.config.js (1)

33-51: Consistent userAgent for integration-test detection

The added userAgent: 'ConsoleIntegrationTestEnvironment' keeps this suite aligned with the global integration-test environment detection; no issues seen. Please confirm all Cypress integration suites use the same UA value to avoid partial behavior.

frontend/packages/shipwright-plugin/integration-tests/cypress.config.js (1)

32-50: Shipwright tests correctly opt into integration-test UA

Using userAgent: 'ConsoleIntegrationTestEnvironment' here matches the pattern used elsewhere and should reliably trigger the CYPRESS flag for these tests. Please verify this suite runs under the same Cypress version/config expectations as the others.

frontend/packages/dev-console/integration-tests/cypress.config.js (1)

35-53: Dev-console Cypress config wired into integration-test UA

The added userAgent: 'ConsoleIntegrationTestEnvironment' is essential for the CYPRESS flag to suppress the guided tour in these tests and looks correctly configured. Please confirm all prior explicit guided tour close calls in this suite have been removed and that tests pass relying solely on this flag.

frontend/packages/topology/integration-tests/cypress.config.js (1)

37-55: Topology tests hooked into shared integration-test UA

Configuring userAgent: 'ConsoleIntegrationTestEnvironment' here keeps topology tests consistent with the global integration-test detection mechanism; no issues apparent. Please double-check that any topology-specific guided tour hooks have been removed now that gating is done via the CYPRESS flag.

frontend/packages/operator-lifecycle-manager/integration-tests-cypress/cypress.config.js (1)

39-39: LGTM: Clean Cypress userAgent configuration.

The addition of the custom userAgent allows the integration test handler to detect when Cypress is running. The string value matches the constant used in the feature flag handler.

frontend/packages/knative-plugin/integration-tests/cypress.config.js (1)

51-51: LGTM: Consistent userAgent configuration.

frontend/packages/webterminal-plugin/integration-tests/cypress.config.js (1)

51-51: LGTM: Consistent userAgent configuration.

frontend/packages/integration-tests-cypress/cypress.config.js (1)

39-39: LGTM: Consistent userAgent configuration.

frontend/packages/console-app/src/consts.ts (1)

3-3: LGTM: Clean constant addition.

The constant follows the existing naming convention and is appropriately placed with other flag constants.

frontend/packages/console-app/package.json (1)

30-30: LGTM: Module exposure follows existing pattern.

frontend/packages/console-app/console-extensions.json (2)

13-18: LGTM: Feature flag handler properly wired.

The console.flag entry correctly references the handler exposed in package.json.


24-27: LGTM: Guided tour correctly disabled for Cypress.

The disallowed flag configuration ensures the guided tour won't render when the CYPRESS flag is active, which achieves the PR objective.

frontend/packages/console-app/src/features/integration-test.ts (1)

6-11: Code is correct. All Cypress configuration files across the repository set userAgent: 'ConsoleIntegrationTestEnvironment', confirming that the exact string comparison works as expected. Cypress completely replaces the userAgent string with this value.

frontend/packages/integration-tests-cypress/tests/app/admission-webhook-warning-notifications.cy.ts (1)

1-167: Verify the mechanism preventing guided tours from appearing during Cypress test execution.

While the integration-test feature flag is properly configured (setting FLAG_CYPRESS based on the Cypress userAgent 'ConsoleIntegrationTestEnvironment'), the codebase does not show a clear mechanism using this flag to disable or auto-complete guided tours during test execution. The filterTourBasedonPermissionAndFlag() function exists to filter tour steps by feature flags, but no tour steps are configured with the FLAG_CYPRESS requirement, and tours are not pre-marked as completed in the test environment. Ensure the removal of guidedTour.close() is paired with an alternative mechanism (such as marking tours as completed for Cypress or adding FLAG_CYPRESS to tour step filters) to prevent tours from interfering with test execution.

@logonoff
Copy link
Member Author

/label acknowledge-critical-fixes-only

@openshift-ci openshift-ci bot added the acknowledge-critical-fixes-only Indicates if the issuer of the label is OK with the policy. label Dec 15, 2025
@logonoff logonoff force-pushed the xcx-everything-is-guided-tour branch 2 times, most recently from 1b89c42 to 876291f Compare December 15, 2025 03:44
@logonoff
Copy link
Member Author

/assign @yapei

@logonoff logonoff force-pushed the xcx-everything-is-guided-tour branch from 876291f to ed7e504 Compare December 15, 2025 03:55
@logonoff logonoff force-pushed the xcx-everything-is-guided-tour branch from ed7e504 to ea2ec9d Compare December 15, 2025 12:45
@logonoff
Copy link
Member Author

Verified that guided tour no longer appears when the cypress user agent is used

/verified by @logonoff

@openshift-ci-robot openshift-ci-robot added the verified Signifies that the PR passed pre-merge verification criteria label Dec 15, 2025
@openshift-ci-robot
Copy link
Contributor

@logonoff: This PR has been marked as verified by @logonoff.

Details

In response to this:

Verified that guided tour no longer appears when the cypress user agent is used

/verified by @logonoff

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 openshift-eng/jira-lifecycle-plugin repository.

@Leo6Leo
Copy link
Contributor

Leo6Leo commented Dec 15, 2025

/lgtm

@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label Dec 15, 2025
@openshift-ci
Copy link
Contributor

openshift-ci bot commented Dec 15, 2025

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: Leo6Leo, logonoff

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

The pull request process is described 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

@openshift-ci
Copy link
Contributor

openshift-ci bot commented Dec 15, 2025

@logonoff: 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.

@openshift-merge-bot openshift-merge-bot bot merged commit 336f9f8 into openshift:main Dec 15, 2025
8 checks passed
@logonoff logonoff deleted the xcx-everything-is-guided-tour branch December 15, 2025 19:02
@logonoff
Copy link
Member Author

/cherry-pick release-4.21

@openshift-cherrypick-robot

@logonoff: new pull request created: #15845

Details

In response to this:

/cherry-pick release-4.21

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.

@logonoff logonoff changed the title NO-JIRA: disable guided tour when cypress is running OCPBUGS-66045: disable guided tour when cypress is running Dec 16, 2025
@openshift-ci-robot
Copy link
Contributor

@logonoff: Jira Issue Verification Checks: Jira Issue OCPBUGS-66045
✔️ This pull request was pre-merge verified.
✔️ All associated pull requests have merged.
✔️ All associated, merged pull requests were pre-merge verified.

Jira Issue OCPBUGS-66045 has been moved to the MODIFIED state and will move to the VERIFIED state when the change is available in an accepted nightly payload. 🕓

Details

In response to this:

Hopefully the final solution to #15829, #15776, #14928, #14866, ...

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 openshift-eng/jira-lifecycle-plugin repository.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

acknowledge-critical-fixes-only Indicates if the issuer of the label is OK with the policy. approved Indicates a PR has been approved by an approver from all required OWNERS files. component/core Related to console core functionality component/dev-console Related to dev-console component/helm Related to helm-plugin component/knative Related to knative-plugin component/olm Related to OLM component/topology Related to topology docs-approved Signifies that Docs has signed off on this PR jira/valid-reference Indicates that this PR references a valid Jira ticket of any type. kind/cypress Related to Cypress e2e integration testing lgtm Indicates that a PR is ready to be merged. px-approved Signifies that Product Support has signed off on this PR verified Signifies that the PR passed pre-merge verification criteria

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants