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

Commit 17967fd

Browse files
committed
test: fix test
1 parent 76dcac1 commit 17967fd

2 files changed

Lines changed: 99 additions & 92 deletions

File tree

tests/__tests__/__snapshots__/index.test.tsx.snap

Lines changed: 54 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -72,14 +72,15 @@ exports[`BasicLayout 🥩 base use 1`] = `
7272
/>
7373
</div>
7474
</header>
75-
<main
76-
class="ant-pro-basicLayout-content ant-pro-basicLayout-has-header ant-layout-content"
77-
style="min-height:auto"
78-
>
79-
<div
80-
class="ant-pro-basicLayout-children-content-wrap"
81-
/>
82-
</main>
75+
<div>
76+
<main
77+
class="ant-pro-basicLayout-content ant-pro-basicLayout-has-header ant-layout-content"
78+
>
79+
<div
80+
class="ant-pro-basicLayout-children-content-wrap"
81+
/>
82+
</main>
83+
</div>
8384
</section>
8485
</section>
8586
</div>
@@ -157,14 +158,16 @@ exports[`BasicLayout 🥩 contentStyle should change dom 1`] = `
157158
/>
158159
</div>
159160
</header>
160-
<main
161-
class="ant-pro-basicLayout-content ant-pro-basicLayout-has-header ant-layout-content"
162-
style="padding:56px;min-height:auto"
163-
>
164-
<div
165-
class="ant-pro-basicLayout-children-content-wrap"
166-
/>
167-
</main>
161+
<div>
162+
<main
163+
class="ant-pro-basicLayout-content ant-pro-basicLayout-has-header ant-layout-content"
164+
style="padding:56px"
165+
>
166+
<div
167+
class="ant-pro-basicLayout-children-content-wrap"
168+
/>
169+
</main>
170+
</div>
168171
</section>
169172
</section>
170173
</div>
@@ -242,39 +245,40 @@ exports[`BasicLayout 🥩 support loading 1`] = `
242245
/>
243246
</div>
244247
</header>
245-
<main
246-
class="ant-pro-basicLayout-content ant-pro-basicLayout-has-header ant-layout-content"
247-
style="min-height:auto"
248-
>
249-
<div
250-
class="ant-pro-basicLayout-children-content-wrap"
248+
<div>
249+
<main
250+
class="ant-pro-basicLayout-content ant-pro-basicLayout-has-header ant-layout-content"
251251
>
252252
<div
253-
style="padding-top:100px;text-align:center"
253+
class="ant-pro-basicLayout-children-content-wrap"
254254
>
255255
<div
256-
class="ant-spin ant-spin-lg ant-spin-spinning"
256+
style="padding-top:100px;text-align:center"
257257
>
258-
<span
259-
class="ant-spin-dot ant-spin-dot-spin"
258+
<div
259+
class="ant-spin ant-spin-lg ant-spin-spinning"
260260
>
261-
<i
262-
class="ant-spin-dot-item"
263-
/>
264-
<i
265-
class="ant-spin-dot-item"
266-
/>
267-
<i
268-
class="ant-spin-dot-item"
269-
/>
270-
<i
271-
class="ant-spin-dot-item"
272-
/>
273-
</span>
261+
<span
262+
class="ant-spin-dot ant-spin-dot-spin"
263+
>
264+
<i
265+
class="ant-spin-dot-item"
266+
/>
267+
<i
268+
class="ant-spin-dot-item"
269+
/>
270+
<i
271+
class="ant-spin-dot-item"
272+
/>
273+
<i
274+
class="ant-spin-dot-item"
275+
/>
276+
</span>
277+
</div>
274278
</div>
275279
</div>
276-
</div>
277-
</main>
280+
</main>
281+
</div>
278282
</section>
279283
</section>
280284
</div>
@@ -352,14 +356,15 @@ exports[`BasicLayout 🥩 support menuDateRender 1`] = `
352356
/>
353357
</div>
354358
</header>
355-
<main
356-
class="ant-pro-basicLayout-content ant-pro-basicLayout-has-header ant-layout-content"
357-
style="min-height:auto"
358-
>
359-
<div
360-
class="ant-pro-basicLayout-children-content-wrap"
361-
/>
362-
</main>
359+
<div>
360+
<main
361+
class="ant-pro-basicLayout-content ant-pro-basicLayout-has-header ant-layout-content"
362+
>
363+
<div
364+
class="ant-pro-basicLayout-children-content-wrap"
365+
/>
366+
</main>
367+
</div>
363368
</section>
364369
</section>
365370
</div>

