Skip to content

Commit

Permalink
Update visual snapshots
Browse files Browse the repository at this point in the history
  • Loading branch information
tujoworker committed Oct 12, 2022
1 parent 5949322 commit d1faa7b
Show file tree
Hide file tree
Showing 13 changed files with 3 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ render(<Component />)
)

export const UploadCustomText = () => (
<ComponentBox data-visual-test="upload-custom-text">
<ComponentBox>
{
/* jsx */ `
<Upload
Expand Down
3 changes: 2 additions & 1 deletion packages/dnb-eufemia/src/components/upload/Upload.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,8 @@ const Upload = (localProps: UploadProps & SpacingProps & LocaleProps) => {
</P>

<Dl
top="medium" // small xx-small is still not supported officially
top="medium" // "small xx-small" (20px) is still not officially supported
bottom={0}
direction="horizontal"
className="dnb-upload__condition-list"
>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,4 @@ describe('Upload screenshot', () => {
})
expect(screenshot).toMatchImageSnapshot()
})

it('have to match the custom text', async () => {
const screenshot = await testPageScreenshot({
selector: '[data-visual-test="upload-custom-text"]',
})
expect(screenshot).toMatchImageSnapshot()
})
})
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit d1faa7b

Please sign in to comment.