Skip to content

Commit 44407e6

Browse files
kyotoopenshift-cherrypick-robot
authored andcommitted
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
1 parent 9abbc4f commit 44407e6

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

tests/tests/lightspeed-install.cy.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -173,8 +173,8 @@ describe('OLS UI', () => {
173173
const args =
174174
csv.spec.install.spec.deployments[0].spec.template.spec.containers[0].args.map(
175175
(arg) =>
176-
arg.startsWith('--console-image=')
177-
? `--console-image=${Cypress.env('CONSOLE_IMAGE')}`
176+
arg.startsWith('--console-image')
177+
? arg.replace(/=.*/, `=${Cypress.env('CONSOLE_IMAGE')}`)
178178
: arg,
179179
);
180180

0 commit comments

Comments
 (0)