]> source.dussan.org Git - sonarqube.git/blob
cd4b411c460924c8d271bd2b35d056e5076c6006
[sonarqube.git] /
1 // Jest Snapshot v1, https://goo.gl/fbAQLP
2
3 exports[`should render form 1`] = `
4 <Modal
5   contentLabel="header"
6   onRequestClose={[MockFunction]}
7   size="small"
8 >
9   <form
10     onSubmit={[Function]}
11   >
12     <header
13       className="modal-head"
14     >
15       <h2>
16         header
17       </h2>
18     </header>
19     <div
20       className="modal-body"
21     >
22       <div
23         className="modal-field"
24       >
25         <label
26           htmlFor="create-custom-measure-metric"
27         >
28           custom_measures.metric
29           <em
30             className="mandatory"
31           >
32             *
33           </em>
34         </label>
35         <i
36           className="spinner"
37         />
38       </div>
39       <div
40         className="modal-field"
41       >
42         <label
43           htmlFor="create-custom-measure-value"
44         >
45           value
46           <em
47             className="mandatory"
48           >
49             *
50           </em>
51         </label>
52         <input
53           autoFocus={false}
54           id="create-custom-measure-value"
55           maxLength={200}
56           name="value"
57           onChange={[Function]}
58           required={true}
59           type="text"
60           value=""
61         />
62       </div>
63       <div
64         className="modal-field"
65       >
66         <label
67           htmlFor="create-custom-measure-description"
68         >
69           description
70         </label>
71         <textarea
72           id="create-custom-measure-description"
73           name="description"
74           onChange={[Function]}
75           value=""
76         />
77       </div>
78     </div>
79     <footer
80       className="modal-foot"
81     >
82       <DeferredSpinner
83         className="spacer-right"
84         loading={false}
85       />
86       <SubmitButton
87         disabled={true}
88         id="create-custom-measure-submit"
89       >
90         confirmButtonText
91       </SubmitButton>
92       <ResetButtonLink
93         disabled={false}
94         id="create-custom-measure-cancel"
95         onClick={[Function]}
96       >
97         cancel
98       </ResetButtonLink>
99     </footer>
100   </form>
101 </Modal>
102 `;
103
104 exports[`should render form 2`] = `
105 <Modal
106   contentLabel="header"
107   onRequestClose={[MockFunction]}
108   size="small"
109 >
110   <form
111     onSubmit={[Function]}
112   >
113     <header
114       className="modal-head"
115     >
116       <h2>
117         header
118       </h2>
119     </header>
120     <div
121       className="modal-body"
122     >
123       <div
124         className="modal-field"
125       >
126         <label
127           htmlFor="create-custom-measure-metric"
128         >
129           custom_measures.metric
130           <em
131             className="mandatory"
132           >
133             *
134           </em>
135         </label>
136         <Select
137           autoFocus={true}
138           clearable={false}
139           id="create-custom-measure-metric"
140           onChange={[Function]}
141           options={
142             Array [
143               Object {
144                 "label": "Custom Metric",
145                 "value": "custom-metric",
146               },
147             ]
148           }
149         />
150       </div>
151       <div
152         className="modal-field"
153       >
154         <label
155           htmlFor="create-custom-measure-value"
156         >
157           value
158           <em
159             className="mandatory"
160           >
161             *
162           </em>
163         </label>
164         <input
165           autoFocus={false}
166           id="create-custom-measure-value"
167           maxLength={200}
168           name="value"
169           onChange={[Function]}
170           required={true}
171           type="text"
172           value=""
173         />
174       </div>
175       <div
176         className="modal-field"
177       >
178         <label
179           htmlFor="create-custom-measure-description"
180         >
181           description
182         </label>
183         <textarea
184           id="create-custom-measure-description"
185           name="description"
186           onChange={[Function]}
187           value=""
188         />
189       </div>
190     </div>
191     <footer
192       className="modal-foot"
193     >
194       <DeferredSpinner
195         className="spacer-right"
196         loading={false}
197       />
198       <SubmitButton
199         disabled={false}
200         id="create-custom-measure-submit"
201       >
202         confirmButtonText
203       </SubmitButton>
204       <ResetButtonLink
205         disabled={false}
206         id="create-custom-measure-cancel"
207         onClick={[Function]}
208       >
209         cancel
210       </ResetButtonLink>
211     </footer>
212   </form>
213 </Modal>
214 `;