diff --git a/cypress/e2e/versions.spec.js b/cypress/e2e/versions.spec.js index 5d42cb2f56b..cf345b2b9cb 100644 --- a/cypress/e2e/versions.spec.js +++ b/cypress/e2e/versions.spec.js @@ -25,7 +25,7 @@ describe('Versions', () => { cy.get('[data-cy-files-list-row-name="' + versionFileName + '"] [data-cy-files-list-row-mtime]').click() cy.get('.app-sidebar-header').should('be.visible').should('contain', versionFileName) - cy.get('.app-sidebar-tabs__tab[data-id="version_vue"]').click() + cy.get('.app-sidebar-tabs__tab:contains("Versions")').click() cy.get('[data-files-versions-versions-list] li > a').should('have.length', 3) cy.get('[data-files-versions-versions-list] li > a').eq(1).click() @@ -58,7 +58,7 @@ describe('Versions', () => { cy.get('.app-sidebar-header').should('be.visible').should('contain', versionFileName) - cy.get('.app-sidebar-tabs__tab[data-id="version_vue"]').click() + cy.get('.app-sidebar-tabs__tab:contains("Versions")').click() cy.get('[data-files-versions-versions-list] li > a').should('have.length', 3) @@ -95,7 +95,7 @@ describe('Versions', () => { cy.get('.app-sidebar-header').should('be.visible').should('contain', versionFileName) - cy.get('.app-sidebar-tabs__tab[data-id="version_vue"]').click() + cy.get('.app-sidebar-tabs__tab:contains("Versions")').click() cy.get('[data-files-versions-versions-list] li > a').should('have.length', 3)