diff --git a/cypress/integration/ToolsSearch.js b/cypress/integration/ToolsSearch.js index b28b0a24aa..71d35e2c9e 100644 --- a/cypress/integration/ToolsSearch.js +++ b/cypress/integration/ToolsSearch.js @@ -6,11 +6,11 @@ describe('Dockstore tool search page', function() { }); describe('Select a tool', function() { - it('Should have three tools and no hidden row)', function() { + it('Should have 4 tools', function() { cy .get('tbody') .children('tr') - .should('have.length', 3) + .should('have.length', 4) }); it('Select dockstore-tool-imports', function() { diff --git a/cypress/integration/VersionModal.js b/cypress/integration/VersionModal.js new file mode 100644 index 0000000000..28a8ecb2ba --- /dev/null +++ b/cypress/integration/VersionModal.js @@ -0,0 +1,23 @@ +describe('Public Version Modal', function() { + require('./helper.js') + beforeEach(function() { + cy.visit(String(global.baseUrl) + "/containers/quay.io/garyluu/dockstore-cgpmap/cgpmap-cramOut") + cy + .get('tab') + .should('have.length', 7) + }); + + it('Change tab to versions', function() { + cy + .get('.nav-link') + .contains('Versions') + .parent() + .click() + + cy + .contains("View") + .click() + cy.get('form') + cy.get('#dockerPullCommand').should('be.visible').should('have.value','docker pull quay.io/garyluu/dockstore-cgpmap:3.0.0-rc8') + }); +}) diff --git a/src/app/container/version-modal/version-modal.component.html b/src/app/container/version-modal/version-modal.component.html index 59cbd4667c..f39a567e2e 100644 --- a/src/app/container/version-modal/version-modal.component.html +++ b/src/app/container/version-modal/version-modal.component.html @@ -220,7 +220,7 @@
- +