Skip to content

Commit

Permalink
chore(Icons): add colored icons visual test (#1580)
Browse files Browse the repository at this point in the history
  • Loading branch information
tujoworker authored Sep 23, 2022
1 parent f0779c2 commit 8688b96
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -102,4 +102,30 @@ describe('Icon screenshot', () => {
})
expect(screenshot).toMatchImageSnapshot()
})

it('have to match all primary icons with color', async () => {
const screenshot = await testPageScreenshot({
style: {
display: 'inline-flex',
'flex-wrap': 'wrap',
width: '30rem',
color: 'tomato',
},
selector: '[data-visual-test="icon-all-primary"]',
})
expect(screenshot).toMatchImageSnapshot()
})

it('have to match all secondary icons with color', async () => {
const screenshot = await testPageScreenshot({
style: {
display: 'inline-flex',
'flex-wrap': 'wrap',
width: '30rem',
color: 'tomato',
},
selector: '[data-visual-test="icon-all-secondary"]',
})
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.

0 comments on commit 8688b96

Please sign in to comment.