Skip to content

Commit

Permalink
Update snapshots additional snapshots
Browse files Browse the repository at this point in the history
  • Loading branch information
tujoworker committed Dec 21, 2022
1 parent 617404e commit 598ceae
Show file tree
Hide file tree
Showing 41 changed files with 12 additions and 17 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ describe('Autocomplete screenshot', () => {
'[data-visual-test="autocomplete-suffix"] .dnb-autocomplete .dnb-input',
simulate: 'click',
style: {
height: '35rem',
height: '31rem',
},
})
expect(screenshot).toMatchImageSnapshot()
Expand Down
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.
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.
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.
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.
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.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,9 @@ import {
setupPageScreenshot,
} from '../../../core/jest/jestSetupScreenshots'

const style = { width: '20rem' }

describe('GlobalStatus screenshot', () => {
const style = { width: '20rem' }
setupPageScreenshot({ url: '/uilib/components/global-status/demos' })

it('have to match the default state with custom content', async () => {
Expand All @@ -20,6 +21,15 @@ describe('GlobalStatus screenshot', () => {
expect(screenshot).toMatchImageSnapshot()
})

it('have to match the info state and custom content', async () => {
const screenshot = await testPageScreenshot({
style,
selector:
'[data-visual-test="global-status-info"] .dnb-global-status',
})
expect(screenshot).toMatchImageSnapshot()
})

it('have to match the close button in focus state', async () => {
const screenshot = await testPageScreenshot({
style,
Expand All @@ -41,19 +51,4 @@ describe('GlobalStatus screenshot', () => {
})
expect(screenshot).toMatchImageSnapshot()
})

it('have to match the info state and custom content', async () => {
const screenshot = await testPageScreenshot({
style,
selector:
'[data-visual-test="global-status-info"] .dnb-global-status',
})
expect(screenshot).toMatchImageSnapshot()
})
// it.skip('have to match custom content', async () => {
// const screenshot = await testPageScreenshot({
// selector: '[data-visual-test="global-status-custom"]'
// })
// expect(screenshot).toMatchImageSnapshot()
// })
})
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.
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.
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.
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.
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.
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.
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 598ceae

Please sign in to comment.