X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/1072269cec78f75ec8995afab82d0faaa485f5da..6796b44d4934ddff098e1bfcf7b842ec11e4e210:/cypress/integration/user-profile.spec.js diff --git a/cypress/integration/user-profile.spec.js b/cypress/integration/user-profile.spec.js index d91dbb0bc5..0a06eaf361 100644 --- a/cypress/integration/user-profile.spec.js +++ b/cypress/integration/user-profile.spec.js @@ -145,6 +145,8 @@ describe('User profile tests', function() { website: 'example.com', }); + cy.get('[data-cy=profile-form] button[type="submit"]').should('not.be.disabled'); + // Submit cy.get('[data-cy=profile-form] button[type="submit"]').click(); @@ -159,6 +161,9 @@ describe('User profile tests', function() { role: 'Data Scientist', website: 'example.com', }); + + // if it worked, the save button should be disabled. + cy.get('[data-cy=profile-form] button[type="submit"]').should('be.disabled'); }); it('non-admin cannot edit other profile', function() {