-
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: make tables styles ux design compliant + add screenshot test
- Loading branch information
1 parent
abc6cbc
commit 67ce50d
Showing
4 changed files
with
76 additions
and
4 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
19 changes: 19 additions & 0 deletions
19
packages/dnb-ui-lib/src/style/elements/__tests__/Table.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,19 @@ | ||
/** | ||
* Screenshot Test | ||
* This file will not run on "test:staged" because we dont require any related files | ||
*/ | ||
|
||
import { | ||
testPageScreenshot, | ||
setupPageScreenshot | ||
} from '../../../core/jest/jestSetupScreenshots' | ||
|
||
describe('Table screenshot', () => { | ||
setupPageScreenshot({ url: '/uilib/elements/tables' }) | ||
it('have to match the default choice of table styles', async () => { | ||
const screenshot = await testPageScreenshot({ | ||
selector: '[data-dnb-test="table"]' | ||
}) | ||
expect(screenshot).toMatchImageSnapshot() | ||
}) | ||
}) |
Binary file added
BIN
+16.7 KB
...le-screenshot-have-to-match-the-default-choice-of-table-styles-1-b0b7d.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