diff --git a/packages/dnb-eufemia/src/components/icon/__tests__/Icon.screenshot.test.js b/packages/dnb-eufemia/src/components/icon/__tests__/Icon.screenshot.test.js index 33e0f2d810a..dca850ed0e9 100644 --- a/packages/dnb-eufemia/src/components/icon/__tests__/Icon.screenshot.test.js +++ b/packages/dnb-eufemia/src/components/icon/__tests__/Icon.screenshot.test.js @@ -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() + }) }) diff --git a/packages/dnb-eufemia/src/components/icon/__tests__/__snapshots__/icon-screenshot-test-js-icon-screenshot-have-to-match-all-primary-icons-with-color-1-e94bf.snap.png b/packages/dnb-eufemia/src/components/icon/__tests__/__snapshots__/icon-screenshot-test-js-icon-screenshot-have-to-match-all-primary-icons-with-color-1-e94bf.snap.png new file mode 100644 index 00000000000..a6a7e6f8ee4 Binary files /dev/null and b/packages/dnb-eufemia/src/components/icon/__tests__/__snapshots__/icon-screenshot-test-js-icon-screenshot-have-to-match-all-primary-icons-with-color-1-e94bf.snap.png differ diff --git a/packages/dnb-eufemia/src/components/icon/__tests__/__snapshots__/icon-screenshot-test-js-icon-screenshot-have-to-match-all-secondary-icons-with-color-1-04e27.snap.png b/packages/dnb-eufemia/src/components/icon/__tests__/__snapshots__/icon-screenshot-test-js-icon-screenshot-have-to-match-all-secondary-icons-with-color-1-04e27.snap.png new file mode 100644 index 00000000000..74858e61a57 Binary files /dev/null and b/packages/dnb-eufemia/src/components/icon/__tests__/__snapshots__/icon-screenshot-test-js-icon-screenshot-have-to-match-all-secondary-icons-with-color-1-04e27.snap.png differ