// TODO: Implement user manage tab spec

describe('User manage', () => {
  beforeEach(() => {
    cy.server()
      .mockUser()
      .login()

      .log('visit /profile/manage/')
      .route('http://localhost:8080/api/support-templates/', [])
      .get('a')
      .contains('Manage')
      .click();
  });

  it('Checks input fields and buttons', () => {
    cy
      // Ensure that full_name input field is present
      .get('input[name="full_name"]')

      // Ensure that Change email button is present
      .get('button')
      .contains('Change email')
      .click()
      // Close dialog
      .get('button')
      .contains('Cancel')
      .click()

      // Ensure that organization input field is present
      .get('input[name="organization"]')

      // Ensure that job_title input field is present
      .get('input[name="job_title"]')

      // Ensure that description input field is present
      .get('input[name="description"]')

      // Ensure that phone_number input field is present
      .get('input[name="phone_number"]')

      // Ensure that token input field is present
      .get('input[name="token"]')

      // Ensure that token_lifetime input field is present
      .get('input[name="token_lifetime"]')

      // Ensure that Remove profile button works
      .get('button')
      .contains('Remove profile')
      .click()
      // Close remove profile dialog
      .get('button')
      .contains('Cancel')
      .click()

      // Ensure that Update profile button works
      .get('button')
      .contains('Update profile')
      .click()

      // Ensure that link to terms of services is present
      .get('a')
      .contains('Terms of Service')
      .click();
  });
});

Add a cypress test for user manage tab
Add a cypress test for user manage tab [WAL-3055]
