From a35747650b1294ba59fa34e90bc997c8488f48cc Mon Sep 17 00:00:00 2001 From: Andy Pickering Date: Fri, 24 Apr 2026 11:36:07 +0900 Subject: [PATCH] PF5: Tests: Replace all console-image flags with the PR image When running tests in CI, replace all console images with the image for the PR being tested. This ensures the PR image is always used regardless of the OCP version being used. Made-with: Cursor --- tests/tests/lightspeed-install.cy.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/tests/lightspeed-install.cy.ts b/tests/tests/lightspeed-install.cy.ts index 93cf0db5..89131bb5 100644 --- a/tests/tests/lightspeed-install.cy.ts +++ b/tests/tests/lightspeed-install.cy.ts @@ -173,8 +173,8 @@ describe('OLS UI', () => { const args = csv.spec.install.spec.deployments[0].spec.template.spec.containers[0].args.map( (arg) => - arg.startsWith('--console-image-pf5=') - ? `--console-image-pf5=${Cypress.env('CONSOLE_IMAGE')}` + arg.startsWith('--console-image') + ? arg.replace(/=.*/, `=${Cypress.env('CONSOLE_IMAGE')}`) : arg, );