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