]> source.dussan.org Git - sonarqube.git/blob
120f08f447fd8fb2b56db099db9f4003943cbaad
[sonarqube.git] /
1 // Jest Snapshot v1, https://goo.gl/fbAQLP
2
3 exports[`renders correctly 1`] = `
4 <form
5   onSubmit={[Function]}
6 >
7   <MandatoryFieldsExplanation
8     className="form-field"
9   />
10   <div
11     className="form-field"
12   >
13     <label
14       htmlFor="old_password"
15     >
16       my_profile.password.old
17       <MandatoryFieldMarker />
18     </label>
19     <input
20       autoComplete="off"
21       id="old_password"
22       name="old_password"
23       required={true}
24       type="password"
25     />
26   </div>
27   <div
28     className="form-field"
29   >
30     <label
31       htmlFor="password"
32     >
33       my_profile.password.new
34       <MandatoryFieldMarker />
35     </label>
36     <input
37       autoComplete="off"
38       id="password"
39       name="password"
40       required={true}
41       type="password"
42     />
43   </div>
44   <div
45     className="form-field"
46   >
47     <label
48       htmlFor="password_confirmation"
49     >
50       my_profile.password.confirm
51       <MandatoryFieldMarker />
52     </label>
53     <input
54       autoComplete="off"
55       id="password_confirmation"
56       name="password_confirmation"
57       required={true}
58       type="password"
59     />
60   </div>
61   <div
62     className="form-field"
63   >
64     <SubmitButton
65       id="change-password"
66     >
67       update_verb
68     </SubmitButton>
69   </div>
70 </form>
71 `;
72
73 exports[`should not change password if new password is same as old 1`] = `
74 <Alert
75   key="user.new_password_same_as_old"
76   variant="error"
77 >
78   user.new_password_same_as_old
79 </Alert>
80 `;
81
82 exports[`should not change password if old password is incorrect 1`] = `
83 <Alert
84   key="user.old_password_incorrect"
85   variant="error"
86 >
87   user.old_password_incorrect
88 </Alert>
89 `;