]> source.dussan.org Git - sonarqube.git/blob
680f7a1d7fdba444065f228ecad1a0abd327847b
[sonarqube.git] /
1 // Jest Snapshot v1, https://goo.gl/fbAQLP
2
3 exports[`should render correctly 1`] = `
4 <Modal
5   contentLabel="my_profile.password.title"
6   onRequestClose={[MockFunction]}
7   size="small"
8 >
9   <form
10     autoComplete="off"
11     id="user-password-form"
12     onSubmit={[Function]}
13   >
14     <header
15       className="modal-head"
16     >
17       <h2>
18         my_profile.password.title
19       </h2>
20     </header>
21     <div
22       className="modal-body"
23     >
24       <MandatoryFieldsExplanation
25         className="modal-field"
26       />
27       <div
28         className="modal-field"
29       >
30         <label
31           htmlFor="old-user-password"
32         >
33           my_profile.password.old
34           <MandatoryFieldMarker />
35         </label>
36         <input
37           className="hidden"
38           name="old-password-fake"
39           type="password"
40         />
41         <input
42           id="old-user-password"
43           name="old-password"
44           onChange={[Function]}
45           required={true}
46           type="password"
47           value=""
48         />
49       </div>
50       <div
51         className="modal-field"
52       >
53         <label
54           htmlFor="user-password"
55         >
56           my_profile.password.new
57           <MandatoryFieldMarker />
58         </label>
59         <input
60           className="hidden"
61           name="password-fake"
62           type="password"
63         />
64         <input
65           id="user-password"
66           name="password"
67           onChange={[Function]}
68           required={true}
69           type="password"
70           value=""
71         />
72       </div>
73       <div
74         className="modal-field"
75       >
76         <label
77           htmlFor="confirm-user-password"
78         >
79           my_profile.password.confirm
80           <MandatoryFieldMarker />
81         </label>
82         <input
83           className="hidden"
84           name="confirm-password-fake"
85           type="password"
86         />
87         <input
88           id="confirm-user-password"
89           name="confirm-password"
90           onChange={[Function]}
91           required={true}
92           type="password"
93           value=""
94         />
95       </div>
96     </div>
97     <footer
98       className="modal-foot"
99     >
100       <SubmitButton
101         disabled={true}
102       >
103         change_verb
104       </SubmitButton>
105       <ResetButtonLink
106         onClick={[MockFunction]}
107       >
108         cancel
109       </ResetButtonLink>
110     </footer>
111   </form>
112 </Modal>
113 `;