X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/b13aaa8909cc1f8b4edf8d32fda9580a3c899418..6796b44d4934ddff098e1bfcf7b842ec11e4e210:/cypress/integration/user-profile.spec.js diff --git a/cypress/integration/user-profile.spec.js b/cypress/integration/user-profile.spec.js index 7d21249c4b..0a06eaf361 100644 --- a/cypress/integration/user-profile.spec.js +++ b/cypress/integration/user-profile.spec.js @@ -76,7 +76,7 @@ describe('User profile tests', function() { }) { cy.get('[data-cy=user-profile-panel-options-btn]').click(); cy.get('[data-cy=context-menu]').within(() => { - cy.get('[role=button]').contains('Advanced'); + cy.get('[role=button]').contains('API Details'); cy.get('[role=button]').should(account ? 'contain' : 'not.contain', 'Account Settings'); cy.get('[role=button]').should(activate ? 'contain' : 'not.contain', 'Activate User'); @@ -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() {