Skip to content

[WIP] Resolves: MTV-4907 | Add CNV version gating and post-migration VM smoke test (part 2)#2364

Open
Pedro-S-Abreu wants to merge 3 commits intokubev2v:mainfrom
Pedro-S-Abreu:cnv-ui-test
Open

[WIP] Resolves: MTV-4907 | Add CNV version gating and post-migration VM smoke test (part 2)#2364
Pedro-S-Abreu wants to merge 3 commits intokubev2v:mainfrom
Pedro-S-Abreu:cnv-ui-test

Conversation

@Pedro-S-Abreu
Copy link
Copy Markdown
Collaborator

@Pedro-S-Abreu Pedro-S-Abreu commented Apr 16, 2026

📝 Links

📝 Description

Part 2 for MTV-4907 — adds CNV version gating to the Playwright E2E framework and a post-migration smoke test that verifies migrated VMs on the kubevirt VM details page.

  • Add requireCNVVersion() with optional semantics (tests run when CNV version is unknown, unlike MTV gating)
  • Auto-detect CNV version from cluster CSV during global setup
  • New VirtualMachineDetailsPage page object for kubevirt VM pages
  • Smoke test verifies each migrated VM: name, status, CPU|Memory, Network, Storage sections
  • Support DEFAULT_PLUGINS env var in start-console.sh

🎥 Demo

📝 CC://

@Pedro-S-Abreu Pedro-S-Abreu changed the title Resolves: MTV-4907 | Add CNV version gating and post-migration VM smoke test (part 2) [WIP] Resolves: MTV-4907 | Add CNV version gating and post-migration VM smoke test (part 2) Apr 16, 2026
@codecov-commenter
Copy link
Copy Markdown

codecov-commenter commented Apr 16, 2026

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 16.41%. Comparing base (13484d0) to head (885f688).
⚠️ Report is 1037 commits behind head on main.
❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@             Coverage Diff             @@
##             main    #2364       +/-   ##
===========================================
- Coverage   36.81%   16.41%   -20.41%     
===========================================
  Files         158     1198     +1040     
  Lines        2548    21863    +19315     
  Branches      599     4342     +3743     
===========================================
+ Hits          938     3588     +2650     
- Misses       1428    17572    +16144     
- Partials      182      703      +521     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@Pedro-S-Abreu Pedro-S-Abreu force-pushed the cnv-ui-test branch 4 times, most recently from 02244d9 to 2d07451 Compare April 16, 2026 20:28
Introduces CNV (OpenShift Virtualization) version gating for Playwright
tests, following the same pattern as MTV version gating but with optional
semantics — tests run by default when CNV version is unknown.

Key changes:
- Refactor version utilities into generic helpers parameterized by env var
- Add CNV version auto-detection from cluster CSV in global setup
- Add requireCNVVersion() for gating tests to specific CNV versions
- Add VirtualMachineDetailsPage page object for kubevirt VM pages
- Add post-migration smoke test verifying VMs on CNV overview page
- Support DEFAULT_PLUGINS env var in start-console.sh
- Always launch browser in global setup for version detection (with or
  without credentials)

Resolves: MTV-4907
Signed-off-by: Pedro Abreu <pabreu@redhat.com>
Scope the 'Migration plans' text locator to the main content area
so it does not match the hidden nav link in the collapsed sidebar.

Resolves: None
Signed-off-by: Pedro Abreu <pabreu@redhat.com>
Align playwright dependency with @playwright/test to avoid duplicate
nested versions. Add retry loop to apt-get update in ContainerFile
for transient mirror sync failures.

Resolves: None
Signed-off-by: Pedro Abreu <pabreu@redhat.com>
@sonarqubecloud
Copy link
Copy Markdown

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.

2 participants