Skip to content

Commit

Permalink
ci/ui: fix how staging is tagged in UI
Browse files Browse the repository at this point in the history
  • Loading branch information
juadk committed Aug 31, 2023
1 parent 29df3b4 commit b4ed9c6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 14 deletions.
18 changes: 5 additions & 13 deletions tests/cypress/latest/e2e/unit_tests/upgrade.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -84,19 +84,11 @@ describe('Upgrade tests', () => {
.click();
cy.getBySel('os-version-box')
.click()
// TODO: remove hardcoded staging version
if (upgradeOsChannel == "staging") {
cy.getBySel('os-version-box')
.parents()
.contains('v1.2.1')
.click();
} else {
cy.getBySel('os-version-box')
.parents()
.contains('latest-'+upgradeOsChannel)
.click();
}
}
cy.getBySel('os-version-box')
.parents()
.contains('latest')
.click();
}

cy.getBySel('form-save')
.contains('Create')
Expand Down
2 changes: 1 addition & 1 deletion tests/cypress/latest/support/commands.ts
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ Cypress.Commands.add('createMachReg', (
cy.contains('Elemental Teal ISO x86_64 v1.1.5')
.click();
} else if (utils.isOperatorVersion('staging')) {
cy.contains('Elemental Teal ISO x86_64 latest-staging')
cy.contains('Elemental Teal ISO x86_64 (latest)')
.click();
} else {
cy.contains('Elemental Teal ISO x86_64 latest-dev')
Expand Down

0 comments on commit b4ed9c6

Please sign in to comment.