Skip to content

Commit

Permalink
workbenches
Browse files Browse the repository at this point in the history
  • Loading branch information
FedeAlonso committed Dec 20, 2024
1 parent 5489de0 commit a1dcb35
Showing 1 changed file with 2 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ import { deleteOpenShiftProject } from '~/__tests__/cypress/cypress/utils/oc_com
import { createPersistentVolumeClaim } from '~/__tests__/cypress/cypress/utils/oc_commands/presistentVolumeClaim';

describe('Workbench and PVSs tests', () => {
// let testData: PVCReplacements;
let projectName: string;
let PVCName: string;
let PVCDisplayName: string;
Expand Down Expand Up @@ -48,14 +47,6 @@ describe('Workbench and PVSs tests', () => {
});
});

after(() => {
// Delete provisioned Project
if (projectName) {
cy.log(`Deleting Project ${projectName} after the test has finished.`);
deleteOpenShiftProject(projectName);
}
});

it('Verify users can create a workbench and connect an existent PersistentVolume', () => {
const workbenchName = projectName.replace('dsp-', '');

Expand All @@ -72,7 +63,7 @@ describe('Workbench and PVSs tests', () => {
cy.step(`Create Workbench ${projectName} using storage ${PVCDisplayName}`);
workbenchPage.findCreateButton().click();
createSpawnerPage.getNameInput().fill(workbenchName);
createSpawnerPage.findNotebookImage('jupyter-minimal-notebook').click();
createSpawnerPage.findNotebookImage('code-server-notebook').click();
createSpawnerPage.findAttachExistingStorageButton().click();
attachExistingStorageModal.selectExistingPersistentStorage(PVCDisplayName);
attachExistingStorageModal.findStandardPathInput().fill(workbenchName);
Expand All @@ -82,7 +73,7 @@ describe('Workbench and PVSs tests', () => {
cy.step(`Wait for Workbench ${workbenchName} to display a "Running" status`);
const notebookRow = workbenchPage.getNotebookRow(workbenchName);
notebookRow.expectStatusLabelToBe('Running', 120000);
notebookRow.shouldHaveNotebookImageName('Minimal Python');
notebookRow.shouldHaveNotebookImageName('code-server');
notebookRow.shouldHaveContainerSize('Small');

cy.step(`Check the cluster storage ${PVCDisplayName} is now connected to ${workbenchName}`);
Expand Down

0 comments on commit a1dcb35

Please sign in to comment.