Skip to content

Comments

ROX-32674: Fix flaky base images delete E2E test#19137

Draft
sachaudh wants to merge 1 commit intomasterfrom
ROX-32674-fix-base-images-delete-test
Draft

ROX-32674: Fix flaky base images delete E2E test#19137
sachaudh wants to merge 1 commit intomasterfrom
ROX-32674-fix-base-images-delete-test

Conversation

@sachaudh
Copy link
Contributor

Description

Fixes a flaky E2E test in the base images delete flow.

Root cause: Cypress crashed with $el.get(...).scrollIntoView is not a function because the test stored a <tr> as an alias and Cypress tried to scroll it into view before clicking the kebab button inside it. <tr> elements don't reliably support scrollIntoView in all table contexts.

Changes:

  • Replace .parents('tr').as('targetRow') + .find(...) with a direct tr:has(...) selector (consistent with other tests in the codebase)
  • Use interactAndWaitForResponses in addBaseImage and the delete flow to wait for both the mutation and the subsequent list GET refetch, eliminating races where the next step runs before the UI has updated
  • Assert modal is closed via .should('not.exist') rather than manually clicking Close

User-facing documentation

  • CHANGELOG.md is updated OR update is not needed

Testing and quality

  • the change is production ready: the change is GA, or otherwise the functionality is gated by a feature flag
  • CI results are inspected

Automated testing

  • modified existing tests

How I validated my change

  • TypeScript check passes with no errors
  • Full validation requires a cluster with ROX_BASE_IMAGE_DETECTION enabled

Use direct tr:has() selector to avoid scrollIntoView crash on <tr>
alias, and use interactAndWaitForResponses to eliminate races after
mutations.

Signed-off-by: Saif Chaudhry <schaudhr@redhat.com>
@openshift-ci
Copy link

openshift-ci bot commented Feb 23, 2026

Skipping CI for Draft Pull Request.
If you want CI signal for your change, please convert it to an actual PR.
You can still manually trigger a test run with /test all

@sachaudh
Copy link
Contributor Author

/test gke-ui-e2e-tests

@rhacs-bot
Copy link
Contributor

Images are ready for the commit at 279ddeb.

To use with deploy scripts, first export MAIN_IMAGE_TAG=4.11.x-154-g279ddeb912.

@codecov
Copy link

codecov bot commented Feb 23, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 49.51%. Comparing base (d3feadf) to head (279ddeb).
⚠️ Report is 5 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master   #19137      +/-   ##
==========================================
- Coverage   49.52%   49.51%   -0.01%     
==========================================
  Files        2672     2672              
  Lines      201665   201665              
==========================================
- Hits        99879    99861      -18     
- Misses      94327    94344      +17     
- Partials     7459     7460       +1     
Flag Coverage Δ
go-unit-tests 49.51% <ø> (-0.01%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

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

🚀 New features to boost your workflow:
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@sachaudh
Copy link
Contributor Author

/test gke-ui-e2e-tests

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants