]> source.dussan.org Git - sonarqube.git/blob
7f3fc48c7c20e84c83ca2b1d5459f4e7b2ed6f4f
[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         onSelect={[MockFunction]}
23       />
24     }
25   >
26     <ButtonLink
27       className="issue-action issue-action-with-options js-issue-assign"
28       onClick={[Function]}
29     >
30       <span
31         className="text-top"
32       >
33         <Connect(Avatar)
34           className="little-spacer-right"
35           hash="gravatarhash"
36           name="John Doe"
37           size={16}
38         />
39       </span>
40       <span
41         className="issue-meta-label"
42       >
43         John Doe
44       </span>
45       <DropdownIcon
46         className="little-spacer-left"
47       />
48     </ButtonLink>
49   </Toggler>
50 </div>
51 `;
52
53 exports[`should render a fallback assignee display if assignee info are not available 1`] = `
54 <div
55   className="dropdown"
56 >
57   <Toggler
58     closeOnEscape={true}
59     onRequestClose={[Function]}
60     open={false}
61     overlay={
62       <Connect(withCurrentUser(SetAssigneePopup))
63         onSelect={[MockFunction]}
64       />
65     }
66   >
67     <ButtonLink
68       className="issue-action issue-action-with-options js-issue-assign"
69       onClick={[Function]}
70     >
71       <span
72         className="issue-meta-label"
73       >
74         unassigned
75       </span>
76       <DropdownIcon
77         className="little-spacer-left"
78       />
79     </ButtonLink>
80   </Toggler>
81 </div>
82 `;
83
84 exports[`should render with the action 1`] = `
85 <div
86   className="dropdown"
87 >
88   <Toggler
89     closeOnEscape={true}
90     onRequestClose={[Function]}
91     open={false}
92     overlay={
93       <Connect(withCurrentUser(SetAssigneePopup))
94         onSelect={[MockFunction]}
95       />
96     }
97   >
98     <ButtonLink
99       className="issue-action issue-action-with-options js-issue-assign"
100       onClick={[Function]}
101     >
102       <span
103         className="text-top"
104       >
105         <Connect(Avatar)
106           className="little-spacer-right"
107           hash="gravatarhash"
108           name="John Doe"
109           size={16}
110         />
111       </span>
112       <span
113         className="issue-meta-label"
114       >
115         John Doe
116       </span>
117       <DropdownIcon
118         className="little-spacer-left"
119       />
120     </ButtonLink>
121   </Toggler>
122 </div>
123 `;
124
125 exports[`should render without the action when the correct rights are missing 1`] = `
126 <Fragment>
127   <span
128     className="text-top"
129   >
130     <Connect(Avatar)
131       className="little-spacer-right"
132       hash="gravatarhash"
133       name="John Doe"
134       size={16}
135     />
136   </span>
137   <span
138     className="issue-meta-label"
139   >
140     John Doe
141   </span>
142 </Fragment>
143 `;