1 // Jest Snapshot v1, https://goo.gl/fbAQLP
3 exports[`renders correctly: all permissions 1`] = `
7 label="quality_profiles.actions.name.JavaScript"
10 className="it__quality-profiles__activate-more-rules"
13 "pathname": "/coding_rules",
14 "search": "?qprofile=key&activation=false",
18 quality_profiles.activate_more_rules
19 </ActionsDropdownItem>
21 className="it__quality-profiles__backup"
23 to="/api/qualityprofiles/backup?language=js&qualityProfile=name"
26 </ActionsDropdownItem>
28 className="it__quality-profiles__compare"
31 "pathname": "/profiles/compare",
32 "search": "?language=js&name=name",
37 </ActionsDropdownItem>
39 className="it__quality-profiles__extend"
41 tooltipOverlay="quality_profiles.extend_help.name"
42 tooltipPlacement="left"
45 </ActionsDropdownItem>
47 className="it__quality-profiles__copy"
49 tooltipOverlay="quality_profiles.copy_help.name"
50 tooltipPlacement="left"
53 </ActionsDropdownItem>
55 className="it__quality-profiles__rename"
59 </ActionsDropdownItem>
61 className="it__quality-profiles__set-as-default"
65 </ActionsDropdownItem>
66 <ActionsDropdownDivider />
68 className="it__quality-profiles__delete"
73 </ActionsDropdownItem>
78 exports[`renders correctly: copy modal 1`] = `
82 label="quality_profiles.actions.name.JavaScript"
85 className="it__quality-profiles__backup"
87 to="/api/qualityprofiles/backup?language=js&qualityProfile=name"
90 </ActionsDropdownItem>
92 className="it__quality-profiles__compare"
95 "pathname": "/profiles/compare",
96 "search": "?language=js&name=name",
101 </ActionsDropdownItem>
107 onSubmit={[Function]}
110 "activeDeprecatedRuleCount": 0,
111 "activeRuleCount": 68,
116 "isInherited": false,
119 "languageName": "JavaScript",
122 "rulesUpdatedAt": "2017-06-28T12:58:44+0000",
129 exports[`renders correctly: delete modal 1`] = `
133 label="quality_profiles.actions.name.JavaScript"
136 className="it__quality-profiles__backup"
138 to="/api/qualityprofiles/backup?language=js&qualityProfile=name"
141 </ActionsDropdownItem>
143 className="it__quality-profiles__compare"
146 "pathname": "/profiles/compare",
147 "search": "?language=js&name=name",
152 </ActionsDropdownItem>
157 onDelete={[Function]}
160 "activeDeprecatedRuleCount": 0,
161 "activeRuleCount": 68,
166 "isInherited": false,
169 "languageName": "JavaScript",
172 "rulesUpdatedAt": "2017-06-28T12:58:44+0000",
179 exports[`renders correctly: edit only 1`] = `
183 label="quality_profiles.actions.name.JavaScript"
186 className="it__quality-profiles__activate-more-rules"
189 "pathname": "/coding_rules",
190 "search": "?qprofile=key&activation=false",
194 quality_profiles.activate_more_rules
195 </ActionsDropdownItem>
197 className="it__quality-profiles__backup"
199 to="/api/qualityprofiles/backup?language=js&qualityProfile=name"
202 </ActionsDropdownItem>
204 className="it__quality-profiles__compare"
207 "pathname": "/profiles/compare",
208 "search": "?language=js&name=name",
213 </ActionsDropdownItem>
215 className="it__quality-profiles__rename"
219 </ActionsDropdownItem>
224 exports[`renders correctly: extend modal 1`] = `
228 label="quality_profiles.actions.name.JavaScript"
231 className="it__quality-profiles__backup"
233 to="/api/qualityprofiles/backup?language=js&qualityProfile=name"
236 </ActionsDropdownItem>
238 className="it__quality-profiles__compare"
241 "pathname": "/profiles/compare",
242 "search": "?language=js&name=name",
247 </ActionsDropdownItem>
253 onSubmit={[Function]}
256 "activeDeprecatedRuleCount": 0,
257 "activeRuleCount": 68,
262 "isInherited": false,
265 "languageName": "JavaScript",
268 "rulesUpdatedAt": "2017-06-28T12:58:44+0000",
275 exports[`renders correctly: no permissions 1`] = `
279 label="quality_profiles.actions.name.JavaScript"
282 className="it__quality-profiles__backup"
284 to="/api/qualityprofiles/backup?language=js&qualityProfile=name"
287 </ActionsDropdownItem>
289 className="it__quality-profiles__compare"
292 "pathname": "/profiles/compare",
293 "search": "?language=js&name=name",
298 </ActionsDropdownItem>
303 exports[`renders correctly: rename modal 1`] = `
307 label="quality_profiles.actions.name.JavaScript"
310 className="it__quality-profiles__backup"
312 to="/api/qualityprofiles/backup?language=js&qualityProfile=name"
315 </ActionsDropdownItem>
317 className="it__quality-profiles__compare"
320 "pathname": "/profiles/compare",
321 "search": "?language=js&name=name",
326 </ActionsDropdownItem>
332 onSubmit={[Function]}
335 "activeDeprecatedRuleCount": 0,
336 "activeRuleCount": 68,
341 "isInherited": false,
344 "languageName": "JavaScript",
347 "rulesUpdatedAt": "2017-06-28T12:58:44+0000",
354 exports[`should not allow to set a profile as the default if the profile has no active rules 1`] = `
358 label="quality_profiles.actions.name.JavaScript"
361 className="it__quality-profiles__backup"
363 to="/api/qualityprofiles/backup?language=js&qualityProfile=name"
366 </ActionsDropdownItem>
368 className="it__quality-profiles__compare"
371 "pathname": "/profiles/compare",
372 "search": "?language=js&name=name",
377 </ActionsDropdownItem>
380 overlay="quality_profiles.cannot_set_default_no_rules"
384 className="it__quality-profiles__set-as-default text-muted-2"