Skip to content
This repository was archived by the owner on Apr 11, 2025. It is now read-only.

Commit 030ef34

Browse files
committed
✅ test: 修正测试
1 parent f3241bf commit 030ef34

File tree

2 files changed

+0
-617
lines changed

2 files changed

+0
-617
lines changed

packages/user-panel/src/login/__snapshots__/index.test.tsx.snap

Lines changed: 0 additions & 301 deletions
Original file line numberDiff line numberDiff line change
@@ -1,306 +1,5 @@
11
// Jest Snapshot v1, https://goo.gl/fbAQLP
22

3-
exports[`Login 组件 获取验证码 1`] = `
4-
<div>
5-
<div
6-
class="avx-user-panel-login-container"
7-
>
8-
<form
9-
autocomplete="off"
10-
class="ant-form ant-form-vertical"
11-
>
12-
<input
13-
style="display: none;"
14-
type="text"
15-
/>
16-
<div
17-
class="ant-tabs ant-tabs-top ant-tabs-card"
18-
>
19-
<div
20-
class="ant-tabs-nav"
21-
role="tablist"
22-
>
23-
<div
24-
class="ant-tabs-nav-wrap"
25-
>
26-
<div
27-
class="ant-tabs-nav-list"
28-
style="transform: translate(0px, 0px);"
29-
>
30-
<div
31-
class="ant-tabs-tab"
32-
>
33-
<div
34-
aria-controls="rc-tabs-test-panel-account"
35-
aria-selected="false"
36-
class="ant-tabs-tab-btn"
37-
id="rc-tabs-test-tab-account"
38-
role="tab"
39-
tabindex="0"
40-
>
41-
账户密码登录
42-
</div>
43-
</div>
44-
<div
45-
class="ant-tabs-tab ant-tabs-tab-active"
46-
>
47-
<div
48-
aria-controls="rc-tabs-test-panel-mobile"
49-
aria-selected="true"
50-
class="ant-tabs-tab-btn"
51-
id="rc-tabs-test-tab-mobile"
52-
role="tab"
53-
tabindex="0"
54-
>
55-
手机号登录
56-
</div>
57-
</div>
58-
<div
59-
class="ant-tabs-ink-bar ant-tabs-ink-bar-animated"
60-
/>
61-
</div>
62-
</div>
63-
<div
64-
class="ant-tabs-nav-operations ant-tabs-nav-operations-hidden"
65-
>
66-
<button
67-
aria-controls="rc-tabs-test-more-popup"
68-
aria-expanded="false"
69-
aria-haspopup="listbox"
70-
aria-hidden="true"
71-
class="ant-tabs-nav-more"
72-
id="rc-tabs-test-more"
73-
style="visibility: hidden; order: 1;"
74-
tabindex="-1"
75-
type="button"
76-
>
77-
<span
78-
aria-label="ellipsis"
79-
class="anticon anticon-ellipsis"
80-
role="img"
81-
>
82-
<svg
83-
aria-hidden="true"
84-
data-icon="ellipsis"
85-
fill="currentColor"
86-
focusable="false"
87-
height="1em"
88-
viewBox="64 64 896 896"
89-
width="1em"
90-
>
91-
<path
92-
d="M176 511a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0z"
93-
/>
94-
</svg>
95-
</span>
96-
</button>
97-
</div>
98-
</div>
99-
<div
100-
class="ant-tabs-content-holder"
101-
>
102-
<div
103-
class="ant-tabs-content ant-tabs-content-top"
104-
>
105-
<div
106-
aria-hidden="true"
107-
aria-labelledby="rc-tabs-test-tab-account"
108-
class="ant-tabs-tabpane"
109-
id="rc-tabs-test-panel-account"
110-
role="tabpanel"
111-
style="display: none;"
112-
tabindex="-1"
113-
/>
114-
<div
115-
aria-hidden="false"
116-
aria-labelledby="rc-tabs-test-tab-mobile"
117-
class="ant-tabs-tabpane ant-tabs-tabpane-active"
118-
id="rc-tabs-test-panel-mobile"
119-
role="tabpanel"
120-
style=""
121-
tabindex="0"
122-
/>
123-
</div>
124-
</div>
125-
</div>
126-
<div
127-
class="ant-row ant-form-item ant-form-item-is-validating"
128-
>
129-
<div
130-
class="ant-col ant-form-item-control"
131-
>
132-
<div
133-
class="ant-form-item-control-input"
134-
>
135-
<div
136-
class="ant-form-item-control-input-content"
137-
>
138-
<span
139-
class="ant-input-affix-wrapper ant-input-affix-wrapper-lg"
140-
>
141-
<span
142-
class="ant-input-prefix"
143-
>
144-
<span
145-
aria-label="mobile"
146-
class="anticon anticon-mobile avx-user-panel-login-prefixIcon"
147-
role="img"
148-
>
149-
<svg
150-
aria-hidden="true"
151-
data-icon="mobile"
152-
fill="currentColor"
153-
focusable="false"
154-
height="1em"
155-
viewBox="64 64 896 896"
156-
width="1em"
157-
>
158-
<path
159-
d="M744 62H280c-35.3 0-64 28.7-64 64v768c0 35.3 28.7 64 64 64h464c35.3 0 64-28.7 64-64V126c0-35.3-28.7-64-64-64zm-8 824H288V134h448v752zM472 784a40 40 0 1080 0 40 40 0 10-80 0z"
160-
/>
161-
</svg>
162-
</span>
163-
</span>
164-
<input
165-
class="ant-input ant-input-lg"
166-
id="mobile"
167-
placeholder="请输入手机号"
168-
type="text"
169-
value=""
170-
/>
171-
<span
172-
class="ant-input-suffix"
173-
>
174-
<span
175-
aria-label="close-circle"
176-
class="anticon anticon-close-circle ant-input-clear-icon-hidden ant-input-clear-icon"
177-
role="button"
178-
tabindex="-1"
179-
>
180-
<svg
181-
aria-hidden="true"
182-
data-icon="close-circle"
183-
fill="currentColor"
184-
focusable="false"
185-
height="1em"
186-
viewBox="64 64 896 896"
187-
width="1em"
188-
>
189-
<path
190-
d="M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm165.4 618.2l-66-.3L512 563.4l-99.3 118.4-66.1.3c-4.4 0-8-3.5-8-8 0-1.9.7-3.7 1.9-5.2l130.1-155L340.5 359a8.32 8.32 0 01-1.9-5.2c0-4.4 3.6-8 8-8l66.1.3L512 464.6l99.3-118.4 66-.3c4.4 0 8 3.5 8 8 0 1.9-.7 3.7-1.9 5.2L553.5 514l130 155c1.2 1.5 1.9 3.3 1.9 5.2 0 4.4-3.6 8-8 8z"
191-
/>
192-
</svg>
193-
</span>
194-
</span>
195-
</span>
196-
</div>
197-
</div>
198-
</div>
199-
</div>
200-
<div
201-
class="ant-row ant-form-item"
202-
>
203-
<div
204-
class="ant-col ant-form-item-control"
205-
>
206-
<div
207-
class="ant-form-item-control-input"
208-
>
209-
<div
210-
class="ant-form-item-control-input-content"
211-
>
212-
<div
213-
style="display: flex; align-items: center;"
214-
>
215-
<span
216-
class="ant-input-affix-wrapper ant-input-affix-wrapper-lg"
217-
style="flex: 1; transition: width .3s; margin-right: 8px;"
218-
>
219-
<span
220-
class="ant-input-prefix"
221-
>
222-
<span
223-
aria-label="mail"
224-
class="anticon anticon-mail avx-user-panel-login-prefixIcon"
225-
role="img"
226-
>
227-
<svg
228-
aria-hidden="true"
229-
data-icon="mail"
230-
fill="currentColor"
231-
focusable="false"
232-
height="1em"
233-
viewBox="64 64 896 896"
234-
width="1em"
235-
>
236-
<path
237-
d="M928 160H96c-17.7 0-32 14.3-32 32v640c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V192c0-17.7-14.3-32-32-32zm-40 110.8V792H136V270.8l-27.6-21.5 39.3-50.5 42.8 33.3h643.1l42.8-33.3 39.3 50.5-27.7 21.5zM833.6 232L512 482 190.4 232l-42.8-33.3-39.3 50.5 27.6 21.5 341.6 265.6a55.99 55.99 0 0068.7 0L888 270.8l27.6-21.5-39.3-50.5-42.7 33.2z"
238-
/>
239-
</svg>
240-
</span>
241-
</span>
242-
<input
243-
class="ant-input ant-input-lg"
244-
id="captcha"
245-
placeholder="请输入验证码"
246-
type="text"
247-
value=""
248-
/>
249-
</span>
250-
<button
251-
ant-click-animating-without-extra-node="false"
252-
class="ant-btn ant-btn-lg"
253-
style="display: block;"
254-
type="button"
255-
>
256-
<span>
257-
获取验证码
258-
</span>
259-
</button>
260-
</div>
261-
</div>
262-
</div>
263-
</div>
264-
</div>
265-
<div
266-
style="margin-bottom: 24px;"
267-
>
268-
<label
269-
class="ant-checkbox-wrapper ant-checkbox-wrapper-checked"
270-
>
271-
<span
272-
class="ant-checkbox ant-checkbox-checked"
273-
>
274-
<input
275-
checked=""
276-
class="ant-checkbox-input"
277-
id="autoLogin"
278-
type="checkbox"
279-
value=""
280-
/>
281-
<span
282-
class="ant-checkbox-inner"
283-
/>
284-
</span>
285-
<span>
286-
自动登录
287-
</span>
288-
</label>
289-
</div>
290-
<button
291-
class="ant-btn ant-btn-primary ant-btn-lg"
292-
style="width: 100%;"
293-
type="button"
294-
>
295-
<span>
296-
登 录
297-
</span>
298-
</button>
299-
</form>
300-
</div>
301-
</div>
302-
`;
303-
3043
exports[`Login 组件 默认状态 1`] = `
3054
<div>
3065
<div

0 commit comments

Comments
 (0)