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