X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/26aea3616b48c065f396da8aa13272ce83c9bfbd..7b5bf320c400a44d3e8b0cd962256c0ab9d872bf:/cypress/integration/collection.spec.js diff --git a/cypress/integration/collection.spec.js b/cypress/integration/collection.spec.js index 06436d1dbd..01d7001f2f 100644 --- a/cypress/integration/collection.spec.js +++ b/cypress/integration/collection.spec.js @@ -677,9 +677,10 @@ describe('Collection panel tests', function () { cy.get('[data-cy=form-dialog]') .should('contain', 'Move to') .within(() => { + // must use .then to avoid selecting instead of expanding https://github.com/cypress-io/cypress/issues/5529 cy.get('[data-cy=projects-tree-home-tree-picker]') .find('i') - .click(); + .then(el => el.click()); cy.get('[data-cy=projects-tree-home-tree-picker]') .contains(projName) .click(); @@ -960,6 +961,10 @@ describe('Collection panel tests', function () { // Confirm proper vocabulary labels are displayed on the UI. cy.get('[data-cy=form-dialog]').should('contain', 'Color: Magenta'); + // Value field should not complain about being required just after + // adding a new property. See #19732 + cy.get('[data-cy=form-dialog]').should('not.contain', 'This field is required'); + cy.get('[data-cy=form-submit-btn]').click(); // Confirm that the user was taken to the newly created collection cy.get('[data-cy=form-dialog]').should('not.exist');