tests/__tests__/__snapshots__/pageHeaderWarp.test.tsx.snap

Lines changed: 45 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -72,40 +72,41 @@ exports[`BasicLayout base use 1`] = `
7272
/>
7373
</div>
7474
</header>
75-
<main
76-
class="ant-pro-basicLayout-content ant-pro-basicLayout-has-header ant-layout-content"
77-
style="min-height:auto"
78-
>
79-
<div
80-
class="ant-pro-basicLayout-children-content-wrap"
75+
<div>
76+
<main
77+
class="ant-pro-basicLayout-content ant-pro-basicLayout-has-header ant-layout-content"
8178
>
8279
<div
83-
class="ant-pro-page-header-wrap"
80+
class="ant-pro-basicLayout-children-content-wrap"
8481
>
8582
<div
86-
class="ant-pro-page-header-wrap-page-header-warp"
83+
class="ant-pro-page-header-wrap"
8784
>
8885
<div
89-
class="ant-pro-grid-content"
86+
class="ant-pro-page-header-wrap-page-header-warp"
9087
>
9188
<div
92-
class="ant-page-header ant-page-header-ghost"
89+
class="ant-pro-grid-content"
9390
>
9491
<div
95-
class="ant-page-header-heading"
92+
class="ant-page-header ant-page-header-ghost"
9693
>
97-
<span
98-
class="ant-page-header-heading-title"
94+
<div
95+
class="ant-page-header-heading"
9996
>
100-
welcome
101-
</span>
97+
<span
98+
class="ant-page-header-heading-title"
99+
>
100+
welcome
101+
</span>
102+
</div>
102103
</div>
103104
</div>
104105
</div>
105106
</div>
106107
</div>
107-
</div>
108-
</main>
108+
</main>
109+
</div>
109110
</section>
110111
</section>
111112
</div>
@@ -183,50 +184,51 @@ exports[`BasicLayout content is text 1`] = `
183184
/>
184185
</div>
185186
</header>
186-
<main
187-
class="ant-pro-basicLayout-content ant-pro-basicLayout-has-header ant-layout-content"
188-
style="min-height:auto"
189-
>
190-
<div
191-
class="ant-pro-basicLayout-children-content-wrap"
187+
<div>
188+
<main
189+
class="ant-pro-basicLayout-content ant-pro-basicLayout-has-header ant-layout-content"
192190
>
193191
<div
194-
class="ant-pro-page-header-wrap"
192+
class="ant-pro-basicLayout-children-content-wrap"
195193
>
196194
<div
197-
class="ant-pro-page-header-wrap-page-header-warp"
195+
class="ant-pro-page-header-wrap"
198196
>
199197
<div
200-
class="ant-pro-grid-content"
198+
class="ant-pro-page-header-wrap-page-header-warp"
201199
>
202200
<div
203-
class="ant-page-header ant-page-header-ghost"
201+
class="ant-pro-grid-content"
204202
>
205203
<div
206-
class="ant-page-header-heading"
204+
class="ant-page-header ant-page-header-ghost"
207205
>
208-
<span
209-
class="ant-page-header-heading-title"
206+
<div
207+
class="ant-page-header-heading"
210208
>
211-
welcome
212-
</span>
213-
</div>
214-
<div
215-
class="ant-page-header-content"
216-
>
209+
<span
210+
class="ant-page-header-heading-title"
211+
>
212+
welcome
213+
</span>
214+
</div>
217215
<div
218-
class="ant-pro-page-header-wrap-detail"
216+
class="ant-page-header-content"
219217
>
220218
<div
221-
class="ant-pro-page-header-wrap-main"
219+
class="ant-pro-page-header-wrap-detail"
222220
>
223221
<div
224-
class="ant-pro-page-header-wrap-row"
222+
class="ant-pro-page-header-wrap-main"
225223
>
226224
<div
227-
class="ant-pro-page-header-wrap-content"
225+
class="ant-pro-page-header-wrap-row"
228226
>
229-
just so so
227+
<div
228+
class="ant-pro-page-header-wrap-content"
229+
>
230+
just so so
231+
</div>
230232
</div>
231233
</div>
232234
</div>
@@ -236,8 +238,8 @@ exports[`BasicLayout content is text 1`] = `
236238
</div>
237239
</div>
238240
</div>
239-
</div>
240-
</main>
241+
</main>
242+
</div>
241243
</section>
242244
</section>
243245
</div>

0 commit comments

Comments
 (0)