diff --git a/frontend/src/__tests__/cypress/cypress/tests/mocked/projects/clusterStorage.cy.ts b/frontend/src/__tests__/cypress/cypress/tests/mocked/projects/clusterStorage.cy.ts index 605c917649..e1787e9575 100644 --- a/frontend/src/__tests__/cypress/cypress/tests/mocked/projects/clusterStorage.cy.ts +++ b/frontend/src/__tests__/cypress/cypress/tests/mocked/projects/clusterStorage.cy.ts @@ -386,7 +386,7 @@ describe('ClusterStorage', () => { clusterStorageRow.findKebabAction('Edit storage').click(); updateClusterStorageModal.findNameInput().should('have.value', 'Test Storage'); updateClusterStorageModal.findPVSizeInput().should('have.value', '5'); - updateClusterStorageModal.shouldHavePVSizeSelectValue('Gi'); + updateClusterStorageModal.shouldHavePVSizeSelectValue('GiB'); updateClusterStorageModal.findPersistentStorageWarning().should('exist'); updateClusterStorageModal.findSubmitButton().should('be.enabled'); updateClusterStorageModal.findNameInput().fill('test-updated'); diff --git a/frontend/src/__tests__/cypress/cypress/tests/mocked/projects/workbench.cy.ts b/frontend/src/__tests__/cypress/cypress/tests/mocked/projects/workbench.cy.ts index c14950243c..d2c47a5af1 100644 --- a/frontend/src/__tests__/cypress/cypress/tests/mocked/projects/workbench.cy.ts +++ b/frontend/src/__tests__/cypress/cypress/tests/mocked/projects/workbench.cy.ts @@ -282,7 +282,7 @@ describe('Workbench page', () => { createSpawnerPage.findPVSizeInput().should('have.value', '19'); createSpawnerPage.findPVSizePlusButton().click(); createSpawnerPage.findPVSizeInput().should('have.value', '20'); - createSpawnerPage.selectPVSize('Mi'); + createSpawnerPage.selectPVSize('MiB'); //add existing cluster storage createSpawnerPage.findExistingStorageRadio().click(); diff --git a/frontend/src/utilities/valueUnits.ts b/frontend/src/utilities/valueUnits.ts index 690f463deb..c9620fed2b 100644 --- a/frontend/src/utilities/valueUnits.ts +++ b/frontend/src/utilities/valueUnits.ts @@ -22,8 +22,8 @@ export const CPU_UNITS: UnitOption[] = [ { name: 'Milicores', unit: 'm', weight: 1 }, ]; export const MEMORY_UNITS_FOR_SELECTION: UnitOption[] = [ - { name: 'GiB', unit: 'GiB', weight: 1024 }, - { name: 'MiB', unit: 'MiB', weight: 1 }, + { name: 'GiB', unit: 'Gi', weight: 1024 }, + { name: 'MiB', unit: 'Mi', weight: 1 }, ]; export const MEMORY_UNITS_FOR_PARSING: UnitOption[] = [ { name: 'EB', unit: 'E', weight: 1000 ** 6 },