Skip to content

Commit

Permalink
test: fix snapshot test
Browse files Browse the repository at this point in the history
  • Loading branch information
chenshuai2144 committed Jan 5, 2022
1 parent 9f755ee commit 90d6982
Show file tree
Hide file tree
Showing 10 changed files with 242 additions and 84 deletions.
12 changes: 9 additions & 3 deletions tests/__snapshots__/doc.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -237,10 +237,11 @@ exports[`docs demos 📸 renders ./docs/demos/customization-value-type.tsx corre
</div>
<div
class="ant-space ant-space-horizontal ant-space-align-center"
style="flex-wrap: wrap; margin-bottom: -8px;"
>
<div
class="ant-space-item"
style="margin-right: 8px;"
style="margin-right: 8px; padding-bottom: 8px;"
>
<button
class="ant-btn ant-btn-primary"
Expand All @@ -253,6 +254,7 @@ exports[`docs demos 📸 renders ./docs/demos/customization-value-type.tsx corre
</div>
<div
class="ant-space-item"
style="padding-bottom: 8px;"
>
<button
class="ant-btn"
Expand Down Expand Up @@ -427,10 +429,11 @@ exports[`docs demos 📸 renders ./docs/demos/customization-value-type.tsx corre
>
<div
class="ant-space ant-space-horizontal ant-space-align-center"
style="flex-wrap: wrap; margin-bottom: -8px;"
>
<div
class="ant-space-item"
style="margin-right: 8px;"
style="margin-right: 8px; padding-bottom: 8px;"
>
<button
class="ant-btn"
Expand All @@ -443,6 +446,7 @@ exports[`docs demos 📸 renders ./docs/demos/customization-value-type.tsx corre
</div>
<div
class="ant-space-item"
style="padding-bottom: 8px;"
>
<button
class="ant-btn ant-btn-primary"
Expand Down Expand Up @@ -899,10 +903,11 @@ exports[`docs demos 📸 renders ./docs/demos/valueType.tsx correctly 1`] = `
</div>
<div
class="ant-space ant-space-horizontal ant-space-align-center"
style="flex-wrap: wrap; margin-bottom: -8px;"
>
<div
class="ant-space-item"
style="margin-right: 8px;"
style="margin-right: 8px; padding-bottom: 8px;"
>
<button
class="ant-btn ant-btn-primary"
Expand All @@ -915,6 +920,7 @@ exports[`docs demos 📸 renders ./docs/demos/valueType.tsx correctly 1`] = `
</div>
<div
class="ant-space-item"
style="padding-bottom: 8px;"
>
<button
class="ant-btn"
Expand Down
12 changes: 9 additions & 3 deletions tests/form/__snapshots__/base.test.tsx.snap
Original file line number Diff line number Diff line change
Expand Up @@ -94,10 +94,11 @@ exports[`ProForm 📦 submitter props support resetButtonProps 1`] = `
/>
<div
class="ant-space ant-space-horizontal ant-space-align-center"
style="flex-wrap: wrap; margin-bottom: -8px;"
>
<div
class="ant-space-item"
style="margin-right: 8px;"
style="margin-right: 8px; padding-bottom: 8px;"
>
<button
class="ant-btn test_button"
Expand All @@ -110,6 +111,7 @@ exports[`ProForm 📦 submitter props support resetButtonProps 1`] = `
</div>
<div
class="ant-space-item"
style="padding-bottom: 8px;"
>
<button
class="ant-btn ant-btn-primary"
Expand All @@ -135,10 +137,11 @@ exports[`ProForm 📦 submitter props support submitButtonProps 1`] = `
/>
<div
class="ant-space ant-space-horizontal ant-space-align-center"
style="flex-wrap: wrap; margin-bottom: -8px;"
>
<div
class="ant-space-item"
style="margin-right: 8px;"
style="margin-right: 8px; padding-bottom: 8px;"
>
<button
class="ant-btn"
Expand All @@ -151,6 +154,7 @@ exports[`ProForm 📦 submitter props support submitButtonProps 1`] = `
</div>
<div
class="ant-space-item"
style="padding-bottom: 8px;"
>
<button
class="ant-btn ant-btn-primary test_button"
Expand Down Expand Up @@ -256,10 +260,11 @@ exports[`ProForm 📦 validateFieldsReturnFormatValue 1`] = `
</div>
<div
class="ant-space ant-space-horizontal ant-space-align-center"
style="flex-wrap: wrap; margin-bottom: -8px;"
>
<div
class="ant-space-item"
style="margin-right: 8px;"
style="margin-right: 8px; padding-bottom: 8px;"
>
<button
class="ant-btn ant-btn-primary"
Expand All @@ -272,6 +277,7 @@ exports[`ProForm 📦 validateFieldsReturnFormatValue 1`] = `
</div>
<div
class="ant-space-item"
style="padding-bottom: 8px;"
>
<button
class="ant-btn"
Expand Down
Loading

0 comments on commit 90d6982

Please sign in to comment.