diff --git a/cypress/cypress/e2e/spec.cy.js b/cypress/cypress/e2e/spec.cy.js index 373e9279..90925f16 100644 --- a/cypress/cypress/e2e/spec.cy.js +++ b/cypress/cypress/e2e/spec.cy.js @@ -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" + ); + }); }); @@ -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', () => { diff --git a/cypress/e2e/spec.cy.js b/cypress/e2e/spec.cy.js index 3f75f43a..d60b958f 100644 --- a/cypress/e2e/spec.cy.js +++ b/cypress/e2e/spec.cy.js @@ -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" + ); + }); }); @@ -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', () => {