Skip to content

fix(ui-tests): Update scanner e2e tests to default to v4 - #22648

Open
dvail wants to merge 2 commits into
mc/remove-scanner-v2-installationfrom
dv/remove-scanner-v2-e2e-fixes
Open

fix(ui-tests): Update scanner e2e tests to default to v4#22648
dvail wants to merge 2 commits into
mc/remove-scanner-v2-installationfrom
dv/remove-scanner-v2-e2e-fixes

Conversation

@dvail

@dvail dvail commented Sep 4, 2026

Copy link
Copy Markdown
Contributor

Description

Fixes UI e2e tests to handle full removal of Scanner V2.

  • Asserts on scanner-v4 UI elements instead of scanner
  • Intercepts credential expiry requests for SCANNER_V4 instead of SCANNER

Note

There is one set of test failures that is not fixed by this change - Legacy Platform CVE page tests. This needs to be fixed in master in the same way the new "Kubernetes Components" page removal was so will not be included in this PR. The change should be picked up either during a rebase, or a separate PR targeting the scanner-v2 removal branch. #22649

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

  • added unit tests
  • added e2e tests
  • added regression tests
  • added compatibility tests
  • modified existing tests

How I validated my change

Local Cypress test runs

CI (TBD)

@openshift-ci

openshift-ci Bot commented Sep 4, 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

@github-actions

github-actions Bot commented Sep 4, 2026

Copy link
Copy Markdown
Contributor

🚀 Build Images Ready

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

export MAIN_IMAGE_TAG=5.0.x-225-geb7607cea5

@dvail
dvail changed the base branch from mc/remove-scanner-v2-installation to master September 4, 2026 12:46
@dvail

dvail commented Sep 4, 2026

Copy link
Copy Markdown
Contributor Author

/test gke-ui-e2e-tests

@dvail
dvail changed the base branch from master to mc/remove-scanner-v2-installation September 4, 2026 12:47
@dvail
dvail changed the base branch from mc/remove-scanner-v2-installation to master September 4, 2026 12:47
@codecov

codecov Bot commented Sep 4, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 51.39%. Comparing base (de68adf) to head (eb7607c).

Additional details and impacted files
@@                          Coverage Diff                          @@
##           mc/remove-scanner-v2-installation   #22648      +/-   ##
=====================================================================
- Coverage                              51.46%   51.39%   -0.07%     
=====================================================================
  Files                                   2886     2880       -6     
  Lines                                 181300   180756     -544     
=====================================================================
- Hits                                   93299    92895     -404     
+ Misses                                 79837    79731     -106     
+ Partials                                8164     8130      -34     
Flag Coverage Δ
go-unit-tests 51.39% <ø> (-0.07%) ⬇️

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.

@dvail dvail changed the title fix(ui-tests): Update scanner e2e test waits to v4 fix(ui-tests): Update scanner e2e tests to default to v4 Sep 4, 2026
@dvail
dvail changed the base branch from master to mc/remove-scanner-v2-installation September 4, 2026 13:11
@dvail
dvail marked this pull request as ready for review September 4, 2026 13:18
@dvail
dvail requested a review from a team as a code owner September 4, 2026 13:18
@dvail
dvail requested a review from mclasmeier September 4, 2026 13:18

export function interactAndWaitForScannerCertificateDownload(interactionCallback) {
interactAndWaitForCertificateDownload('scanner', interactionCallback);
export function interactAndWaitForScannerV4CertificateDownload(interactionCallback) {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Was the renaming by human or agent? Versus just change implementation.

Not requesting change, but out of curiosity.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was an agent. I debated on reverting and leaving it as just "Scanner". (Without both v2 and v4 coexisting, is there value in calling out the version in this way?)

I didn't feel strongly enough to change it, but if you think the original is better with only an implementation change it will be quick to undo.


const statusSelector =
'div:has(.pf-v6-c-card__header:contains("StackRox Scanner Vulnerability Definitions"))';
const statusSelector = 'div:has(.pf-v6-c-card__header:contains("Scanner V4 Vulnerabilities"))';

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Change like this is what I expected elsewhere.

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

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants