]> source.dussan.org Git - sonarqube.git/blob
04cfc11d49b75fa288c40322d97cf40df00aa70a
[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           name="system.log_levels"
38           onChange={[Function]}
39           type="radio"
40           value="INFO"
41         />
42         INFO
43       </p>
44       <p
45         className="spacer-bottom"
46       >
47         <input
48           checked={true}
49           className="spacer-right text-middle"
50           name="system.log_levels"
51           onChange={[Function]}
52           type="radio"
53           value="DEBUG"
54         />
55         DEBUG
56       </p>
57       <p
58         className="spacer-bottom"
59       >
60         <input
61           checked={false}
62           className="spacer-right text-middle"
63           name="system.log_levels"
64           onChange={[Function]}
65           type="radio"
66           value="TRACE"
67         />
68         TRACE
69       </p>
70       <div
71         className="alert alert-info spacer-top"
72       >
73         Foo
74       </div>
75       <div
76         className="alert alert-danger spacer-top"
77       >
78         system.log_level.warning
79       </div>
80     </div>
81     <div
82       className="modal-foot"
83     >
84       <button
85         disabled={true}
86         id="set-log-level-submit"
87       >
88         save
89       </button>
90       <a
91         href="#"
92         id="set-log-level-cancel"
93         onClick={[Function]}
94       >
95         cancel
96       </a>
97     </div>
98   </form>
99 </Modal>
100 `;
101
102 exports[`should render correctly 1`] = `
103 <Modal
104   ariaHideApp={true}
105   bodyOpenClassName="ReactModal__Body--open"
106   className="modal"
107   closeTimeoutMS={0}
108   contentLabel="system.set_log_level"
109   isOpen={true}
110   onRequestClose={[Function]}
111   overlayClassName="modal-overlay"
112   parentSelector={[Function]}
113   portalClassName="ReactModalPortal"
114   shouldCloseOnOverlayClick={true}
115 >
116   <form
117     id="set-log-level-form"
118     onSubmit={[Function]}
119   >
120     <div
121       className="modal-head"
122     >
123       <h2>
124         system.set_log_level
125       </h2>
126     </div>
127     <div
128       className="modal-body"
129     >
130       <p
131         className="spacer-bottom"
132       >
133         <input
134           checked={true}
135           className="spacer-right text-middle"
136           name="system.log_levels"
137           onChange={[Function]}
138           type="radio"
139           value="INFO"
140         />
141         INFO
142       </p>
143       <p
144         className="spacer-bottom"
145       >
146         <input
147           checked={false}
148           className="spacer-right text-middle"
149           name="system.log_levels"
150           onChange={[Function]}
151           type="radio"
152           value="DEBUG"
153         />
154         DEBUG
155       </p>
156       <p
157         className="spacer-bottom"
158       >
159         <input
160           checked={false}
161           className="spacer-right text-middle"
162           name="system.log_levels"
163           onChange={[Function]}
164           type="radio"
165           value="TRACE"
166         />
167         TRACE
168       </p>
169       <div
170         className="alert alert-info spacer-top"
171       >
172         Foo
173       </div>
174     </div>
175     <div
176       className="modal-foot"
177     >
178       <button
179         disabled={true}
180         id="set-log-level-submit"
181       >
182         save
183       </button>
184       <a
185         href="#"
186         id="set-log-level-cancel"
187         onClick={[Function]}
188       >
189         cancel
190       </a>
191     </div>
192   </form>
193 </Modal>
194 `;