Skip to content

Commit

Permalink
fix: add mantine carousel package to dependencies (#540)
Browse files Browse the repository at this point in the history
* fix: add mantine carousel package

* Add chromatic delay to playwright tests

---------

Co-authored-by: Michael Puehringer <[email protected]>
  • Loading branch information
oltionchampari and puehringer authored Sep 27, 2024
1 parent 66b28de commit 3bb902b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@
"@fortawesome/free-regular-svg-icons": "^6.6.0",
"@fortawesome/free-solid-svg-icons": "^6.6.0",
"@fortawesome/react-fontawesome": "^0.2.2",
"@mantine/carousel": "~7.12.2",
"@mantine/code-highlight": "~7.12.2",
"@mantine/core": "~7.12.2",
"@mantine/dates": "~7.12.2",
Expand Down
5 changes: 4 additions & 1 deletion playwright.config.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
import { defineConfig, devices } from '@playwright/test';
import { ChromaticConfig } from '@chromatic-com/playwright';

/**
* See https://playwright.dev/docs/test-configuration.
*/
export default defineConfig({
export default defineConfig<ChromaticConfig>({
testDir: './playwright',
fullyParallel: true,
/* Fail the build on CI if you accidentally left test.only in the source code. */
Expand All @@ -21,6 +22,8 @@ export default defineConfig({
screenshot: 'only-on-failure',
/* Capture video */
video: 'on-first-retry',
/* Chromatic: add delay to screenshot taking for more consistent results: https://www.chromatic.com/docs/playwright/configure/ */
delay: 300,
},
// increased as some tests are slow in CI (e.g. co-expression)
expect: { timeout: 30000 },
Expand Down

0 comments on commit 3bb902b

Please sign in to comment.