]> source.dussan.org Git - sonarqube.git/blob
5907065424707451e587ca64d59e4fd7551c3d49
[sonarqube.git] /
1 // Jest Snapshot v1, https://goo.gl/fbAQLP
2
3 exports[`should render correctly 1`] = `
4 <DropdownOverlay
5   noPadding={true}
6 >
7   <header
8     className="menu-search"
9   >
10     <h6>
11       issue.filter_similar_issues
12     </h6>
13   </header>
14   <SelectList
15     className="issues-similar-issues-menu"
16     currentItem="type"
17     items={
18       Array [
19         "type",
20         "severity",
21         "status",
22         "resolution",
23         "assignee",
24         "rule",
25         "tag###test-tag",
26         "project",
27         "module",
28         "file",
29       ]
30     }
31     onSelect={[Function]}
32   >
33     <SelectListItem
34       item="type"
35     >
36       <IssueTypeIcon
37         className="little-spacer-right"
38         query="BUG"
39       />
40       issue.type.BUG
41     </SelectListItem>
42     <SelectListItem
43       item="severity"
44     >
45       <SeverityHelper
46         severity="MAJOR"
47       />
48     </SelectListItem>
49     <SelectListItem
50       item="status"
51     >
52       <StatusHelper
53         status="OPEN"
54       />
55     </SelectListItem>
56     <SelectListItem
57       item="resolution"
58     >
59       unresolved
60     </SelectListItem>
61     <SelectListItem
62       item="assignee"
63     >
64       unassigned
65     </SelectListItem>
66     <li
67       className="divider"
68     />
69     <SelectListItem
70       item="rule"
71     >
72       foo
73     </SelectListItem>
74     <SelectListItem
75       item="tag###test-tag"
76       key="tag###test-tag"
77     >
78       <TagsIcon
79         className="icon-half-transparent little-spacer-right text-middle"
80       />
81       <span
82         className="text-middle"
83       >
84         test-tag
85       </span>
86     </SelectListItem>
87     <li
88       className="divider"
89     />
90     <SelectListItem
91       item="project"
92     >
93       <QualifierIcon
94         className="little-spacer-right"
95         qualifier="TRK"
96       />
97       Foo
98     </SelectListItem>
99     <SelectListItem
100       item="module"
101     >
102       <QualifierIcon
103         className="little-spacer-right"
104         qualifier="BRC"
105       />
106       Foo
107     </SelectListItem>
108     <SelectListItem
109       item="file"
110     >
111       <QualifierIcon
112         className="little-spacer-right"
113         qualifier="FIL"
114       />
115       main.js
116     </SelectListItem>
117   </SelectList>
118 </DropdownOverlay>
119 `;
120
121 exports[`should render correctly when assigned 1`] = `
122 <SelectListItem
123   item="assignee"
124 >
125   <span>
126     assigned_to
127     <Connect(Avatar)
128       className="little-spacer-left little-spacer-right"
129       name="Luke Skywalker"
130       size={16}
131     />
132     Luke Skywalker
133   </span>
134 </SelectListItem>
135 `;
136
137 exports[`should render correctly when assigned 2`] = `
138 <SelectListItem
139   item="assignee"
140 >
141   <span>
142     assigned_to
143     <Connect(Avatar)
144       className="little-spacer-left little-spacer-right"
145       name="luke"
146       size={16}
147     />
148     user.x_deleted.luke
149   </span>
150 </SelectListItem>
151 `;