]> source.dussan.org Git - sonarqube.git/blob
8e02d72a15c54733d739329e01c9d928967b670d
[sonarqube.git] /
1 // Jest Snapshot v1, https://goo.gl/fbAQLP
2
3 exports[`should render correctly: cannot export 1`] = `
4 <div
5   className="boxed-group"
6   id="project-export"
7 >
8   <div
9     className="boxed-group-header"
10   >
11     <h2>
12       project_dump.export
13     </h2>
14   </div>
15   <div
16     className="boxed-group-inner"
17   >
18     <Alert
19       id="export-not-possible"
20       variant="warning"
21     >
22       project_dump.can_not_export
23     </Alert>
24   </div>
25 </div>
26 `;
27
28 exports[`should render correctly: no task 1`] = `
29 <div
30   className="boxed-group"
31   id="project-export"
32 >
33   <div
34     className="boxed-group-header"
35   >
36     <h2>
37       project_dump.export
38     </h2>
39   </div>
40   <div
41     className="boxed-group-inner"
42   >
43     <div>
44       <div
45         className="spacer-bottom"
46       >
47         project_dump.export_form_description
48       </div>
49       <Button
50         onClick={[Function]}
51       >
52         project_dump.do_export
53       </Button>
54     </div>
55   </div>
56 </div>
57 `;
58
59 exports[`should render correctly: success 1`] = `
60 <div
61   className="boxed-group"
62   id="project-export"
63 >
64   <div
65     className="boxed-group-header"
66   >
67     <h2>
68       project_dump.export
69     </h2>
70   </div>
71   <div
72     className="boxed-group-inner"
73   >
74     <Alert
75       className="export-dump"
76       variant="success"
77     >
78       <DateTimeFormatter
79         date="2020-03-12T12:22:20Z"
80       >
81         <Component />
82       </DateTimeFormatter>
83       <div
84         className="export-dump-path"
85       >
86         <code
87           tabIndex={0}
88         >
89           dump-file
90         </code>
91       </div>
92     </Alert>
93     <div>
94       <div
95         className="spacer-bottom"
96       >
97         project_dump.export_form_description
98       </div>
99       <Button
100         onClick={[Function]}
101       >
102         project_dump.do_export
103       </Button>
104     </div>
105   </div>
106 </div>
107 `;
108
109 exports[`should render correctly: task failed 1`] = `
110 <div
111   className="boxed-group"
112   id="project-export"
113 >
114   <div
115     className="boxed-group-header"
116   >
117     <h2>
118       project_dump.export
119     </h2>
120   </div>
121   <div
122     className="boxed-group-inner"
123   >
124     <Alert
125       id="export-in-progress"
126       variant="error"
127     >
128       project_dump.failed_export
129       <ForwardRef(Link)
130         className="spacer-left"
131         to="/project/background_tasks?id=key&status=FAILED&taskType=PROJECT_EXPORT"
132       >
133         project_dump.see_details
134       </ForwardRef(Link)>
135     </Alert>
136     <div>
137       <div
138         className="spacer-bottom"
139       >
140         project_dump.export_form_description
141       </div>
142       <Button
143         onClick={[Function]}
144       >
145         project_dump.do_export
146       </Button>
147     </div>
148   </div>
149 </div>
150 `;
151
152 exports[`should render correctly: task in progress 1`] = `
153 <div
154   className="boxed-group"
155   id="project-export"
156 >
157   <div
158     className="boxed-group-header"
159   >
160     <h2>
161       project_dump.export
162     </h2>
163   </div>
164   <div
165     className="boxed-group-inner"
166     id="export-in-progress"
167   >
168     <i
169       className="spinner spacer-right"
170     />
171     <DateFromNow
172       date="2020-03-12T12:20:20Z"
173     >
174       <Component />
175     </DateFromNow>
176   </div>
177 </div>
178 `;
179
180 exports[`should render correctly: task pending 1`] = `
181 <div
182   className="boxed-group"
183   id="project-export"
184 >
185   <div
186     className="boxed-group-header"
187   >
188     <h2>
189       project_dump.export
190     </h2>
191   </div>
192   <div
193     className="boxed-group-inner"
194     id="export-pending"
195   >
196     <i
197       className="spinner spacer-right"
198     />
199     <DateTimeFormatter
200       date="2020-03-12T12:15:20Z"
201     >
202       <Component />
203     </DateTimeFormatter>
204   </div>
205 </div>
206 `;