it('shows the appropriate buttons in the toolbar', () => {
const msButtonTooltips = [
+ 'View details',
+ 'Open in new tab',
+ 'Copy link to clipboard',
+ 'Open with 3rd party client',
'API Details',
- 'Add to Favorites',
- 'Copy to clipboard',
+ 'Share',
'Edit collection',
- 'Make a copy',
'Move to',
+ 'Make a copy',
'Move to trash',
- 'Open in new tab',
- 'Open with 3rd party client',
- 'Share',
- 'View details',
+ 'Add to favorites',
];
cy.loginAs(activeUser);
cy.get("[data-cy=name-field]").within(() => {
cy.get("input").type(" renamed");
});
- cy.get("[data-cy=form-submit-btn]").click();
+ cy.get("[data-cy=form-submit-btn]").click({timeout: 10000});
});
cy.get("[data-cy=form-dialog]").should("not.exist");
// Attempt to rename the collection with the duplicate name
cy.get("[data-cy=context-menu]")
.should("contain", "Download")
.and("contain", "Open in new tab")
- .and("contain", "Copy to clipboard")
+ .and("contain", "Copy link to clipboard")
.and(`${isWritable ? "" : "not."}contain`, "Rename")
.and(`${isWritable ? "" : "not."}contain`, "Remove");
cy.get("body").click(); // Collapse the menu
cy.get("[data-cy=context-menu]")
.should("not.contain", "Download")
.and("contain", "Open in new tab")
- .and("contain", "Copy to clipboard")
+ .and("contain", "Copy link to clipboard")
.and(`${isWritable ? "" : "not."}contain`, "Rename")
.and(`${isWritable ? "" : "not."}contain`, "Remove");
cy.get("body").click(); // Collapse the menu