diff --git a/frontend/src/__tests__/cypress/cypress/pages/workbench.ts b/frontend/src/__tests__/cypress/cypress/pages/workbench.ts index 44972d670d..bbb6ccd44a 100644 --- a/frontend/src/__tests__/cypress/cypress/pages/workbench.ts +++ b/frontend/src/__tests__/cypress/cypress/pages/workbench.ts @@ -202,6 +202,19 @@ class AttachExistingStorageModal extends Modal { cy.findByTestId('persistent-storage-typeahead').contains(name).click(); } + verifyPSDropdownIsDisabled(): void { + cy.get('[data-testid="persistent-storage-group"] .pf-v6-c-menu-toggle') + .should('have.class', 'pf-m-disabled') + .and('have.attr', 'disabled'); + } + + verifyPSDropdownText(expectedText: string): void { + cy.get('[data-testid="persistent-storage-group"] .pf-v6-c-text-input-group__text-input').should( + 'have.value', + expectedText, + ); + } + findStandardPathInput() { return cy.findByTestId('mount-path-folder-value'); } diff --git a/frontend/src/__tests__/cypress/cypress/tests/e2e/dataScienceProjects/workbenches/workbenches.cy.ts b/frontend/src/__tests__/cypress/cypress/tests/e2e/dataScienceProjects/workbenches/workbenches.cy.ts index 3ddeed16b0..a03bd26abd 100644 --- a/frontend/src/__tests__/cypress/cypress/tests/e2e/dataScienceProjects/workbenches/workbenches.cy.ts +++ b/frontend/src/__tests__/cypress/cypress/tests/e2e/dataScienceProjects/workbenches/workbenches.cy.ts @@ -74,7 +74,8 @@ describe('Workbench and PVSs tests', () => { createSpawnerPage.getNameInput().fill(workbenchName); createSpawnerPage.findNotebookImage('code-server-notebook').click(); createSpawnerPage.findAttachExistingStorageButton().click(); - attachExistingStorageModal.selectExistingPersistentStorage(PVCDisplayName); + attachExistingStorageModal.verifyPSDropdownIsDisabled(); + attachExistingStorageModal.verifyPSDropdownText(PVCDisplayName); attachExistingStorageModal.findStandardPathInput().fill(workbenchName); attachExistingStorageModal.findAttachButton().click(); createSpawnerPage.findSubmitButton().click();