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();
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() {