Skip to content

Commit

Permalink
test: fix failed tests
Browse files Browse the repository at this point in the history
  • Loading branch information
miracles1919 committed May 9, 2022
1 parent b21af6e commit 757075a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

exports[`ActionSheet basic usage 1`] = `
<body
class=""
class="adm-overflow-hidden"
>
<div>
<button
Expand All @@ -18,7 +18,7 @@ exports[`ActionSheet basic usage 1`] = `
>
<div
class="adm-mask"
style="background: rgba(0, 0, 0, 0.55); opacity: 0.02608179366075892; display: unset;"
style="background: rgba(0, 0, 0, 0.55); opacity: 0.14425358759137247; display: unset;"
>
<div
aria-label="遮罩层"
Expand All @@ -31,7 +31,7 @@ exports[`ActionSheet basic usage 1`] = `
</div>
<div
class="adm-popup-body adm-popup-body-position-bottom"
style="transform: translate(0, 92.19667326069148%);"
style="transform: translate(0, 68.58969969000708%);"
>
<div
class="adm-action-sheet"
Expand Down
1 change: 1 addition & 0 deletions src/components/action-sheet/tests/action-sheet.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ describe('ActionSheet', () => {

await waitFor(() => {
expect(baseElement.querySelectorAll(`.${classPrefix}`)[0]).toBeVisible()
expect(document.body).toHaveClass('adm-overflow-hidden')
})

expect(baseElement).toMatchSnapshot()
Expand Down

0 comments on commit 757075a

Please sign in to comment.