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