]> source.dussan.org Git - sonarqube.git/blob
0a0c403a888e4c5d3117562a4677e18a3155a71e
[sonarqube.git] /
1 // Jest Snapshot v1, https://goo.gl/fbAQLP
2
3 exports[`should render correctly: cannot import 1`] = `
4 <div
5   className="boxed-group"
6   id="project-import"
7 >
8   <div
9     className="boxed-group-header"
10   >
11     <h2>
12       project_dump.import
13     </h2>
14   </div>
15   <div
16     className="boxed-group-inner"
17     id="import-not-possible"
18   >
19     project_dump.can_not_import
20   </div>
21 </div>
22 `;
23
24 exports[`should render correctly: failed 1`] = `
25 <div
26   className="boxed-group"
27   id="project-import"
28 >
29   <div
30     className="boxed-group-header"
31   >
32     <h2>
33       project_dump.import
34     </h2>
35   </div>
36   <div
37     className="boxed-group-inner"
38   >
39     <Alert
40       id="export-in-progress"
41       variant="error"
42     >
43       project_dump.failed_import
44       <ForwardRef(Link)
45         className="spacer-left"
46         to={
47           {
48             "hash": "",
49             "pathname": "/project/background_tasks",
50             "search": "?id=key&status=FAILED&taskType=PROJECT_IMPORT",
51           }
52         }
53       >
54         project_dump.see_details
55       </ForwardRef(Link)>
56     </Alert>
57     <div>
58       <div
59         className="spacer-bottom"
60       >
61         project_dump.import_form_description
62       </div>
63       <Button
64         onClick={[Function]}
65       >
66         project_dump.do_import
67       </Button>
68     </div>
69   </div>
70 </div>
71 `;
72
73 exports[`should render correctly: import disabled 1`] = `
74 <div
75   className="boxed-group import-disabled text-muted"
76   id="project-import"
77 >
78   <div
79     className="boxed-group-header"
80   >
81     <h2>
82       project_dump.import
83     </h2>
84   </div>
85   <div
86     className="boxed-group-inner"
87   >
88     project_dump.import_form_description_disabled
89   </div>
90 </div>
91 `;
92
93 exports[`should render correctly: import form 1`] = `
94 <div
95   className="boxed-group"
96   id="project-import"
97 >
98   <div
99     className="boxed-group-header"
100   >
101     <h2>
102       project_dump.import
103     </h2>
104   </div>
105   <div
106     className="boxed-group-inner"
107   >
108     <div>
109       <div
110         className="spacer-bottom"
111       >
112         project_dump.import_form_description
113       </div>
114       <Button
115         onClick={[Function]}
116       >
117         project_dump.do_import
118       </Button>
119     </div>
120   </div>
121 </div>
122 `;
123
124 exports[`should render correctly: in progress 1`] = `
125 <div
126   className="boxed-group"
127   id="project-import"
128 >
129   <div
130     className="boxed-group-header"
131   >
132     <h2>
133       project_dump.import
134     </h2>
135   </div>
136   <div
137     className="boxed-group-inner"
138     id="import-in-progress"
139   >
140     <i
141       className="spinner spacer-right"
142     />
143     <DateFromNow
144       date="2020-03-12T12:20:20Z"
145     >
146       <Component />
147     </DateFromNow>
148   </div>
149 </div>
150 `;
151
152 exports[`should render correctly: no dump to import 1`] = `
153 <div
154   className="boxed-group"
155   id="project-import"
156 >
157   <div
158     className="boxed-group-header"
159   >
160     <h2>
161       project_dump.import
162     </h2>
163   </div>
164   <div
165     className="boxed-group-inner"
166   >
167     <Alert
168       id="import-no-file"
169       variant="warning"
170     >
171       project_dump.no_file_to_import
172     </Alert>
173   </div>
174 </div>
175 `;
176
177 exports[`should render correctly: pending 1`] = `
178 <div
179   className="boxed-group"
180   id="project-import"
181 >
182   <div
183     className="boxed-group-header"
184   >
185     <h2>
186       project_dump.import
187     </h2>
188   </div>
189   <div
190     className="boxed-group-inner"
191     id="import-pending"
192   >
193     <i
194       className="spinner spacer-right"
195     />
196     <DateTimeFormatter
197       date="2020-03-12T12:15:20Z"
198     >
199       <Component />
200     </DateTimeFormatter>
201   </div>
202 </div>
203 `;
204
205 exports[`should render correctly: success 1`] = `
206 <div
207   className="boxed-group"
208   id="project-import"
209 >
210   <div
211     className="boxed-group-header"
212   >
213     <h2>
214       project_dump.import
215     </h2>
216   </div>
217   <div
218     className="boxed-group-inner"
219   >
220     <DateTimeFormatter
221       date="2020-03-12T12:22:20Z"
222     >
223       <Component />
224     </DateTimeFormatter>
225   </div>
226 </div>
227 `;
228
229 exports[`should render correctly: success, but with analysis -> show form 1`] = `
230 <div
231   className="boxed-group"
232   id="project-import"
233 >
234   <div
235     className="boxed-group-header"
236   >
237     <h2>
238       project_dump.import
239     </h2>
240   </div>
241   <div
242     className="boxed-group-inner"
243   >
244     <Alert
245       id="import-no-file"
246       variant="warning"
247     >
248       project_dump.no_file_to_import
249     </Alert>
250   </div>
251 </div>
252 `;