The open and composable observability and data visualization platform. Visualize metrics, logs, and traces from multiple sources like Prometheus, Loki, Elasticsearch, InfluxDB, Postgres and many more.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
grafana/public/app/features/profile/SignupForm.test.tsx

18 lines
786 B

import React from 'react';
import { shallow } from 'enzyme';
import { SignupForm } from './SignupForm';
describe('SignupForm', () => {
describe('With different values for verifyEmail and autoAssignOrg', () => {
it('should render input fields', () => {
const wrapper = shallow(<SignupForm verifyEmailEnabled={true} autoAssignOrg={false} />);
expect(wrapper.exists('Forms.Input[name="orgName"]'));
expect(wrapper.exists('Forms.Input[name="code"]'));
});
it('should not render input fields', () => {
const wrapper = shallow(<SignupForm verifyEmailEnabled={false} autoAssignOrg={true} />);
expect(wrapper.exists('Forms.Input[name="orgName"]')).toBeFalsy();
expect(wrapper.exists('Forms.Input[name="code"]')).toBeFalsy();
});
});
});