16118: Shows only the readonly icon by the collection's name.
[arvados-workbench2.git] / cypress / integration / collection-panel.spec.js
index ff55e050b04d61891941eb6b9930c6895460975a..6fc2d5656517ce3b7a6d76eda8659f81732be31c 100644 (file)
@@ -54,8 +54,9 @@ describe('Collection panel tests', function() {
                     // Check that name & uuid are correct.
                     cy.get('[data-cy=collection-info-panel]')
                         .should('contain', this.testCollection.name)
-                        .and(`${isWritable ? 'not.': ''}contain`, 'Read-only')
                         .and('contain', this.testCollection.uuid);
+                    // Check for the read-only icon
+                    cy.get('[data-cy=read-only-icon]').should(`${isWritable ? 'not.' : ''}exist`);
                     // Check that both read and write operations are available on
                     // the 'More options' menu.
                     cy.get('[data-cy=collection-panel-options-btn]')