1 // Jest Snapshot v1, https://goo.gl/fbAQLP
3 exports[`renderActions should disable the button when I am on a built-in profile 1`] = `
5 className="coding-rule-table-meta-cell coding-rule-activation-actions"
8 overlay="coding_rules.need_extend_or_copy"
11 className="coding-rules-detail-quality-profile-deactivate button-red"
14 coding_rules.deactivate
20 exports[`renderActions should render the activate button 1`] = `
22 className="coding-rule-table-meta-cell coding-rule-activation-actions"
25 buttonText="coding_rules.activate"
26 className="coding-rules-detail-quality-profile-activate"
27 modalHeader="coding_rules.activate_in_quality_profile"
36 "activeDeprecatedRuleCount": 2,
37 "activeRuleCount": 10,
45 "languageName": "JavaScript",
47 "organization": "foo",
55 "key": "javascript:S1067",
57 "langName": "JavaScript",
75 exports[`renderActions should render the deactivate button 1`] = `
77 className="coding-rule-table-meta-cell coding-rule-activation-actions"
80 confirmButtonText="yes"
81 modalBody="coding_rules.deactivate.confirm"
82 modalHeader="coding_rules.deactivate"
83 onConfirm={[Function]}
90 exports[`should render 1`] = `
92 className="coding-rule"
93 data-rule="javascript:S1067"
96 className="coding-rule-table"
102 className="coding-rule-title"
105 className="link-no-underline"
107 onlyActiveOnIndex={false}
111 "pathname": "/organizations/org/rules",
113 "open": "javascript:S1067",
114 "rule_key": "javascript:S1067",
124 className="coding-rule-table-meta-cell"
127 className="display-flex-center coding-rule-meta"
130 className="spacer-left note"
135 overlay="coding_rules.type.tooltip.CODE_SMELL"
138 className="display-inline-flex-center spacer-left note"
141 className="little-spacer-right"
144 issue.type.CODE_SMELL
149 className="note spacer-left"
159 onFilterChange={[MockFunction]}
162 "key": "javascript:S1067",
164 "langName": "JavaScript",
175 "type": "CODE_SMELL",
187 exports[`should render deactivate button 1`] = `
189 confirmButtonText="yes"
190 modalBody="coding_rules.deactivate.confirm"
191 modalHeader="coding_rules.deactivate"
192 onConfirm={[Function]}
198 exports[`should render deactivate button 2`] = `
200 overlay="coding_rules.need_extend_or_copy"
203 className="coding-rules-detail-quality-profile-deactivate button-red"
206 coding_rules.deactivate