Skip to content

Fix E2E test failures #2362

Merged
Pedro-S-Abreu merged 2 commits intokubev2v:mainfrom
Pedro-S-Abreu:fix/e2e-test-fixes
Apr 16, 2026
Merged

Fix E2E test failures #2362
Pedro-S-Abreu merged 2 commits intokubev2v:mainfrom
Pedro-S-Abreu:fix/e2e-test-fixes

Conversation

@Pedro-S-Abreu
Copy link
Copy Markdown
Collaborator

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

📝 Links

None

📝 Description

Fix broken E2E test locators and assertions for node selector, customization scripts, i18n smoke, and plan hooks.

🎥 Demo

N/A — test-only changes.

📝 CC://

@Pedro-S-Abreu Pedro-S-Abreu changed the title Fix E2E test failures in node selector, customization scripts, and i18n WIP Fix E2E test failures Apr 15, 2026
@codecov-commenter
Copy link
Copy Markdown

codecov-commenter commented Apr 15, 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 (4eb5ff9).
⚠️ Report is 1036 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    #2362       +/-   ##
===========================================
- Coverage   36.81%   16.41%   -20.41%     
===========================================
  Files         158     1198     +1040     
  Lines        2548    21863    +19315     
  Branches      599     4345     +3746     
===========================================
+ 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 changed the title WIP Fix E2E test failures Fix E2E test failures Apr 15, 2026
- Add data-testid to node selector delete button and update
  TargetNodeSelectorModal to use it, fixing wrong-row deletion
- Fix ScriptEditModal locators: use correct test ID prefixes
  (field-row- and add-mapping-button) and fix removeScript targeting
- Add data-testid="scripts-none" to ScriptsSection empty state and
  update AutomationTab assertion to match actual rendered text
- Replace conditionally-rendered "Create migration plan" button
  assertion in i18n smoke test with always-visible "Migration plans"
  card title
- Add missing hook_template.yaml test asset for plan-hooks tests

Resolves: None
Signed-off-by: Pedro Abreu <pabreu@redhat.com>
Use remove-row-{index} instead of fragile row.locator('button').last().

Resolves: None
Signed-off-by: Pedro Abreu <pabreu@redhat.com>
@avivtur avivtur force-pushed the fix/e2e-test-fixes branch from f17c9b9 to 4eb5ff9 Compare April 16, 2026 10:16
@sonarqubecloud
Copy link
Copy Markdown

@Pedro-S-Abreu Pedro-S-Abreu added this pull request to the merge queue Apr 16, 2026
Merged via the queue into kubev2v:main with commit c4fc028 Apr 16, 2026
15 checks passed
@Pedro-S-Abreu Pedro-S-Abreu deleted the fix/e2e-test-fixes branch April 16, 2026 12:21
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.

3 participants