]> source.dussan.org Git - sonarqube.git/blob
324452de6ab00e4d8307d1d1b168dcc26ad510d9
[sonarqube.git] /
1 // Jest Snapshot v1, https://goo.gl/fbAQLP
2
3 exports[`should open the popup when the button is clicked 1`] = `
4 Array [
5   Array [
6     "assign",
7     undefined,
8   ],
9 ]
10 `;
11
12 exports[`should open the popup when the button is clicked 2`] = `
13 <div
14   className="dropdown"
15 >
16   <Toggler
17     closeOnEscape={true}
18     onRequestClose={[Function]}
19     open={true}
20     overlay={
21       <Connect(withCurrentUser(SetAssigneePopup))
22         issue={
23           Object {
24             "assignee": "john",
25             "assigneeAvatar": "gravatarhash",
26             "assigneeName": "John Doe",
27             "projectOrganization": "org",
28           }
29         }
30         onSelect={[MockFunction]}
31       />
32     }
33   >
34     <ButtonLink
35       className="issue-action issue-action-with-options js-issue-assign"
36       onClick={[Function]}
37     >
38       <span
39         className="text-top"
40       >
41         <Connect(Avatar)
42           className="little-spacer-right"
43           hash="gravatarhash"
44           name="John Doe"
45           size={16}
46         />
47       </span>
48       <span
49         className="issue-meta-label"
50       >
51         John Doe
52       </span>
53       <DropdownIcon
54         className="little-spacer-left"
55       />
56     </ButtonLink>
57   </Toggler>
58 </div>
59 `;
60
61 exports[`should render a fallback assignee display if assignee info are not available 1`] = `
62 <div
63   className="dropdown"
64 >
65   <Toggler
66     closeOnEscape={true}
67     onRequestClose={[Function]}
68     open={false}
69     overlay={
70       <Connect(withCurrentUser(SetAssigneePopup))
71         issue={
72           Object {
73             "projectOrganization": "org",
74           }
75         }
76         onSelect={[MockFunction]}
77       />
78     }
79   >
80     <ButtonLink
81       className="issue-action issue-action-with-options js-issue-assign"
82       onClick={[Function]}
83     >
84       <span
85         className="issue-meta-label"
86       >
87         unassigned
88       </span>
89       <DropdownIcon
90         className="little-spacer-left"
91       />
92     </ButtonLink>
93   </Toggler>
94 </div>
95 `;
96
97 exports[`should render with the action 1`] = `
98 <div
99   className="dropdown"
100 >
101   <Toggler
102     closeOnEscape={true}
103     onRequestClose={[Function]}
104     open={false}
105     overlay={
106       <Connect(withCurrentUser(SetAssigneePopup))
107         issue={
108           Object {
109             "assignee": "john",
110             "assigneeAvatar": "gravatarhash",
111             "assigneeName": "John Doe",
112             "projectOrganization": "org",
113           }
114         }
115         onSelect={[MockFunction]}
116       />
117     }
118   >
119     <ButtonLink
120       className="issue-action issue-action-with-options js-issue-assign"
121       onClick={[Function]}
122     >
123       <span
124         className="text-top"
125       >
126         <Connect(Avatar)
127           className="little-spacer-right"
128           hash="gravatarhash"
129           name="John Doe"
130           size={16}
131         />
132       </span>
133       <span
134         className="issue-meta-label"
135       >
136         John Doe
137       </span>
138       <DropdownIcon
139         className="little-spacer-left"
140       />
141     </ButtonLink>
142   </Toggler>
143 </div>
144 `;
145
146 exports[`should render without the action when the correct rights are missing 1`] = `
147 <Fragment>
148   <span
149     className="text-top"
150   >
151     <Connect(Avatar)
152       className="little-spacer-right"
153       hash="gravatarhash"
154       name="John Doe"
155       size={16}
156     />
157   </span>
158   <span
159     className="issue-meta-label"
160   >
161     John Doe
162   </span>
163 </Fragment>
164 `;