-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: center icons in #button component
- Loading branch information
1 parent
301bf1d
commit 4682edd
Showing
11 changed files
with
49 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
28 changes: 28 additions & 0 deletions
28
packages/dnb-ui-lib/src/components/button/__tests__/Button.screenshot.test.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
/** | ||
* Screenshot Test | ||
* This file will not run on "test:staged" because we dont require any related files | ||
*/ | ||
|
||
import { | ||
setupPageScreenshot, | ||
testPageScreenshot | ||
} from '../../../core/jest/jestSetup' | ||
|
||
describe('Button screenshot', () => { | ||
setupPageScreenshot() | ||
it('have to match the "dnb-button--primary" screenshot snapshot', async () => { | ||
const screenshot = await testPageScreenshot({ | ||
url: '/uilib/components/button?fullscreen', | ||
selector: '.example-box .dnb-button.dnb-button--primary:nth-child(1)' | ||
}) | ||
expect(screenshot).toMatchImageSnapshot() | ||
}) | ||
it('have to match the "dnb-button--secondary" screenshot snapshot', async () => { | ||
const screenshot = await testPageScreenshot({ | ||
url: '/uilib/components/button?fullscreen', | ||
selector: | ||
'.example-box .dnb-button.dnb-button--secondary:nth-child(1)' | ||
}) | ||
expect(screenshot).toMatchImageSnapshot() | ||
}) | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file added
BIN
+4.58 KB
...nshot-have-to-match-the-dnb-button-primary-screenshot-snapshot-1-fe381.snap.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+5.61 KB
...hot-have-to-match-the-dnb-button-secondary-screenshot-snapshot-1-30d33.snap.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters