]> source.dussan.org Git - sonarqube.git/blob
4759423740e43accfa6f2b7231f532294fced251
[sonarqube.git] /
1 // Jest Snapshot v1, https://goo.gl/fbAQLP
2
3 exports[`should display some warning messages for non INFO levels 1`] = `
4 <Modal
5   ariaHideApp={true}
6   bodyOpenClassName="ReactModal__Body--open"
7   className="modal"
8   closeTimeoutMS={0}
9   contentLabel="system.set_log_level"
10   isOpen={true}
11   onRequestClose={[Function]}
12   overlayClassName="modal-overlay"
13   parentSelector={[Function]}
14   portalClassName="ReactModalPortal"
15   shouldCloseOnOverlayClick={true}
16 >
17   <form
18     id="set-log-level-form"
19     onSubmit={[Function]}
20   >
21     <div
22       className="modal-head"
23     >
24       <h2>
25         system.set_log_level
26       </h2>
27     </div>
28     <div
29       className="modal-body"
30     >
31       <p
32         className="spacer-bottom"
33       >
34         <input
35           checked={false}
36           className="spacer-right text-middle"
37           id="loglevel-INFO"
38           name="system.log_levels"
39           onChange={[Function]}
40           type="radio"
41           value="INFO"
42         />
43         <label
44           htmlFor="loglevel-INFO"
45         >
46           INFO
47         </label>
48       </p>
49       <p
50         className="spacer-bottom"
51       >
52         <input
53           checked={true}
54           className="spacer-right text-middle"
55           id="loglevel-DEBUG"
56           name="system.log_levels"
57           onChange={[Function]}
58           type="radio"
59           value="DEBUG"
60         />
61         <label
62           htmlFor="loglevel-DEBUG"
63         >
64           DEBUG
65         </label>
66       </p>
67       <p
68         className="spacer-bottom"
69       >
70         <input
71           checked={false}
72           className="spacer-right text-middle"
73           id="loglevel-TRACE"
74           name="system.log_levels"
75           onChange={[Function]}
76           type="radio"
77           value="TRACE"
78         />
79         <label
80           htmlFor="loglevel-TRACE"
81         >
82           TRACE
83         </label>
84       </p>
85       <div
86         className="alert alert-info spacer-top"
87       >
88         Foo
89       </div>
90       <div
91         className="alert alert-danger spacer-top"
92       >
93         system.log_level.warning
94       </div>
95     </div>
96     <div
97       className="modal-foot"
98     >
99       <button
100         disabled={false}
101         id="set-log-level-submit"
102       >
103         save
104       </button>
105       <a
106         href="#"
107         id="set-log-level-cancel"
108         onClick={[Function]}
109       >
110         cancel
111       </a>
112     </div>
113   </form>
114 </Modal>
115 `;
116
117 exports[`should render correctly 1`] = `
118 <Modal
119   ariaHideApp={true}
120   bodyOpenClassName="ReactModal__Body--open"
121   className="modal"
122   closeTimeoutMS={0}
123   contentLabel="system.set_log_level"
124   isOpen={true}
125   onRequestClose={[Function]}
126   overlayClassName="modal-overlay"
127   parentSelector={[Function]}
128   portalClassName="ReactModalPortal"
129   shouldCloseOnOverlayClick={true}
130 >
131   <form
132     id="set-log-level-form"
133     onSubmit={[Function]}
134   >
135     <div
136       className="modal-head"
137     >
138       <h2>
139         system.set_log_level
140       </h2>
141     </div>
142     <div
143       className="modal-body"
144     >
145       <p
146         className="spacer-bottom"
147       >
148         <input
149           checked={true}
150           className="spacer-right text-middle"
151           id="loglevel-INFO"
152           name="system.log_levels"
153           onChange={[Function]}
154           type="radio"
155           value="INFO"
156         />
157         <label
158           htmlFor="loglevel-INFO"
159         >
160           INFO
161         </label>
162       </p>
163       <p
164         className="spacer-bottom"
165       >
166         <input
167           checked={false}
168           className="spacer-right text-middle"
169           id="loglevel-DEBUG"
170           name="system.log_levels"
171           onChange={[Function]}
172           type="radio"
173           value="DEBUG"
174         />
175         <label
176           htmlFor="loglevel-DEBUG"
177         >
178           DEBUG
179         </label>
180       </p>
181       <p
182         className="spacer-bottom"
183       >
184         <input
185           checked={false}
186           className="spacer-right text-middle"
187           id="loglevel-TRACE"
188           name="system.log_levels"
189           onChange={[Function]}
190           type="radio"
191           value="TRACE"
192         />
193         <label
194           htmlFor="loglevel-TRACE"
195         >
196           TRACE
197         </label>
198       </p>
199       <div
200         className="alert alert-info spacer-top"
201       >
202         Foo
203       </div>
204     </div>
205     <div
206       className="modal-foot"
207     >
208       <button
209         disabled={false}
210         id="set-log-level-submit"
211       >
212         save
213       </button>
214       <a
215         href="#"
216         id="set-log-level-cancel"
217         onClick={[Function]}
218       >
219         cancel
220       </a>
221     </div>
222   </form>
223 </Modal>
224 `;