-
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.
feat: now we have an official anchor active state
- Loading branch information
1 parent
6a58154
commit 6de23ea
Showing
4 changed files
with
20 additions
and
3 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
17 changes: 17 additions & 0 deletions
17
packages/dnb-ui-lib/src/style/elements/__tests__/Anchor.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,17 @@ | ||
/** | ||
* Screenshot Test | ||
* This file will not run on "test:staged" because we dont require any related files | ||
*/ | ||
|
||
import { testPageScreenshot } from '../../../core/jest/jestSetupScreenshots' | ||
|
||
describe('Anchor screenshot', () => { | ||
const url = '/uilib/elements/anchor?fullscreen' | ||
it('have to match the default choice of anchor styles', async () => { | ||
const screenshot = await testPageScreenshot({ | ||
url, | ||
selector: '[data-dnb-test="anchor"]' | ||
}) | ||
expect(screenshot).toMatchImageSnapshot() | ||
}) | ||
}) |
Binary file added
BIN
+9.6 KB
...r-screenshot-have-to-match-the-default-choice-of-anchor-styles-1-6d82c.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