]> source.dussan.org Git - sonarqube.git/blob
6802c47918044ac1f124fab506136bf37bd28e69
[sonarqube.git] /
1 // Jest Snapshot v1, https://goo.gl/fbAQLP
2
3 exports[`should render correctly for type="Completed" & isSystemAdmin=false 1`] = `
4 <div
5   className="indexation-notification-wrapper"
6 >
7   <Alert
8     className="indexation-notification-banner"
9     display="banner"
10     variant="success"
11   >
12     <div
13       className="display-flex-center"
14     >
15       <span
16         className="spacer-right"
17       >
18         indexation.completed
19       </span>
20     </div>
21   </Alert>
22 </div>
23 `;
24
25 exports[`should render correctly for type="Completed" & isSystemAdmin=true 1`] = `
26 <div
27   className="indexation-notification-wrapper"
28 >
29   <Alert
30     className="indexation-notification-banner"
31     display="banner"
32     variant="success"
33   >
34     <div
35       className="display-flex-center"
36     >
37       <span
38         className="spacer-right"
39       >
40         indexation.completed
41       </span>
42     </div>
43   </Alert>
44 </div>
45 `;
46
47 exports[`should render correctly for type="CompletedWithFailure" & isSystemAdmin=false 1`] = `
48 <div
49   className="indexation-notification-wrapper"
50 >
51   <Alert
52     className="indexation-notification-banner"
53     display="banner"
54     variant="error"
55   >
56     <div
57       className="display-flex-center"
58     >
59       <span
60         className="spacer-right"
61       >
62         <FormattedMessage
63           defaultMessage="indexation.completed_with_error"
64           id="indexation.completed_with_error"
65           values={
66             Object {
67               "link": "indexation.completed_with_error.link",
68             }
69           }
70         />
71       </span>
72     </div>
73   </Alert>
74 </div>
75 `;
76
77 exports[`should render correctly for type="CompletedWithFailure" & isSystemAdmin=true 1`] = `
78 <div
79   className="indexation-notification-wrapper"
80 >
81   <Alert
82     className="indexation-notification-banner"
83     display="banner"
84     variant="error"
85   >
86     <div
87       className="display-flex-center"
88     >
89       <span
90         className="spacer-right"
91       >
92         <FormattedMessage
93           defaultMessage="indexation.completed_with_error"
94           id="indexation.completed_with_error"
95           values={
96             Object {
97               "link": <Link
98                 to={
99                   Object {
100                     "pathname": "/admin/background_tasks",
101                     "search": "?taskType=ISSUE_SYNC&status=FAILED",
102                   }
103                 }
104               >
105                 indexation.completed_with_error.link
106               </Link>,
107             }
108           }
109         />
110       </span>
111     </div>
112   </Alert>
113 </div>
114 `;
115
116 exports[`should render correctly for type="InProgress" & isSystemAdmin=false 1`] = `
117 <div
118   className="indexation-notification-wrapper"
119 >
120   <Alert
121     className="indexation-notification-banner"
122     display="banner"
123     variant="warning"
124   >
125     <div
126       className="display-flex-center"
127     >
128       <span
129         className="spacer-right"
130       >
131         indexation.in_progress
132       </span>
133       <i
134         className="spinner spacer-right"
135       />
136       <span
137         className="spacer-right"
138       >
139         indexation.progression.25
140       </span>
141     </div>
142   </Alert>
143 </div>
144 `;
145
146 exports[`should render correctly for type="InProgress" & isSystemAdmin=true 1`] = `
147 <div
148   className="indexation-notification-wrapper"
149 >
150   <Alert
151     className="indexation-notification-banner"
152     display="banner"
153     variant="warning"
154   >
155     <div
156       className="display-flex-center"
157     >
158       <span
159         className="spacer-right"
160       >
161         indexation.in_progress
162       </span>
163       <i
164         className="spinner spacer-right"
165       />
166       <span
167         className="spacer-right"
168       >
169         indexation.progression.25
170       </span>
171       <span
172         className="spacer-right"
173       >
174         <FormattedMessage
175           defaultMessage="indexation.admin_link"
176           id="indexation.admin_link"
177           values={
178             Object {
179               "link": <Link
180                 to={
181                   Object {
182                     "pathname": "/admin/background_tasks",
183                     "search": "?taskType=ISSUE_SYNC",
184                   }
185                 }
186               >
187                 background_tasks.page
188               </Link>,
189             }
190           }
191         />
192       </span>
193     </div>
194   </Alert>
195 </div>
196 `;
197
198 exports[`should render correctly for type="InProgressWithFailure" & isSystemAdmin=false 1`] = `
199 <div
200   className="indexation-notification-wrapper"
201 >
202   <Alert
203     className="indexation-notification-banner"
204     display="banner"
205     variant="error"
206   >
207     <div
208       className="display-flex-center"
209     >
210       <span
211         className="spacer-right"
212       >
213         indexation.in_progress
214       </span>
215       <i
216         className="spinner spacer-right"
217       />
218       <span
219         className="spacer-right"
220       >
221         <FormattedMessage
222           defaultMessage="indexation.progression_with_error.25"
223           id="indexation.progression_with_error"
224           values={
225             Object {
226               "link": "indexation.progression_with_error.link",
227             }
228           }
229         />
230       </span>
231     </div>
232   </Alert>
233 </div>
234 `;
235
236 exports[`should render correctly for type="InProgressWithFailure" & isSystemAdmin=true 1`] = `
237 <div
238   className="indexation-notification-wrapper"
239 >
240   <Alert
241     className="indexation-notification-banner"
242     display="banner"
243     variant="error"
244   >
245     <div
246       className="display-flex-center"
247     >
248       <span
249         className="spacer-right"
250       >
251         indexation.in_progress
252       </span>
253       <i
254         className="spinner spacer-right"
255       />
256       <span
257         className="spacer-right"
258       >
259         <FormattedMessage
260           defaultMessage="indexation.progression_with_error.25"
261           id="indexation.progression_with_error"
262           values={
263             Object {
264               "link": <Link
265                 to={
266                   Object {
267                     "pathname": "/admin/background_tasks",
268                     "search": "?taskType=ISSUE_SYNC&status=FAILED",
269                   }
270                 }
271               >
272                 indexation.progression_with_error.link
273               </Link>,
274             }
275           }
276         />
277       </span>
278     </div>
279   </Alert>
280 </div>
281 `;