1 // Jest Snapshot v1, https://goo.gl/fbAQLP
3 exports[`should handle re-activation 1`] = `
5 contentLabel="coding_rules.create_custom_rule"
6 onRequestClose={[MockFunction]}
12 className="modal-head"
15 coding_rules.create_custom_rule
19 className="modal-body modal-container"
24 coding_rules.reactivate.help
27 className="modal-field"
30 htmlFor="coding-rules-custom-rule-creation-name"
43 id="coding-rules-custom-rule-creation-name"
51 className="modal-field"
54 htmlFor="coding-rules-custom-rule-creation-key"
66 id="coding-rules-custom-rule-creation-key"
74 className="display-flex-space-between"
77 className="modal-field flex-1 spacer-right"
80 htmlFor="coding-rules-custom-rule-type"
87 id="coding-rules-custom-rule-type"
89 optionRenderer={[Function]}
93 "label": "issue.type.BUG",
97 "label": "issue.type.VULNERABILITY",
98 "value": "VULNERABILITY",
101 "label": "issue.type.CODE_SMELL",
102 "value": "CODE_SMELL",
105 "label": "issue.type.SECURITY_HOTSPOT",
106 "value": "SECURITY_HOTSPOT",
112 valueRenderer={[Function]}
116 className="modal-field flex-1 spacer-right"
119 htmlFor="coding-rules-custom-rule-severity"
126 id="coding-rules-custom-rule-severity"
127 onChange={[Function]}
128 optionRenderer={[Function]}
132 "label": "severity.BLOCKER",
136 "label": "severity.CRITICAL",
140 "label": "severity.MAJOR",
144 "label": "severity.MINOR",
148 "label": "severity.INFO",
155 valueRenderer={[Function]}
159 className="modal-field flex-1"
162 htmlFor="coding-rules-custom-rule-status"
164 coding_rules.filters.status
169 id="coding-rules-custom-rule-status"
170 onChange={[Function]}
174 "label": "rules.status.READY",
178 "label": "rules.status.BETA",
182 "label": "rules.status.DEPRECATED",
183 "value": "DEPRECATED",
193 className="modal-field"
196 htmlFor="coding-rules-custom-rule-creation-html-description"
201 className="mandatory"
208 id="coding-rules-custom-rule-creation-html-description"
209 onChange={[Function]}
215 className="modal-field-descriptor text-right"
220 className="modal-foot"
225 coding_rules.reactivate
229 id="coding-rules-custom-rule-creation-cancel"
230 onClick={[MockFunction]}
239 exports[`should render correctly 1`] = `
241 contentLabel="coding_rules.create_custom_rule"
242 onRequestClose={[MockFunction]}
245 onSubmit={[Function]}
248 className="modal-head"
251 coding_rules.create_custom_rule
255 className="modal-body modal-container"
258 className="modal-field"
261 htmlFor="coding-rules-custom-rule-creation-name"
266 className="mandatory"
274 id="coding-rules-custom-rule-creation-name"
275 onChange={[Function]}
282 className="modal-field"
285 htmlFor="coding-rules-custom-rule-creation-key"
290 className="mandatory"
297 id="coding-rules-custom-rule-creation-key"
298 onChange={[Function]}
305 className="display-flex-space-between"
308 className="modal-field flex-1 spacer-right"
311 htmlFor="coding-rules-custom-rule-type"
318 id="coding-rules-custom-rule-type"
319 onChange={[Function]}
320 optionRenderer={[Function]}
324 "label": "issue.type.BUG",
328 "label": "issue.type.VULNERABILITY",
329 "value": "VULNERABILITY",
332 "label": "issue.type.CODE_SMELL",
333 "value": "CODE_SMELL",
336 "label": "issue.type.SECURITY_HOTSPOT",
337 "value": "SECURITY_HOTSPOT",
343 valueRenderer={[Function]}
347 className="modal-field flex-1 spacer-right"
350 htmlFor="coding-rules-custom-rule-severity"
357 id="coding-rules-custom-rule-severity"
358 onChange={[Function]}
359 optionRenderer={[Function]}
363 "label": "severity.BLOCKER",
367 "label": "severity.CRITICAL",
371 "label": "severity.MAJOR",
375 "label": "severity.MINOR",
379 "label": "severity.INFO",
386 valueRenderer={[Function]}
390 className="modal-field flex-1"
393 htmlFor="coding-rules-custom-rule-status"
395 coding_rules.filters.status
400 id="coding-rules-custom-rule-status"
401 onChange={[Function]}
405 "label": "rules.status.READY",
409 "label": "rules.status.BETA",
413 "label": "rules.status.DEPRECATED",
414 "value": "DEPRECATED",
424 className="modal-field"
427 htmlFor="coding-rules-custom-rule-creation-html-description"
432 className="mandatory"
439 id="coding-rules-custom-rule-creation-html-description"
440 onChange={[Function]}
446 className="modal-field-descriptor text-right"
451 className="modal-foot"
460 id="coding-rules-custom-rule-creation-cancel"
461 onClick={[MockFunction]}