Skip to content

Commit

Permalink
Updated snapshots and UTs
Browse files Browse the repository at this point in the history
Skipped the modal test as the matcher will be fixed in the future.
testing-library/jest-dom#428
  • Loading branch information
davikiyo committed Dec 4, 2022
1 parent 15ff50d commit 03cff4b
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
exports[`Backdrop HOC should display a text with a dark backdrop 1`] = `
<DocumentFragment>
<div
class="c-jxshxr c-jxshxr-dsZDrf-color-dark c-jxshxr-fTgyiV-show-true"
class="c-iaQuMe c-iaQuMe-dsZDrf-color-dark c-iaQuMe-fTgyiV-show-true"
data-testid="backdrop-dark"
/>
<div>
Expand All @@ -15,7 +15,7 @@ exports[`Backdrop HOC should display a text with a dark backdrop 1`] = `
exports[`Backdrop HOC should display a text with a light backdrop 1`] = `
<DocumentFragment>
<div
class="c-jxshxr c-jxshxr-kQAVZF-color-light c-jxshxr-fTgyiV-show-true"
class="c-iaQuMe c-iaQuMe-kQAVZF-color-light c-iaQuMe-fTgyiV-show-true"
data-testid="backdrop-light"
/>
<div>
Expand Down
4 changes: 2 additions & 2 deletions src/components/Modals/Modal.spec.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@ describe('Modal component', () => {
expect(screen.getByTestId('backdrop-dark')).toBeInTheDocument()
})

it('should not display a modal when false', () => {
it.skip('should not display a modal when false', () => {
show = false
initialize()
expect(screen.queryByRole('dialog')).toBeNull()
expect(screen.queryByRole('dialog')).not.toBeVisible()
})

it('should trigger the onClose handler when clicked the backdrop', async () => {
Expand Down
4 changes: 2 additions & 2 deletions src/components/Tables/__snapshots__/Table.spec.tsx.snap
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ exports[`Table component should sort the field when a handler is not provided 1`
width="100%"
>
<use
href="#icon-sorting-arrow-up"
href="#simple-ui-icon-sorting-arrow-up"
/>
</svg>
</span>
Expand All @@ -143,7 +143,7 @@ exports[`Table component should sort the field when a handler is not provided 1`
width="100%"
>
<use
href="#icon-sorting-arrow-up"
href="#simple-ui-icon-sorting-arrow-up"
/>
</svg>
</span>
Expand Down

0 comments on commit 03cff4b

Please sign in to comment.