Skip to content

fix(ui): stabilize GCR image integration E2E test - #21337

Closed
davdhacs wants to merge 3 commits into
davdhacs/ui-e2efrom
davdhacs/fix-image-integrations-flake
Closed

davdhacs wants to merge 3 commits into
davdhacs/ui-e2efrom
davdhacs/fix-image-integrations-flake

Conversation

@davdhacs

Copy link
Copy Markdown
Contributor

Description

The integrations/imageIntegrations.test E2E test has a consistently failing assertion for the Google Container Registry (GCR) test case. The test asserts cy.get('[data-testid="add-integration"]').should('not.exist') immediately after visitIntegrationsTable without waiting for GCR-specific content to render.

On GKE with higher network latency, the page may not have fully settled before the assertion runs. The <a> button element (rendered as a.pf-v6-c-button.pf-m-primary) is found in the DOM within the 8s timeout, causing consistent failure.

The fix adds a preceding assertion that waits for the GCR-specific deprecation notice alert to appear before asserting the button's absence. This ensures the React component has rendered with the correct route props (type='google', isCreationDisabled=true) before checking.

User-facing documentation

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

The fix adds a gate assertion that waits for the GCR deprecation notice (cy.get('.pf-v6-c-alert:contains("Deprecation notice")').should('exist')) before checking button absence. This is a standard Cypress pattern for ensuring page state before negative assertions. Will validate on the next GKE E2E run.

The GCR test asserts that the "New integration" button does not exist,
but does so immediately after page visit without waiting for GCR-specific
content to render. On GKE with higher latency, the page may not have
fully settled before the assertion runs, causing a consistent failure.

Wait for the GCR-specific deprecation notice alert before asserting the
button's absence.

AI-assisted.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@openshift-ci

openshift-ci Bot commented Jun 23, 2026

Copy link
Copy Markdown

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

@coderabbitai

coderabbitai Bot commented Jun 23, 2026 •

Copy link
Copy Markdown
Contributor

Important

Review skipped

Auto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Enterprise

Run ID: 073e9ba2-d721-4167-b1ba-95120d9bcf93

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch davdhacs/fix-image-integrations-flake

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

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

@github-actions

github-actions Bot commented Jun 23, 2026 •

Copy link
Copy Markdown
Contributor

🚀 Build Images Ready

Images are ready for commit cd5a7b0. To use with deploy scripts:

export MAIN_IMAGE_TAG=4.12.x-591-gcd5a7b049f

The previous fix waited for a deprecation notice alert that may not be
rendered in time. Wait for the IntegrationsTable "results found" h2
instead, which confirms the table component (and its button visibility
logic) has rendered.

AI-assisted change.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
davdhacs added a commit that referenced this pull request Jun 23, 2026
Test fixes belong in their own PRs (#21337, #21338, #21341) and
should not be merged into the ui-e2e workflow PR.

Partially generated by AI.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@davdhacs

Copy link
Copy Markdown
Contributor Author

/test gke-ui-e2e-tests

@openshift-ci

openshift-ci Bot commented Jul 16, 2026

Copy link
Copy Markdown

@davdhacs: No presubmit jobs available for stackrox/stackrox@davdhacs/ui-e2e

Details

In response to this:

/test gke-ui-e2e-tests

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.

@codecov

codecov Bot commented Jul 16, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 50.08%. Comparing base (611b103) to head (cd5a7b0).

Additional details and impacted files
@@                 Coverage Diff                 @@
##           davdhacs/ui-e2e   #21337      +/-   ##
===================================================
- Coverage            50.08%   50.08%   -0.01%     
===================================================
  Files                 2835     2835              
  Lines               217546   217546              
===================================================
- Hits                108958   108950       -8     
- Misses              100687   100695       +8     
  Partials              7901     7901              
Flag Coverage Δ
go-unit-tests 50.08% <ø> (-0.01%) ⬇️

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

☔ View full report in Codecov by Harness.
📢 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.

@davdhacs

Copy link
Copy Markdown
Contributor Author

Closing to trim active PR stack. Work preserved on branch — can reopen if needed.

@davdhacs davdhacs closed this Aug 12, 2026
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.

1 participant