diff --git a/src/components/collection-list/collection-list-item.tsx b/src/components/collection-list/collection-list-item.tsx index 8d05551966..12638c36aa 100644 --- a/src/components/collection-list/collection-list-item.tsx +++ b/src/components/collection-list/collection-list-item.tsx @@ -78,6 +78,7 @@ export class CollectionListItem extends React.Component { namespace: namespace.name, repo: repo, })} + data-cy='CollectionList-name' > {name} diff --git a/test/cypress/integration/collection_upload.js b/test/cypress/integration/collection_upload.js index fdcffcf0bb..a4c03ad076 100644 --- a/test/cypress/integration/collection_upload.js +++ b/test/cypress/integration/collection_upload.js @@ -69,6 +69,7 @@ describe('Collection Upload Tests', () => { it('should not upload new collection version when user does not have permissions', () => { cy.visit('/ui/repo/published/testspace'); + cy.get('[data-cy="CollectionList-name"]').contains('testcollection'); cy.contains('Upload new version').should('not.exist'); });