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