]> source.dussan.org Git - sonarqube.git/blob
94f8953d08518b9a89f02a634a9c071369bdd569
[sonarqube.git] /
1 // Jest Snapshot v1, https://goo.gl/fbAQLP
2
3 exports[`should display right meta info 1`] = `
4 <div
5   className="js-rule-meta"
6 >
7   <header
8     className="page-header"
9   >
10     <div
11       className="pull-right"
12     >
13       <span
14         className="note text-middle"
15       >
16         squid:S1133
17       </span>
18       <ForwardRef(Link)
19         className="coding-rules-detail-permalink link-no-underline spacer-left text-middle"
20         title="permalink"
21         to={
22           {
23             "pathname": "/coding_rules",
24             "search": "?open=squid%3AS1133&rule_key=squid%3AS1133",
25           }
26         }
27       >
28         <LinkIcon />
29       </ForwardRef(Link)>
30       <SimilarRulesFilter
31         onFilterChange={[MockFunction]}
32         rule={
33           {
34             "createdAt": "2013-07-26T09:40:51+0200",
35             "descriptionSections": [],
36             "key": "squid:S1133",
37             "lang": "java",
38             "langName": "Java",
39             "name": "Deprecated code should be removed",
40             "repo": "squid",
41             "scope": "MAIN",
42             "severity": "INFO",
43             "status": "READY",
44             "type": "CODE_SMELL",
45           }
46         }
47       />
48     </div>
49     <h3
50       className="page-title coding-rules-detail-header"
51     >
52       <big>
53         Deprecated code should be removed
54       </big>
55     </h3>
56   </header>
57   <ul
58     className="coding-rules-detail-properties"
59   >
60     <Tooltip
61       overlay="coding_rules.type.tooltip.CODE_SMELL"
62     >
63       <li
64         className="coding-rules-detail-property"
65         data-meta="type"
66       >
67         <IssueTypeIcon
68           className="little-spacer-right"
69           query="CODE_SMELL"
70         />
71         issue.type.CODE_SMELL
72       </li>
73     </Tooltip>
74     <Tooltip
75       overlay="default_severity"
76     >
77       <li
78         className="coding-rules-detail-property"
79         data-meta="severity"
80       >
81         <SeverityHelper
82           className="display-inline-flex-center"
83           severity="INFO"
84         />
85       </li>
86     </Tooltip>
87     <li
88       className="coding-rules-detail-property"
89       data-meta="tags"
90     >
91       <Dropdown
92         closeOnClick={false}
93         closeOnClickOutside={true}
94         overlay={
95           <RuleDetailsTagsPopup
96             setTags={[MockFunction]}
97             sysTags={[]}
98             tags={[]}
99           />
100         }
101         overlayPlacement="bottom-left"
102       >
103         <ButtonLink>
104           <TagsList
105             allowUpdate={true}
106             tags={
107               [
108                 "coding_rules.no_tags",
109               ]
110             }
111           />
112         </ButtonLink>
113       </Dropdown>
114     </li>
115     <li
116       className="coding-rules-detail-property"
117       data-meta="available-since"
118     >
119       <span
120         className="little-spacer-right"
121       >
122         coding_rules.available_since
123       </span>
124       <DateFormatter
125         date="2013-07-26T09:40:51+0200"
126       />
127     </li>
128   </ul>
129 </div>
130 `;
131
132 exports[`should display right meta info 2`] = `
133 <div
134   className="js-rule-meta"
135 >
136   <header
137     className="page-header"
138   >
139     <div
140       className="pull-right"
141     >
142       <span
143         className="note text-middle"
144       >
145         xoo:OneExternalIssuePerLine
146       </span>
147     </div>
148     <h3
149       className="page-title coding-rules-detail-header"
150     >
151       <big>
152         xoo:OneExternalIssuePerLine
153       </big>
154     </h3>
155   </header>
156 </div>
157 `;
158
159 exports[`should display right meta info 3`] = `
160 <div
161   className="js-rule-meta"
162 >
163   <header
164     className="page-header"
165   >
166     <div
167       className="pull-right"
168     >
169       <span
170         className="note text-middle"
171       >
172         xoo:OneExternalIssueWithDetailsPerLine
173       </span>
174     </div>
175     <h3
176       className="page-title coding-rules-detail-header"
177     >
178       <big>
179         One external issue per line
180       </big>
181     </h3>
182   </header>
183   <ul
184     className="coding-rules-detail-properties"
185   >
186     <Tooltip
187       overlay="coding_rules.type.tooltip.BUG"
188     >
189       <li
190         className="coding-rules-detail-property"
191         data-meta="type"
192       >
193         <IssueTypeIcon
194           className="little-spacer-right"
195           query="BUG"
196         />
197         issue.type.BUG
198       </li>
199     </Tooltip>
200     <Tooltip
201       overlay="default_severity"
202     >
203       <li
204         className="coding-rules-detail-property"
205         data-meta="severity"
206       >
207         <SeverityHelper
208           className="display-inline-flex-center"
209           severity="MAJOR"
210         />
211       </li>
212     </Tooltip>
213     <li
214       className="coding-rules-detail-property"
215       data-meta="tags"
216     >
217       <Dropdown
218         closeOnClick={false}
219         closeOnClickOutside={true}
220         overlay={
221           <RuleDetailsTagsPopup
222             setTags={[MockFunction]}
223             sysTags={[]}
224             tags={
225               [
226                 "tag",
227               ]
228             }
229           />
230         }
231         overlayPlacement="bottom-left"
232       >
233         <ButtonLink>
234           <TagsList
235             allowUpdate={true}
236             tags={
237               [
238                 "tag",
239               ]
240             }
241           />
242         </ButtonLink>
243       </Dropdown>
244     </li>
245     <Tooltip
246       overlay="coding_rules.external_rule.engine.xoo"
247     >
248       <li
249         className="coding-rules-detail-property"
250       >
251         <div
252           className="badge spacer-left text-text-top"
253         >
254           xoo
255         </div>
256       </li>
257     </Tooltip>
258   </ul>
259 </div>
260 `;
261
262 exports[`should edit tags 1`] = `
263 <li
264   className="coding-rules-detail-property"
265   data-meta="tags"
266 >
267   <Dropdown
268     closeOnClick={false}
269     closeOnClickOutside={true}
270     overlay={
271       <RuleDetailsTagsPopup
272         setTags={[MockFunction]}
273         sysTags={[]}
274         tags={[]}
275       />
276     }
277     overlayPlacement="bottom-left"
278   >
279     <ButtonLink>
280       <TagsList
281         allowUpdate={true}
282         tags={
283           [
284             "coding_rules.no_tags",
285           ]
286         }
287       />
288     </ButtonLink>
289   </Dropdown>
290 </li>
291 `;