Skip to content

Commit

Permalink
Merge pull request #588 from saikiranAnnam/remove-juypter-notebook
Browse files Browse the repository at this point in the history
❌ Remove juypter notebook
  • Loading branch information
srinijammula authored Jan 17, 2025
2 parents eccb150 + f4edbf4 commit 0fff5b4
Show file tree
Hide file tree
Showing 2 changed files with 50 additions and 84 deletions.
67 changes: 25 additions & 42 deletions cypress/cypress/e2e/spec.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -212,27 +212,19 @@ describe('Host Testing', () => {

describe('Process Testing', () => {

it('Create Python Process', () => {
cy.visit('http://localhost:8070/Geoweaver/web/geoweaver');
cy.get('.introjs-skipbutton').click();
cy.get('#newprocess').click();
cy.get('form select.form-control.form-control-sm').select('Python');
cy.get('form > :nth-child(1) > :nth-child(4)').clear('t');
cy.get('form > :nth-child(1) > :nth-child(4)').type('python_test');
cy.get('.modal-footer').contains('Add').click();
cy.get('ul#process_folder_python_target').should('contain', 'python_test');
})

it('Create Notebook Process', () => {
cy.visit('http://localhost:8070/Geoweaver/web/geoweaver');
cy.get('.introjs-skipbutton').click();
cy.get('#newprocess').click();
cy.get('form select.form-control.form-control-sm').select('Jupyter Notebook');
cy.get('form > :nth-child(1) > :nth-child(4)').clear('t');
cy.get('form > :nth-child(1) > :nth-child(4)').type('notebook_test');
cy.get('.modal-footer').contains('Add').click();
cy.get('ul#process_folder_jupyter_target').should('contain', 'notebook_test');
})
it("Create Python Process", () => {
cy.visit("http://localhost:8070/Geoweaver/web/geoweaver");
cy.get(".introjs-skipbutton").click();
cy.get("#newprocess").click();
cy.get("form select.form-control.form-control-sm").select("Python");
cy.get("form > :nth-child(1) > :nth-child(4)").clear("t");
cy.get("form > :nth-child(1) > :nth-child(4)").type("python_test");
cy.get(".modal-footer").contains("Add").click();
cy.get("ul#process_folder_python_target").should(
"contain",
"python_test"
);
});
});


Expand All @@ -249,27 +241,18 @@ describe('Add Process to Weaver', () => {


describe('Delete Process', () => {
it('Delete Python Process', () => {
cy.visit('http://localhost:8070/Geoweaver/web/geoweaver');
cy.get('.introjs-skipbutton').click();
cy.get('#process_folder_python').click();
cy.get('ul#process_folder_python_target').contains('python_test').click();
cy.contains('button', 'Delete').click();
cy.get('#del-confirm-btn').click();
cy.get('#main-general-content').click();
cy.get('[style="color:rgb(38, 90, 139);text-align:center;font-family:\'lato\', sans-serif;font-size:80px"]').should('be.visible');
})

it('Delete Jupyter Notebook Process', () => {
cy.visit('http://localhost:8070/Geoweaver/web/geoweaver');
cy.get('.introjs-skipbutton').click();
cy.get('#process_folder_jupyter').click();
cy.get('ul#process_folder_jupyter_target').contains('notebook_test').click();
cy.contains('button', 'Delete').click();
cy.get('#del-confirm-btn').click();
cy.get('#main-general-content').click();
cy.get('[style="color:rgb(38, 90, 139);text-align:center;font-family:\'lato\', sans-serif;font-size:80px"]').should('be.visible');
})
it("Delete Python Process", () => {
cy.visit("http://localhost:8070/Geoweaver/web/geoweaver");
cy.get(".introjs-skipbutton").click();
cy.get("#process_folder_python").click();
cy.get("ul#process_folder_python_target").contains("python_test").click();
cy.contains("button", "Delete").click();
cy.get("#del-confirm-btn").click();
cy.get("#main-general-content").click();
cy.get(
"[style=\"color:rgb(38, 90, 139);text-align:center;font-family:'lato', sans-serif;font-size:80px\"]"
).should("be.visible");
});
});

describe('Create Python process and run it', () => {
Expand Down
67 changes: 25 additions & 42 deletions cypress/e2e/spec.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -247,27 +247,19 @@ describe('Process Testing', () => {
cy.get('ul#process_folder_shell_target').should('contain', 'shell_test');
})

it('Create Python Process', () => {
cy.visit('http://localhost:8070/Geoweaver/web/geoweaver');
cy.get('.introjs-skipbutton').click();
cy.get('#newprocess').click();
cy.get('form select.form-control.form-control-sm').select('Python');
cy.get('form > :nth-child(1) > :nth-child(4)').clear('t');
cy.get('form > :nth-child(1) > :nth-child(4)').type('python_test');
cy.get('.modal-footer').contains('Add').click();
cy.get('ul#process_folder_python_target').should('contain', 'python_test');
})

it('Create Notebook Process', () => {
cy.visit('http://localhost:8070/Geoweaver/web/geoweaver');
cy.get('.introjs-skipbutton').click();
cy.get('#newprocess').click();
cy.get('form select.form-control.form-control-sm').select('Jupyter Notebook');
cy.get('form > :nth-child(1) > :nth-child(4)').clear('t');
cy.get('form > :nth-child(1) > :nth-child(4)').type('notebook_test');
cy.get('.modal-footer').contains('Add').click();
cy.get('ul#process_folder_jupyter_target').should('contain', 'notebook_test');
})
it("Create Python Process", () => {
cy.visit("http://localhost:8070/Geoweaver/web/geoweaver");
cy.get(".introjs-skipbutton").click();
cy.get("#newprocess").click();
cy.get("form select.form-control.form-control-sm").select("Python");
cy.get("form > :nth-child(1) > :nth-child(4)").clear("t");
cy.get("form > :nth-child(1) > :nth-child(4)").type("python_test");
cy.get(".modal-footer").contains("Add").click();
cy.get("ul#process_folder_python_target").should(
"contain",
"python_test"
);
});
});


Expand Down Expand Up @@ -316,27 +308,18 @@ describe('Delete Process', () => {
cy.get('[style="color:rgb(38, 90, 139);text-align:center;font-family:\'lato\', sans-serif;font-size:80px"]').should('be.visible');
})

it('Delete Python Process', () => {
cy.visit('http://localhost:8070/Geoweaver/web/geoweaver');
cy.get('.introjs-skipbutton').click();
cy.get('#process_folder_python').click();
cy.get('ul#process_folder_python_target').contains('python_test').click();
cy.contains('button', 'Delete').click();
cy.get('#del-confirm-btn').click();
cy.get('#main-general-content').click();
cy.get('[style="color:rgb(38, 90, 139);text-align:center;font-family:\'lato\', sans-serif;font-size:80px"]').should('be.visible');
})

it('Delete Jupyter Notebook Process', () => {
cy.visit('http://localhost:8070/Geoweaver/web/geoweaver');
cy.get('.introjs-skipbutton').click();
cy.get('#process_folder_jupyter').click();
cy.get('ul#process_folder_jupyter_target').contains('notebook_test').click();
cy.contains('button', 'Delete').click();
cy.get('#del-confirm-btn').click();
cy.get('#main-general-content').click();
cy.get('[style="color:rgb(38, 90, 139);text-align:center;font-family:\'lato\', sans-serif;font-size:80px"]').should('be.visible');
})
it("Delete Python Process", () => {
cy.visit("http://localhost:8070/Geoweaver/web/geoweaver");
cy.get(".introjs-skipbutton").click();
cy.get("#process_folder_python").click();
cy.get("ul#process_folder_python_target").contains("python_test").click();
cy.contains("button", "Delete").click();
cy.get("#del-confirm-btn").click();
cy.get("#main-general-content").click();
cy.get(
"[style=\"color:rgb(38, 90, 139);text-align:center;font-family:'lato', sans-serif;font-size:80px\"]"
).should("be.visible");
});
});

describe('Write Password into .secret', () => {
Expand Down

0 comments on commit 0fff5b4

Please sign in to comment.