]> source.dussan.org Git - sonarqube.git/blob
2bfdc44d1311285d3c5d2a8a913ba099cce2b358
[sonarqube.git] /
1 // Jest Snapshot v1, https://goo.gl/fbAQLP
2
3 exports[`should render the quality profiles rules with sonarway comparison 1`] = `
4 <div
5   className="boxed-group quality-profile-rules"
6 >
7   <div
8     className="quality-profile-rules-distribution"
9   >
10     <table
11       className="data condensed"
12     >
13       <thead>
14         <tr>
15           <th>
16             <h2>
17               rules
18             </h2>
19           </th>
20           <th>
21             active
22           </th>
23           <th>
24             inactive
25           </th>
26         </tr>
27       </thead>
28       <tbody>
29         <ProfileRulesRowTotal
30           count={68}
31           qprofile="key"
32           total={253}
33         />
34         <ProfileRulesRowOfType
35           count={68}
36           key="BUG"
37           qprofile="key"
38           total={68}
39           type="BUG"
40         />
41         <ProfileRulesRowOfType
42           count={0}
43           key="VULNERABILITY"
44           qprofile="key"
45           total={7}
46           type="VULNERABILITY"
47         />
48         <ProfileRulesRowOfType
49           count={0}
50           key="CODE_SMELL"
51           qprofile="key"
52           total={168}
53           type="CODE_SMELL"
54         />
55         <ProfileRulesRowOfType
56           count={0}
57           key="SECURITY_HOTSPOT"
58           qprofile="key"
59           total={10}
60           type="SECURITY_HOTSPOT"
61         />
62       </tbody>
63     </table>
64   </div>
65   <ProfileRulesSonarWayComparison
66     language="js"
67     profile="key"
68     sonarWayMissingRules={4}
69     sonarway="sonarway"
70   />
71 </div>
72 `;
73
74 exports[`should show a button to activate more rules for admins 1`] = `
75 <Link
76   className="button js-activate-rules"
77   to={
78     Object {
79       "pathname": "/coding_rules",
80       "search": "?qprofile=key&activation=false",
81     }
82   }
83 >
84   quality_profiles.activate_more
85 </Link>
86 `;
87
88 exports[`should show a deprecated rules warning message 1`] = `
89 <ProfileRulesDeprecatedWarning
90   activeDeprecatedRules={8}
91   profile="key"
92 />
93 `;
94
95 exports[`should show a disabled button to activate more rules for built-in profiles 1`] = `
96 <Button
97   className="disabled js-activate-rules"
98 >
99   quality_profiles.activate_more
100 </Button>
101 `;