]> source.dussan.org Git - sonarqube.git/blob
dae7cc69a986bea622bfe6daeed2192a23a02bdc
[sonarqube.git] /
1 // Jest Snapshot v1, https://goo.gl/fbAQLP
2
3 exports[`should render correctly: default 1`] = `
4 <SimpleModal
5   header="qualifiers.create.APP"
6   onClose={[MockFunction]}
7   onSubmit={[Function]}
8   size="small"
9 >
10   <Component />
11 </SimpleModal>
12 `;
13
14 exports[`should render correctly: form 1`] = `
15 <Modal
16   contentLabel="qualifiers.create.APP"
17   onRequestClose={[MockFunction]}
18   size="small"
19 >
20   <form
21     className="views-form"
22     onSubmit={[Function]}
23   >
24     <div
25       className="modal-head"
26     >
27       <h2>
28         qualifiers.create.APP
29       </h2>
30     </div>
31     <div
32       className="modal-body"
33     >
34       <div
35         className="modal-field"
36       >
37         <label
38           htmlFor="view-edit-name"
39         >
40           name
41            
42           <em
43             className="mandatory"
44           >
45             *
46           </em>
47         </label>
48         <input
49           autoFocus={true}
50           id="view-edit-name"
51           maxLength={100}
52           name="name"
53           onChange={[Function]}
54           size={50}
55           type="text"
56           value=""
57         />
58       </div>
59       <div
60         className="modal-field"
61       >
62         <label
63           htmlFor="view-edit-description"
64         >
65           description
66         </label>
67         <textarea
68           id="view-edit-description"
69           name="description"
70           onChange={[Function]}
71           value=""
72         />
73       </div>
74       <div
75         className="modal-field"
76       >
77         <label
78           htmlFor="view-edit-key"
79         >
80           key
81         </label>
82         <input
83           autoComplete="off"
84           id="view-edit-key"
85           maxLength={256}
86           name="key"
87           onChange={[Function]}
88           size={256}
89           type="text"
90           value=""
91         />
92         <p
93           className="modal-field-description"
94         >
95           onboarding.create_application.key.description
96         </p>
97       </div>
98       <div
99         className="modal-field"
100       >
101         <label>
102           visibility
103         </label>
104         <div
105           className="little-spacer-top"
106         >
107           <Radio
108             checked={true}
109             className="big-spacer-right visibility-public"
110             key="public"
111             onCheck={[Function]}
112             value="public"
113           >
114             visibility.public
115           </Radio>
116           <Radio
117             checked={false}
118             className="big-spacer-right visibility-private"
119             key="private"
120             onCheck={[Function]}
121             value="private"
122           >
123             visibility.private
124           </Radio>
125         </div>
126       </div>
127     </div>
128     <div
129       className="modal-foot"
130     >
131       <DeferredSpinner
132         className="spacer-right"
133         loading={false}
134       />
135       <SubmitButton
136         disabled={true}
137       >
138         create
139       </SubmitButton>
140       <ResetButtonLink
141         className="js-modal-close"
142         id="view-edit-cancel"
143         onClick={[Function]}
144       >
145         cancel
146       </ResetButtonLink>
147     </div>
148   </form>
149 </Modal>
150 `;