Skip to content

OCPNETUI-14: Add Cypress E2E tests for network-to-VM cross-navigation - #493

Open
lkladnit wants to merge 1 commit into
openshift:mainfrom
lkladnit:ocpnetui-14
Open

OCPNETUI-14: Add Cypress E2E tests for network-to-VM cross-navigation#493
lkladnit wants to merge 1 commit into
openshift:mainfrom
lkladnit:ocpnetui-14

Conversation

@lkladnit

@lkladnit lkladnit commented Sep 9, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Add Cypress E2E coverage for the Virtual Machines tab on NAD, UDN, and CUDN detail pages (OCPNETUI-14)
  • Cover tab visibility, empty state, VM list accuracy, click-through navigation to VM details, name filtering, and pagination (>20 VMs)
  • Auto-skip VM-dependent scenarios when KubeVirt is not installed; assert NAD tab is hidden without KubeVirt

Test plan

  • BRIDGE_BASE_ADDRESS=<console> BRIDGE_KUBEADMIN_PASSWORD=<pwd> node --max-old-space-size=4096 node_modules/.bin/cypress run --project integration-tests --env openshift=true --spec integration-tests/tests/network-vm-navigation.cy.ts
  • On a non-CNV cluster: 4 tests pass (console login, UDN/CUDN tab visibility, NAD tab hidden)
  • On a CNV cluster: all 14 tests pass including VM list, navigation, filter, and pagination
  • Confirm test namespaces and CUDN are cleaned up after the suite

Made with Cursor

@openshift-merge-bot

Copy link
Copy Markdown
Contributor

Pipeline controller notification
This repo is configured to use the pipeline controller. Second-stage tests will be triggered either automatically or after lgtm label is added, depending on the repository configuration. The pipeline controller will automatically detect which contexts are required and will utilize /test Prow commands to trigger the second stage.

For optional jobs, comment /test ? to see a list of all defined jobs. To trigger manually all jobs from second stage use /pipeline required command.

This repository is configured in: LGTM mode

@openshift-ci-robot openshift-ci-robot added the jira/valid-reference Indicates that this PR references a valid Jira ticket of any type. label Sep 9, 2026
@openshift-ci-robot

openshift-ci-robot commented Sep 9, 2026

Copy link
Copy Markdown

@lkladnit: This pull request references OCPNETUI-14 which is a valid jira issue.

Warning: The referenced jira issue has an invalid target version for the target branch this PR targets: expected the story to target the "5.1.0" version, but no target version was set.

Details

In response to this:

Summary

  • Add Cypress E2E coverage for the Virtual Machines tab on NAD, UDN, and CUDN detail pages (OCPNETUI-14)
  • Cover tab visibility, empty state, VM list accuracy, click-through navigation to VM details, name filtering, and pagination (>20 VMs)
  • Auto-skip VM-dependent scenarios when KubeVirt is not installed; assert NAD tab is hidden without KubeVirt

Test plan

  • BRIDGE_BASE_ADDRESS=<console> BRIDGE_KUBEADMIN_PASSWORD=<pwd> node --max-old-space-size=4096 node_modules/.bin/cypress run --project integration-tests --env openshift=true --spec integration-tests/tests/network-vm-navigation.cy.ts
  • On a non-CNV cluster: 4 tests pass (console login, UDN/CUDN tab visibility, NAD tab hidden)
  • On a CNV cluster: all 14 tests pass including VM list, navigation, filter, and pagination
  • Confirm test namespaces and CUDN are cleaned up after the suite

Made with Cursor

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

coderabbitai Bot commented Sep 9, 2026

Copy link
Copy Markdown

Important

  • 🔍 Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

⚙️ Run configuration

Configuration used: Repository: openshift/coderabbit/.coderabbit.yaml

Review profile: CHILL

Plan: Advanced

Run ID: a90fffd3-f852-4ae8-a885-85ebbbbbbcf5


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

@openshift-ci

openshift-ci Bot commented Sep 9, 2026

Copy link
Copy Markdown

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: lkladnit

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 openshift-ci Bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Sep 9, 2026
@lkladnit lkladnit self-assigned this Sep 9, 2026
Fix lint issues and improve test stability (VM table selectors, pagination,
filtering, cleanup timeouts, and ignorable plugin manifest load errors).

Co-authored-by: Cursor <cursoragent@cursor.com>
@lkladnit

lkladnit commented Sep 10, 2026

Copy link
Copy Markdown
Contributor Author

OCPNETUI-14: network-to-VM cross-navigation
✓ connects to the OpenShift console (72776ms)
UDN Virtual Machines tab
✓ shows the Virtual Machines tab on UDN details (21145ms)
✓ shows an empty state when no VMs are attached (20473ms)
✓ navigates to the VM details page when a VM name is clicked (41016ms)
CUDN Virtual Machines tab
✓ shows the Virtual Machines tab on CUDN details (38032ms)
✓ lists VMs attached across member namespaces (31414ms)
✓ navigates to a VM in another namespace from the CUDN tab (52922ms)
NAD Virtual Machines tab
- omits the Virtual Machines tab when KubeVirt is not installed
✓ shows the Virtual Machines tab when KubeVirt is installed (50023ms)
✓ shows an empty state when no VMs use the NAD (52373ms)
✓ lists a single attached VM and navigates to its details page (59000ms)
✓ lists multiple attached VMs on the same NAD (33592ms)
✓ filters VMs by name in the table search (40297ms)
✓ paginates when more than 20 VMs are attached (68693ms)

@openshift-ci

openshift-ci Bot commented Sep 10, 2026

Copy link
Copy Markdown

@lkladnit: The following test failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name Commit Details Required Rerun command
ci/prow/images 0f582b0 link true /test images

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.

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

Labels

approved Indicates a PR has been approved by an approver from all required OWNERS files. jira/valid-reference Indicates that this PR references a valid Jira ticket of any type.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants