'table%&?*2',
'bar' // make sure we can go back to the original name as a last step
];
+ cy.intercept({method: 'PUT', url: '**/arvados/v1/collections/*'}).as('renameRequest');
eachPair(names, (from, to) => {
cy.waitForDom().get('[data-cy=collection-files-panel]')
.contains(`${from}`).rightclick();
.type(to, { parseSpecialCharSequences: false });
});
cy.get('[data-cy=form-submit-btn]').click();
+ cy.wait('@renameRequest');
cy.get('[data-cy=collection-files-panel]')
.should('not.contain', `${from}`)
.and('contain', `${to}`);