cy.loginAs(activeUser);
cy.goToPath(`/collections/${testSourceCollection.uuid}`);
cy.get('[data-cy=collection-files-panel]').contains('bar');
- cy.get('[data-cy=collection-files-panel]').find('input[type=checkbox]').click({ force: true });
+ cy.get('[data-cy=collection-files-panel]').find('input[type=checkbox]').click();
cy.get('[data-cy=collection-files-panel-options-btn]').click();
cy.get('[data-cy=context-menu]')
.contains('Copy selected into the collection').click();
});
cy.get('[data-cy=form-dialog]').within(function () {
- cy.get('[data-cy=projects-tree-favourites-tree-picker]').find('i').click();
+ // must use .then to avoid selecting instead of expanding https://github.com/cypress-io/cypress/issues/5529
+ cy.get('[data-cy=projects-tree-favourites-tree-picker]')
+ .find('i')
+ .then(el => el.click());
cy.contains(myProject1.name);
cy.contains(mySharedWritableProject.name);
cy.get('[data-cy=projects-tree-favourites-tree-picker]')
.then((testWorkflow) => {
cy.get('main').contains(testWorkflow.name).click();
cy.get('[data-cy=run-process-next-button]').click();
- cy.get('[readonly]').click();
+ cy.get('[data-cy=new-process-panel]')
+ .within(() => {
+ cy.contains('input').next().click();
+ });
cy.get('[data-cy=choose-a-file-dialog]').as('chooseFileDialog');
cy.get('[data-cy=projects-tree-favourites-tree-picker]').contains('Favorites').closest('ul').find('i').click();
cy.get('@chooseFileDialog').find(`[data-id=${mySharedWritableProject.uuid}]`);
cy.get('main').contains(testWorkflow2.name).click();
cy.get('button').contains('Change Workflow').click();
cy.get('[data-cy=run-process-next-button]').click();
- cy.get('[readonly]').click();
+ cy.get('[data-cy=new-process-panel]')
+ .within(() => {
+ cy.contains('image_collection').next().click();
+ });
cy.get('[data-cy=choose-a-directory-dialog]').as('chooseDirectoryDialog');
cy.get('[data-cy=projects-tree-favourites-tree-picker]').contains('Favorites').closest('ul').find('i').click();
cy.get('@chooseDirectoryDialog').find(`[data-id=${mySharedWritableProject.uuid}]`);