]> source.dussan.org Git - sonarqube.git/blob
67756efde7f4e13950eb11d03532ee494480fd01
[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       [
19         "type",
20         "severity",
21         "status",
22         "resolution",
23         "assignee",
24         "rule",
25         "tag###test-tag",
26         "project",
27         "file",
28       ]
29     }
30     onSelect={[Function]}
31   >
32     <SelectListItem
33       className="display-flex-center"
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         className="display-flex-center"
47         severity="MAJOR"
48       />
49     </SelectListItem>
50     <SelectListItem
51       item="status"
52     >
53       <StatusHelper
54         className="display-flex-center"
55         status="OPEN"
56       />
57     </SelectListItem>
58     <SelectListItem
59       item="resolution"
60     >
61       unresolved
62     </SelectListItem>
63     <SelectListItem
64       item="assignee"
65     >
66       unassigned
67     </SelectListItem>
68     <li
69       className="divider"
70     />
71     <SelectListItem
72       item="rule"
73     >
74       foo
75     </SelectListItem>
76     <SelectListItem
77       item="tag###test-tag"
78       key="tag###test-tag"
79     >
80       <TagsIcon
81         className="little-spacer-right text-middle"
82       />
83       <span
84         className="text-middle"
85       >
86         test-tag
87       </span>
88     </SelectListItem>
89     <li
90       className="divider"
91     />
92     <SelectListItem
93       item="project"
94     >
95       <QualifierIcon
96         className="little-spacer-right"
97         qualifier="TRK"
98       />
99       Foo
100     </SelectListItem>
101     <SelectListItem
102       item="file"
103     >
104       <QualifierIcon
105         className="little-spacer-right"
106         qualifier="FIL"
107       />
108       main.js
109     </SelectListItem>
110   </SelectList>
111 </DropdownOverlay>
112 `;
113
114 exports[`should render correctly when assigned 1`] = `
115 <SelectListItem
116   item="assignee"
117 >
118   <span>
119     assigned_to
120     <withAppStateContext(Avatar)
121       className="little-spacer-left little-spacer-right"
122       name="Luke Skywalker"
123       size={16}
124     />
125     Luke Skywalker
126   </span>
127 </SelectListItem>
128 `;
129
130 exports[`should render correctly when assigned 2`] = `
131 <SelectListItem
132   item="assignee"
133 >
134   <span>
135     assigned_to
136     <withAppStateContext(Avatar)
137       className="little-spacer-left little-spacer-right"
138       name="luke"
139       size={16}
140     />
141     user.x_deleted.luke
142   </span>
143 </SelectListItem>
144 `;