]> source.dussan.org Git - sonarqube.git/blob
d45b19528093474bea7196d372ab4a08847a3cef
[sonarqube.git] /
1 // Jest Snapshot v1, https://goo.gl/fbAQLP
2
3 exports[`expands more options 1`] = `
4 <div
5   className="text-center"
6 >
7   <a
8     className="small text-muted js-more-options"
9     href="#"
10     onClick={[Function]}
11   >
12     login.more_options
13   </a>
14 </div>
15 `;
16
17 exports[`expands more options 2`] = `
18 <form
19   className="login-form"
20   onSubmit={[Function]}
21 >
22   <div
23     className="big-spacer-bottom"
24   >
25     <label
26       className="login-label"
27       htmlFor="login"
28     >
29       login
30     </label>
31     <input
32       autoFocus={true}
33       className="login-input"
34       id="login"
35       maxLength={255}
36       name="login"
37       onChange={[Function]}
38       placeholder="login"
39       required={true}
40       type="text"
41       value=""
42     />
43   </div>
44   <div
45     className="big-spacer-bottom"
46   >
47     <label
48       className="login-label"
49       htmlFor="password"
50     >
51       password
52     </label>
53     <input
54       className="login-input"
55       id="password"
56       name="password"
57       onChange={[Function]}
58       placeholder="password"
59       required={true}
60       type="password"
61       value=""
62     />
63   </div>
64   <div>
65     <div
66       className="text-right overflow-hidden"
67     >
68       <DeferredSpinner
69         className="spacer-right"
70         loading={false}
71       />
72       <SubmitButton
73         disabled={false}
74       >
75         sessions.log_in
76       </SubmitButton>
77       <a
78         className="spacer-left"
79         href="/"
80       >
81         cancel
82       </a>
83     </div>
84   </div>
85 </form>
86 `;
87
88 exports[`logs in with simple credentials 1`] = `
89 <form
90   className="login-form"
91   onSubmit={[Function]}
92 >
93   <div
94     className="big-spacer-bottom"
95   >
96     <label
97       className="login-label"
98       htmlFor="login"
99     >
100       login
101     </label>
102     <input
103       autoFocus={true}
104       className="login-input"
105       id="login"
106       maxLength={255}
107       name="login"
108       onChange={[Function]}
109       placeholder="login"
110       required={true}
111       type="text"
112       value=""
113     />
114   </div>
115   <div
116     className="big-spacer-bottom"
117   >
118     <label
119       className="login-label"
120       htmlFor="password"
121     >
122       password
123     </label>
124     <input
125       className="login-input"
126       id="password"
127       name="password"
128       onChange={[Function]}
129       placeholder="password"
130       required={true}
131       type="password"
132       value=""
133     />
134   </div>
135   <div>
136     <div
137       className="text-right overflow-hidden"
138     >
139       <DeferredSpinner
140         className="spacer-right"
141         loading={false}
142       />
143       <SubmitButton
144         disabled={false}
145       >
146         sessions.log_in
147       </SubmitButton>
148       <a
149         className="spacer-left"
150         href="/"
151       >
152         cancel
153       </a>
154     </div>
155   </div>
156 </form>
157 `;
158
159 exports[`should display a spinner and disabled button while loading 1`] = `
160 <form
161   className="login-form"
162   onSubmit={[Function]}
163 >
164   <div
165     className="big-spacer-bottom"
166   >
167     <label
168       className="login-label"
169       htmlFor="login"
170     >
171       login
172     </label>
173     <input
174       autoFocus={true}
175       className="login-input"
176       id="login"
177       maxLength={255}
178       name="login"
179       onChange={[Function]}
180       placeholder="login"
181       required={true}
182       type="text"
183       value="admin"
184     />
185   </div>
186   <div
187     className="big-spacer-bottom"
188   >
189     <label
190       className="login-label"
191       htmlFor="password"
192     >
193       password
194     </label>
195     <input
196       className="login-input"
197       id="password"
198       name="password"
199       onChange={[Function]}
200       placeholder="password"
201       required={true}
202       type="password"
203       value="admin"
204     />
205   </div>
206   <div>
207     <div
208       className="text-right overflow-hidden"
209     >
210       <DeferredSpinner
211         className="spacer-right"
212         loading={true}
213       />
214       <SubmitButton
215         disabled={true}
216       >
217         sessions.log_in
218       </SubmitButton>
219       <a
220         className="spacer-left"
221         href="/"
222       >
223         cancel
224       </a>
225     </div>
226   </div>
227 </form>
228 `;