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",
109 "label": "issue.type.UNKNOWN",
116 valueRenderer={[Function]}
120 className="modal-field flex-1 spacer-right"
123 htmlFor="coding-rules-custom-rule-severity"
130 id="coding-rules-custom-rule-severity"
131 onChange={[Function]}
132 optionRenderer={[Function]}
136 "label": "severity.BLOCKER",
140 "label": "severity.CRITICAL",
144 "label": "severity.MAJOR",
148 "label": "severity.MINOR",
152 "label": "severity.INFO",
159 valueRenderer={[Function]}
163 className="modal-field flex-1"
166 htmlFor="coding-rules-custom-rule-status"
168 coding_rules.filters.status
173 id="coding-rules-custom-rule-status"
174 onChange={[Function]}
178 "label": "rules.status.READY",
182 "label": "rules.status.BETA",
186 "label": "rules.status.DEPRECATED",
187 "value": "DEPRECATED",
197 className="modal-field"
200 htmlFor="coding-rules-custom-rule-creation-html-description"
205 className="mandatory"
212 id="coding-rules-custom-rule-creation-html-description"
213 onChange={[Function]}
219 className="modal-field-descriptor text-right"
224 className="modal-foot"
229 coding_rules.reactivate
233 id="coding-rules-custom-rule-creation-cancel"
234 onClick={[MockFunction]}
243 exports[`should render correctly 1`] = `
245 contentLabel="coding_rules.create_custom_rule"
246 onRequestClose={[MockFunction]}
249 onSubmit={[Function]}
252 className="modal-head"
255 coding_rules.create_custom_rule
259 className="modal-body modal-container"
262 className="modal-field"
265 htmlFor="coding-rules-custom-rule-creation-name"
270 className="mandatory"
278 id="coding-rules-custom-rule-creation-name"
279 onChange={[Function]}
286 className="modal-field"
289 htmlFor="coding-rules-custom-rule-creation-key"
294 className="mandatory"
301 id="coding-rules-custom-rule-creation-key"
302 onChange={[Function]}
309 className="display-flex-space-between"
312 className="modal-field flex-1 spacer-right"
315 htmlFor="coding-rules-custom-rule-type"
322 id="coding-rules-custom-rule-type"
323 onChange={[Function]}
324 optionRenderer={[Function]}
328 "label": "issue.type.BUG",
332 "label": "issue.type.VULNERABILITY",
333 "value": "VULNERABILITY",
336 "label": "issue.type.CODE_SMELL",
337 "value": "CODE_SMELL",
340 "label": "issue.type.SECURITY_HOTSPOT",
341 "value": "SECURITY_HOTSPOT",
344 "label": "issue.type.UNKNOWN",
351 valueRenderer={[Function]}
355 className="modal-field flex-1 spacer-right"
358 htmlFor="coding-rules-custom-rule-severity"
365 id="coding-rules-custom-rule-severity"
366 onChange={[Function]}
367 optionRenderer={[Function]}
371 "label": "severity.BLOCKER",
375 "label": "severity.CRITICAL",
379 "label": "severity.MAJOR",
383 "label": "severity.MINOR",
387 "label": "severity.INFO",
394 valueRenderer={[Function]}
398 className="modal-field flex-1"
401 htmlFor="coding-rules-custom-rule-status"
403 coding_rules.filters.status
408 id="coding-rules-custom-rule-status"
409 onChange={[Function]}
413 "label": "rules.status.READY",
417 "label": "rules.status.BETA",
421 "label": "rules.status.DEPRECATED",
422 "value": "DEPRECATED",
432 className="modal-field"
435 htmlFor="coding-rules-custom-rule-creation-html-description"
440 className="mandatory"
447 id="coding-rules-custom-rule-creation-html-description"
448 onChange={[Function]}
454 className="modal-field-descriptor text-right"
459 className="modal-foot"
468 id="coding-rules-custom-rule-creation-cancel"
469 onClick={[MockFunction]}