1 // Jest Snapshot v1, https://goo.gl/fbAQLP
3 exports[`#renderDeactivateButton should render correctly 1`] = `
5 confirmButtonText="yes"
6 modalBody="coding_rules.deactivate.confirm"
7 modalHeader="coding_rules.deactivate"
14 exports[`#renderDeactivateButton should render correctly 2`] = `
16 overlay="coding_rules.need_extend_or_copy"
19 className="coding-rules-detail-quality-profile-deactivate button-red"
22 coding_rules.deactivate
27 exports[`renderActions should disable the button when I am on a built-in profile 1`] = `
29 className="coding-rule-table-meta-cell coding-rule-activation-actions"
32 overlay="coding_rules.need_extend_or_copy"
35 className="coding-rules-detail-quality-profile-deactivate button-red"
38 coding_rules.deactivate
44 exports[`renderActions should render the activate button 1`] = `
46 className="coding-rule-table-meta-cell coding-rule-activation-actions"
49 buttonText="coding_rules.activate"
50 className="coding-rules-detail-quality-profile-activate"
51 modalHeader="coding_rules.activate_in_quality_profile"
59 "activeDeprecatedRuleCount": 2,
60 "activeRuleCount": 10,
68 "languageName": "JavaScript",
70 "organization": "foo",
78 "key": "javascript:S1067",
80 "langName": "JavaScript",
98 exports[`renderActions should render the deactivate button 1`] = `
100 className="coding-rule-table-meta-cell coding-rule-activation-actions"
103 confirmButtonText="yes"
104 modalBody="coding_rules.deactivate.confirm"
105 modalHeader="coding_rules.deactivate"
106 onConfirm={[Function]}
113 exports[`should render correctly: default 1`] = `
115 className="coding-rule"
116 data-rule="javascript:S1067"
119 className="coding-rule-table"
125 className="coding-rule-title"
128 className="link-no-underline"
130 onlyActiveOnIndex={false}
134 "pathname": "/coding_rules",
136 "open": "javascript:S1067",
137 "rule_key": "javascript:S1067",
147 className="coding-rule-table-meta-cell"
150 className="display-flex-center coding-rule-meta"
153 className="display-inline-flex-center spacer-left note"
158 overlay="coding_rules.type.tooltip.CODE_SMELL"
161 className="display-inline-flex-center spacer-left note"
167 className="little-spacer-left text-middle"
169 issue.type.CODE_SMELL
175 className="display-inline-flex-center note spacer-left"
185 onFilterChange={[MockFunction]}
188 "key": "javascript:S1067",
190 "langName": "JavaScript",
201 "type": "CODE_SMELL",
213 exports[`should render correctly: with activation 1`] = `
215 className="coding-rule"
216 data-rule="javascript:S1067"
219 className="coding-rule-table"
225 className="coding-rule-title"
228 className="link-no-underline"
230 onlyActiveOnIndex={false}
234 "pathname": "/coding_rules",
236 "open": "javascript:S1067",
237 "rule_key": "javascript:S1067",
247 className="coding-rule-table-meta-cell"
250 className="display-flex-center coding-rule-meta"
253 className="display-inline-flex-center spacer-left note"
258 overlay="coding_rules.type.tooltip.CODE_SMELL"
261 className="display-inline-flex-center spacer-left note"
267 className="little-spacer-left text-middle"
269 issue.type.CODE_SMELL
275 className="display-inline-flex-center note spacer-left"
285 onFilterChange={[MockFunction]}
288 "key": "javascript:S1067",
290 "langName": "JavaScript",
301 "type": "CODE_SMELL",