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