Skip to content

Commit

Permalink
ci/ui: use latest stable ISO for maintenance test
Browse files Browse the repository at this point in the history
  • Loading branch information
juadk committed Feb 20, 2025
1 parent d452138 commit 125c65c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/cypress/latest/support/commands.ts
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,9 @@ Cypress.Commands.add('createMachReg', (
// Sometimes we want to test dev/staging operator version with stable OS version
} else if ( utils.isOsVersion('stable') && utils.isOperatorVersion('dev') || utils.isOperatorVersion('staging')) {
cy.contains(Cypress.env('iso_stable_os_version')).click();
// For maintenance, we need to select the last -1 version, the last one is the unstable one.
} else if (utils.isOperatorVersion('maintenance')) {
cy.get('.vs__dropdown-option').last().prev().click();
} else {
cy.contains('(unstable)').click();
}
Expand Down

0 comments on commit 125c65c

Please sign in to comment.