diff --git a/cypress/component/GetDataDialog.cy.tsx b/cypress/component/GetDataDialog.cy.tsx index 2984a1db..527841eb 100644 --- a/cypress/component/GetDataDialog.cy.tsx +++ b/cypress/component/GetDataDialog.cy.tsx @@ -24,4 +24,19 @@ describe('GetDataDialog', () => { cy.get('[data-cy="get-data-dialog-close-button"]').click(); cy.get('@onCloseSpy').should('have.been.called'); }); + + it('Switches between docker and singularity commands', () => { + cy.mount(); + + cy.get('button').contains('docker').should('exist'); + cy.get('button').contains('singularity').should('exist'); + + cy.get('code').should('contain', 'docker run'); + + cy.get('button').contains('singularity').click(); + cy.get('code').should('contain', 'singularity run'); + + cy.get('button').contains('docker').click(); + cy.get('code').should('contain', 'docker run'); + }); });