]> source.dussan.org Git - sonarqube.git/blob
692174076ae0d06d159cb9495bdb684676c39277
[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-metric-key"
27         >
28           key
29           <em
30             className="mandatory"
31           >
32             *
33           </em>
34         </label>
35         <input
36           autoFocus={true}
37           id="create-metric-key"
38           maxLength={64}
39           name="key"
40           onChange={[Function]}
41           required={true}
42           type="text"
43           value=""
44         />
45       </div>
46       <div
47         className="modal-field"
48       >
49         <label
50           htmlFor="create-metric-name"
51         >
52           name
53           <em
54             className="mandatory"
55           >
56             *
57           </em>
58         </label>
59         <input
60           id="create-metric-name"
61           maxLength={64}
62           name="name"
63           onChange={[Function]}
64           required={true}
65           type="text"
66           value=""
67         />
68       </div>
69       <div
70         className="modal-field"
71       >
72         <label
73           htmlFor="create-metric-description"
74         >
75           description
76         </label>
77         <textarea
78           id="create-metric-description"
79           name="description"
80           onChange={[Function]}
81           value=""
82         />
83       </div>
84       <div
85         className="modal-field"
86       >
87         <label
88           htmlFor="create-metric-domain"
89         >
90           custom_metrics.domain
91         </label>
92         <Creatable
93           id="create-metric-domain"
94           onChange={[Function]}
95           options={
96             Array [
97               Object {
98                 "label": "Coverage",
99                 "value": "Coverage",
100               },
101               Object {
102                 "label": "Issues",
103                 "value": "Issues",
104               },
105             ]
106           }
107         />
108       </div>
109       <div
110         className="modal-field"
111       >
112         <label
113           htmlFor="create-metric-type"
114         >
115           type
116           <em
117             className="mandatory"
118           >
119             *
120           </em>
121         </label>
122         <Select
123           clearable={false}
124           id="create-metric-type"
125           onChange={[Function]}
126           options={
127             Array [
128               Object {
129                 "label": "metric.type.INT",
130                 "value": "INT",
131               },
132               Object {
133                 "label": "metric.type.STRING",
134                 "value": "STRING",
135               },
136             ]
137           }
138           value="INT"
139         />
140       </div>
141     </div>
142     <footer
143       className="modal-foot"
144     >
145       <DeferredSpinner
146         className="spacer-right"
147         loading={false}
148         timeout={100}
149       />
150       <SubmitButton
151         disabled={false}
152         id="create-metric-submit"
153       >
154         confirmButtonText
155       </SubmitButton>
156       <ResetButtonLink
157         disabled={false}
158         id="create-metric-cancel"
159         onClick={[Function]}
160       >
161         cancel
162       </ResetButtonLink>
163     </footer>
164   </form>
165 </Modal>
166 `;