]> source.dussan.org Git - sonarqube.git/blob
daf655407d52e58fbefe65e0736d746b0d0e9dab
[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 modal-container"
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       />
149       <SubmitButton
150         disabled={false}
151         id="create-metric-submit"
152       >
153         confirmButtonText
154       </SubmitButton>
155       <ResetButtonLink
156         disabled={false}
157         id="create-metric-cancel"
158         onClick={[Function]}
159       >
160         cancel
161       </ResetButtonLink>
162     </footer>
163   </form>
164 </Modal>
165 `;