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
26 <MandatoryFieldsExplanation
27 className="spacer-bottom"
30 className="modal-field"
33 htmlFor="coding-rules-custom-rule-creation-name"
37 <MandatoryFieldMarker />
42 id="coding-rules-custom-rule-creation-name"
50 className="modal-field"
53 htmlFor="coding-rules-custom-rule-creation-key"
57 <MandatoryFieldMarker />
61 id="coding-rules-custom-rule-creation-key"
69 className="display-flex-space-between"
72 className="modal-field flex-1 spacer-right"
75 id="coding-rules-custom-rule-type"
80 aria-labelledby="coding-rules-custom-rule-type"
84 "SingleValue": [Function],
94 "label": "issue.type.BUG",
98 "label": "issue.type.VULNERABILITY",
99 "value": "VULNERABILITY",
102 "label": "issue.type.CODE_SMELL",
103 "value": "CODE_SMELL",
106 "label": "issue.type.SECURITY_HOTSPOT",
107 "value": "SECURITY_HOTSPOT",
113 "label": "issue.type.CODE_SMELL",
114 "value": "CODE_SMELL",
120 className="modal-field flex-1 spacer-right"
123 id="coding-rules-custom-rule-severity"
128 ariaLabelledby="coding-rules-custom-rule-severity"
130 onChange={[Function]}
135 className="modal-field flex-1"
138 id="coding-rules-custom-rule-status"
140 coding_rules.filters.status
143 aria-labelledby="coding-rules-custom-rule-status"
146 onChange={[Function]}
150 "label": "rules.status.READY",
154 "label": "rules.status.BETA",
158 "label": "rules.status.DEPRECATED",
159 "value": "DEPRECATED",
166 "label": "rules.status.READY",
174 className="modal-field"
177 htmlFor="coding-rules-custom-rule-creation-html-description"
180 <MandatoryFieldMarker />
184 id="coding-rules-custom-rule-creation-html-description"
185 onChange={[Function]}
191 className="modal-field-descriptor text-right"
195 className="modal-field"
199 className="capitalize"
208 onChange={[Function]}
214 className="modal-field-description"
215 dangerouslySetInnerHTML={
217 "__html": "description",
223 className="modal-field"
227 className="capitalize"
236 onChange={[Function]}
244 className="modal-foot"
249 coding_rules.reactivate
253 id="coding-rules-custom-rule-creation-cancel"
254 onClick={[MockFunction]}
263 exports[`should render correctly: default 1`] = `
265 contentLabel="coding_rules.create_custom_rule"
266 onRequestClose={[MockFunction]}
269 onSubmit={[Function]}
272 className="modal-head"
275 coding_rules.create_custom_rule
279 className="modal-body modal-container"
281 <MandatoryFieldsExplanation
282 className="spacer-bottom"
285 className="modal-field"
288 htmlFor="coding-rules-custom-rule-creation-name"
292 <MandatoryFieldMarker />
297 id="coding-rules-custom-rule-creation-name"
298 onChange={[Function]}
305 className="modal-field"
308 htmlFor="coding-rules-custom-rule-creation-key"
312 <MandatoryFieldMarker />
316 id="coding-rules-custom-rule-creation-key"
317 onChange={[Function]}
324 className="display-flex-space-between"
327 className="modal-field flex-1 spacer-right"
330 id="coding-rules-custom-rule-type"
335 aria-labelledby="coding-rules-custom-rule-type"
338 "Option": [Function],
339 "SingleValue": [Function],
345 onChange={[Function]}
349 "label": "issue.type.BUG",
353 "label": "issue.type.VULNERABILITY",
354 "value": "VULNERABILITY",
357 "label": "issue.type.CODE_SMELL",
358 "value": "CODE_SMELL",
361 "label": "issue.type.SECURITY_HOTSPOT",
362 "value": "SECURITY_HOTSPOT",
368 "label": "issue.type.CODE_SMELL",
369 "value": "CODE_SMELL",
375 className="modal-field flex-1 spacer-right"
378 id="coding-rules-custom-rule-severity"
383 ariaLabelledby="coding-rules-custom-rule-severity"
385 onChange={[Function]}
390 className="modal-field flex-1"
393 id="coding-rules-custom-rule-status"
395 coding_rules.filters.status
398 aria-labelledby="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",
421 "label": "rules.status.READY",
429 className="modal-field"
432 htmlFor="coding-rules-custom-rule-creation-html-description"
435 <MandatoryFieldMarker />
439 id="coding-rules-custom-rule-creation-html-description"
440 onChange={[Function]}
446 className="modal-field-descriptor text-right"
450 className="modal-field"
454 className="capitalize"
463 onChange={[Function]}
469 className="modal-field-description"
470 dangerouslySetInnerHTML={
472 "__html": "description",
478 className="modal-field"
482 className="capitalize"
491 onChange={[Function]}
499 className="modal-foot"
508 id="coding-rules-custom-rule-creation-cancel"
509 onClick={[MockFunction]}