diff --git a/apps/vue-storybook/.percy.yml b/apps/vue-storybook/.percy.yml index bc1b122d..163a32fd 100644 --- a/apps/vue-storybook/.percy.yml +++ b/apps/vue-storybook/.percy.yml @@ -8,6 +8,9 @@ snapshot: disableShadowDOM: false enableJavascript: true enableLayout: true +discovery: + concurrency: 15 + retry: true storybook: # args: {} # globals: {} @@ -52,7 +55,7 @@ storybook: 'Components/Blocks/BlockLinkCarousel: Two Items', 'Components/Blocks/BlockLinkCarousel: Multiple Carousels', 'Components/Heroes/Small: Video', - 'Snapshot found: Components/Heroes/Small: HeroMedium (compact)', + 'Components/Heroes/Small: HeroMedium (compact)', 'Components/WWW/Homepage/HomepageCarousel: Carousel with shuffled items', 'Components/WWW/Homepage/HomepageCarousel: Carousel with few slides', 'Components/WWW/Homepage/HomepageCarousel/HomepageCarouselItem: Single Item', diff --git a/apps/vue-storybook/package.json b/apps/vue-storybook/package.json index 696950e6..9f6ae172 100644 --- a/apps/vue-storybook/package.json +++ b/apps/vue-storybook/package.json @@ -19,7 +19,8 @@ "prepare:fontcss": "cp ./node_modules/@explorer-1/common/src/scss/_fonts.scss ./public/css/font-face.css", "storybook": "storybook dev -c .storybook -p 6006 --ci", "build": "storybook build -c .storybook -o storybook_compiled NODE_ENV='production'", - "percy": "percy storybook ./storybook_compiled", + "percy": "percy storybook ./storybook_compiled --verbose", + "percy:debug": "percy storybook ./storybook_compiled --debug --shard-count=2 --shard-index=1", "percy:dry-run": "percy storybook ./storybook_compiled --dry-run", "lint:app": "eslint './.storybook/**/*.@(js|ts)'", "lint:app:fix": "eslint './.storybook/**/*.@(js|ts)' --fix", @@ -27,9 +28,9 @@ "lint:fix": "eslint './../../packages/vue/src/**/*.stories.@(js|ts|mdx)' --fix && pnpm lint:app:fix", "init-msw": "msw init public/", "start": "http-server storybook_compiled -p 6006 -c-1 -s", - "test": "test-storybook --stories-json --maxWorkers=4", + "test": "test-storybook --stories-json --maxWorkers=4 --skipTags=\"skip-test\"", "test:cross-browser": "test-storybook --stories-json --verbose --maxWorkers=4 --browsers chromium webkit firefox", - "test:ci": "test-storybook --stories-json --maxWorkers=4", + "test:ci": "test-storybook --stories-json --maxWorkers=4 --skipTags=\"skip-test\"", "update:storybook": "npx storybook@latest upgrade --package-manager pnpm" }, "dependencies": { @@ -49,8 +50,8 @@ "@explorer-1/html": "workspace:*", "@explorer-1/prettier-config": "workspace:*", "@explorer-1/tsconfig": "workspace:*", - "@percy/cli": "^1.28.6", - "@percy/storybook": "^6.0.0", + "@percy/cli": "^1.28.7", + "@percy/storybook": "^6.0.1", "@rushstack/eslint-patch": "^1.2.0", "@storybook/addon-a11y": "^8.2.6", "@storybook/addon-essentials": "^8.2.6", diff --git a/apps/vue-storybook/vite.config.ts b/apps/vue-storybook/vite.config.ts index d040132f..05f8da8f 100644 --- a/apps/vue-storybook/vite.config.ts +++ b/apps/vue-storybook/vite.config.ts @@ -22,5 +22,9 @@ export default defineConfig({ watch: { usePolling: true } + }, + build: { + // storybook-only + modulePreload: false } }) diff --git a/packages/vue/src/components/BaseTag/BaseTag.vue b/packages/vue/src/components/BaseTag/BaseTag.vue index eeec4515..60314f50 100644 --- a/packages/vue/src/components/BaseTag/BaseTag.vue +++ b/packages/vue/src/components/BaseTag/BaseTag.vue @@ -10,8 +10,8 @@ const variantMap: Attributes = { const sizeMap: Attributes = { sm: 'text-xs uppercase border-t-2 py-1 px-2.5', - md: 'text-base capitalize border-t py-2 px-3', - lg: 'text-lg capitalize border-t py-2 px-3' + md: 'text-base capitalize border-t py-1 px-3', + lg: 'text-lg capitalize border-t py-1 px-3' } interface BaseTagProps { diff --git a/packages/vue/src/components/BlockCard/BlockCard.vue b/packages/vue/src/components/BlockCard/BlockCard.vue index 9a747dac..d5f39384 100644 --- a/packages/vue/src/components/BlockCard/BlockCard.vue +++ b/packages/vue/src/components/BlockCard/BlockCard.vue @@ -1,6 +1,6 @@