Merge branch 'main' into 19302-left-side-panel-changes
[arvados-workbench2.git] / cypress / integration / user-profile.spec.js
index d91dbb0bc5bf4a49f98e7ffd256b2df31248edfb..0a06eaf361ba97763ba20d4730001c3b26e93378 100644 (file)
@@ -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() {