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