Skip to content

Commit

Permalink
update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jenny-s51 committed Oct 11, 2024
1 parent 6172f21 commit 3a9a846
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down
4 changes: 2 additions & 2 deletions frontend/src/utilities/valueUnits.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 },
Expand Down

0 comments on commit 3a9a846

Please sign in to comment.