]> source.dussan.org Git - sonarqube.git/blob
d8e65b043edd42609849f80c85b0e5722536a1d4
[sonarqube.git] /
1 // Jest Snapshot v1, https://goo.gl/fbAQLP
2
3 exports[`should render correctly: autofocus 1`] = `
4 <ValidationInput
5   className="form-field"
6   description="onboarding.create_project.project_key.description"
7   isInvalid={false}
8   isValid={false}
9   labelHtmlFor="project-key"
10   required={false}
11 >
12   <input
13     autoFocus={true}
14     className="input-super-large"
15     id="project-key"
16     maxLength={400}
17     minLength={1}
18     onChange={[MockFunction]}
19     type="text"
20   />
21 </ValidationInput>
22 `;
23
24 exports[`should render correctly: default 1`] = `
25 <ValidationInput
26   className="form-field"
27   description="onboarding.create_project.project_key.description"
28   isInvalid={false}
29   isValid={false}
30   labelHtmlFor="project-key"
31   required={false}
32 >
33   <input
34     autoFocus={false}
35     className="input-super-large"
36     id="project-key"
37     maxLength={400}
38     minLength={1}
39     onChange={[MockFunction]}
40     type="text"
41   />
42 </ValidationInput>
43 `;
44
45 exports[`should render correctly: invalid 1`] = `
46 <ValidationInput
47   className="form-field"
48   description="onboarding.create_project.project_key.description"
49   error="bar.baz"
50   isInvalid={true}
51   isValid={false}
52   labelHtmlFor="project-key"
53   required={false}
54 >
55   <input
56     autoFocus={false}
57     className="input-super-large is-invalid"
58     id="project-key"
59     maxLength={400}
60     minLength={1}
61     onChange={[MockFunction]}
62     type="text"
63   />
64 </ValidationInput>
65 `;
66
67 exports[`should render correctly: valid 1`] = `
68 <ValidationInput
69   className="form-field"
70   description="onboarding.create_project.project_key.description"
71   isInvalid={false}
72   isValid={true}
73   labelHtmlFor="project-key"
74   required={false}
75 >
76   <input
77     autoFocus={false}
78     className="input-super-large is-valid"
79     id="project-key"
80     maxLength={400}
81     minLength={1}
82     onChange={[MockFunction]}
83     type="text"
84   />
85 </ValidationInput>
86 `;
87
88 exports[`should render correctly: validating 1`] = `
89 <ValidationInput
90   className="form-field"
91   description="onboarding.create_project.project_key.description"
92   isInvalid={false}
93   isValid={false}
94   labelHtmlFor="project-key"
95   required={false}
96 >
97   <input
98     autoFocus={false}
99     className="input-super-large"
100     id="project-key"
101     maxLength={400}
102     minLength={1}
103     onChange={[MockFunction]}
104     type="text"
105   />
106 </ValidationInput>
107 `;
108
109 exports[`should render correctly: with label, help, and placeholder 1`] = `
110 <ValidationInput
111   className="form-field"
112   description="onboarding.create_project.project_key.description"
113   help="foo.help"
114   isInvalid={false}
115   isValid={false}
116   label="foo.label"
117   labelHtmlFor="project-key"
118   required={true}
119 >
120   <input
121     autoFocus={false}
122     className="input-super-large"
123     id="project-key"
124     maxLength={400}
125     minLength={1}
126     name="foo.label"
127     onChange={[MockFunction]}
128     placeholder="foo.placeholder"
129     type="text"
130   />
131 </ValidationInput>
132 `;
133
134 exports[`should render correctly: with value 1`] = `
135 <ValidationInput
136   className="form-field"
137   description="onboarding.create_project.project_key.description"
138   isInvalid={false}
139   isValid={false}
140   labelHtmlFor="project-key"
141   required={false}
142 >
143   <input
144     autoFocus={false}
145     className="input-super-large"
146     id="project-key"
147     maxLength={400}
148     minLength={1}
149     onChange={[MockFunction]}
150     type="text"
151     value="foo"
152   />
153 </ValidationInput>
154 `;