]> source.dussan.org Git - sonarqube.git/blob
b703954b0eae133d0908893848e89b80d9366c7a
[sonarqube.git] /
1 // Jest Snapshot v1, https://goo.gl/fbAQLP
2
3 exports[`should fetch task warnings if it has to 1`] = `
4 <Modal
5   contentLabel="warnings"
6   onRequestClose={[MockFunction]}
7 >
8   <header
9     className="modal-head"
10   >
11     <h2>
12       warnings
13     </h2>
14   </header>
15   <div
16     className="modal-body modal-container js-analysis-warnings"
17   >
18     <DeferredSpinner
19       loading={false}
20     >
21       <div
22         className="panel panel-vertical"
23         key="message foo"
24       >
25         <WarningIcon
26           className="pull-left spacer-right"
27         />
28         <div
29           className="overflow-hidden markdown"
30         >
31           <span
32             dangerouslySetInnerHTML={
33               Object {
34                 "__html": "message foo",
35               }
36             }
37           />
38         </div>
39       </div>
40       <div
41         className="panel panel-vertical"
42         key="message-bar"
43       >
44         <WarningIcon
45           className="pull-left spacer-right"
46         />
47         <div
48           className="overflow-hidden markdown"
49         >
50           <span
51             dangerouslySetInnerHTML={
52               Object {
53                 "__html": "message-bar",
54               }
55             }
56           />
57         </div>
58       </div>
59       <div
60         className="panel panel-vertical"
61         key="multiline message
62 secondline
63   third line"
64       >
65         <WarningIcon
66           className="pull-left spacer-right"
67         />
68         <div
69           className="overflow-hidden markdown"
70         >
71           <span
72             dangerouslySetInnerHTML={
73               Object {
74                 "__html": "multiline message<br>secondline<br>  third line",
75               }
76             }
77           />
78         </div>
79       </div>
80     </DeferredSpinner>
81   </div>
82   <footer
83     className="modal-foot"
84   >
85     <ButtonLink
86       className="js-modal-close"
87       onClick={[MockFunction]}
88     >
89       close
90     </ButtonLink>
91   </footer>
92 </Modal>
93 `;
94
95 exports[`should render correctly: default 1`] = `
96 <Modal
97   contentLabel="warnings"
98   onRequestClose={[MockFunction]}
99 >
100   <header
101     className="modal-head"
102   >
103     <h2>
104       warnings
105     </h2>
106   </header>
107   <div
108     className="modal-body modal-container js-analysis-warnings"
109   >
110     <DeferredSpinner
111       loading={false}
112     >
113       <div
114         className="panel panel-vertical"
115         key="foo"
116       >
117         <WarningIcon
118           className="pull-left spacer-right"
119         />
120         <div
121           className="overflow-hidden markdown"
122         >
123           <span
124             dangerouslySetInnerHTML={
125               Object {
126                 "__html": "warning 1",
127               }
128             }
129           />
130         </div>
131       </div>
132       <div
133         className="panel panel-vertical"
134         key="foo"
135       >
136         <WarningIcon
137           className="pull-left spacer-right"
138         />
139         <div
140           className="overflow-hidden markdown"
141         >
142           <span
143             dangerouslySetInnerHTML={
144               Object {
145                 "__html": "warning 2",
146               }
147             }
148           />
149         </div>
150       </div>
151     </DeferredSpinner>
152   </div>
153   <footer
154     className="modal-foot"
155   >
156     <ButtonLink
157       className="js-modal-close"
158       onClick={[MockFunction]}
159     >
160       close
161     </ButtonLink>
162   </footer>
163 </Modal>
164 `;
165
166 exports[`should render correctly: do not show dismissable links for anonymous 1`] = `
167 <Modal
168   contentLabel="warnings"
169   onRequestClose={[MockFunction]}
170 >
171   <header
172     className="modal-head"
173   >
174     <h2>
175       warnings
176     </h2>
177   </header>
178   <div
179     className="modal-body modal-container js-analysis-warnings"
180   >
181     <DeferredSpinner
182       loading={false}
183     >
184       <div
185         className="panel panel-vertical"
186         key="foo"
187       >
188         <WarningIcon
189           className="pull-left spacer-right"
190         />
191         <div
192           className="overflow-hidden markdown"
193         >
194           <span
195             dangerouslySetInnerHTML={
196               Object {
197                 "__html": "Lorem ipsum",
198               }
199             }
200           />
201         </div>
202       </div>
203     </DeferredSpinner>
204   </div>
205   <footer
206     className="modal-foot"
207   >
208     <ButtonLink
209       className="js-modal-close"
210       onClick={[MockFunction]}
211     >
212       close
213     </ButtonLink>
214   </footer>
215 </Modal>
216 `;
217
218 exports[`should render correctly: with dismissable warnings 1`] = `
219 <Modal
220   contentLabel="warnings"
221   onRequestClose={[MockFunction]}
222 >
223   <header
224     className="modal-head"
225   >
226     <h2>
227       warnings
228     </h2>
229   </header>
230   <div
231     className="modal-body modal-container js-analysis-warnings"
232   >
233     <DeferredSpinner
234       loading={false}
235     >
236       <div
237         className="panel panel-vertical"
238         key="foo"
239       >
240         <WarningIcon
241           className="pull-left spacer-right"
242         />
243         <div
244           className="overflow-hidden markdown"
245         >
246           <span
247             dangerouslySetInnerHTML={
248               Object {
249                 "__html": "Lorem ipsum",
250               }
251             }
252           />
253           <div
254             className="spacer-top display-flex-inline"
255           >
256             <ButtonLink
257               className="link-base-color"
258               disabled={false}
259               onClick={[Function]}
260             >
261               dismiss_permanently
262             </ButtonLink>
263           </div>
264         </div>
265       </div>
266     </DeferredSpinner>
267   </div>
268   <footer
269     className="modal-foot"
270   >
271     <ButtonLink
272       className="js-modal-close"
273       onClick={[MockFunction]}
274     >
275       close
276     </ButtonLink>
277   </footer>
278 </Modal>
279 `;