@cappa/plugin-storybook 0.2.1 → 0.2.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,20 @@
1
1
  # @cappa/plugin-storybook
2
2
 
3
+ ## 0.2.3
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [4068bca]
8
+ - @cappa/core@0.2.3
9
+
10
+ ## 0.2.2
11
+
12
+ ### Patch Changes
13
+
14
+ - 6526418: fix: actual screenshot error
15
+ - Updated dependencies [6526418]
16
+ - @cappa/core@0.2.2
17
+
3
18
  ## 0.2.1
4
19
 
5
20
  ### Patch Changes
package/dist/index.js CHANGED
@@ -300,12 +300,6 @@ var cappaPluginStorybook = (options) => {
300
300
  );
301
301
  const toLocatorMask = (mask) => mask?.map((selector) => page.locator(selector));
302
302
  const filename = buildFilename(story);
303
- const expectedExists = screenshotTool.filesystem.hasExpectedFile(filename);
304
- if (!expectedExists) {
305
- logger.info(
306
- `Expected image not found for story ${story.title} - ${story.name}, taking screenshot`
307
- );
308
- }
309
303
  const variantsWithUrls = variantParameters.map(
310
304
  (variant) => {
311
305
  const variantFilename = variant.filename || screenshotTool.getVariantFilename(filename, {
package/dist/index.mjs CHANGED
@@ -270,12 +270,6 @@ var cappaPluginStorybook = (options) => {
270
270
  );
271
271
  const toLocatorMask = (mask) => mask?.map((selector) => page.locator(selector));
272
272
  const filename = buildFilename(story);
273
- const expectedExists = screenshotTool.filesystem.hasExpectedFile(filename);
274
- if (!expectedExists) {
275
- logger.info(
276
- `Expected image not found for story ${story.title} - ${story.name}, taking screenshot`
277
- );
278
- }
279
273
  const variantsWithUrls = variantParameters.map(
280
274
  (variant) => {
281
275
  const variantFilename = variant.filename || screenshotTool.getVariantFilename(filename, {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cappa/plugin-storybook",
3
- "version": "0.2.1",
3
+ "version": "0.2.3",
4
4
  "description": "Storybook plugin for Cappa - takes screenshots of Storybook stories",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -31,7 +31,7 @@
31
31
  "@swc/core": "^1.13.5",
32
32
  "chalk": "^5.6.2",
33
33
  "storybook": "^9.1.12",
34
- "@cappa/core": "0.2.1",
34
+ "@cappa/core": "0.2.3",
35
35
  "@cappa/logger": "0.0.4"
36
36
  },
37
37
  "devDependencies": {
@@ -262,13 +262,6 @@ export const cappaPluginStorybook: Plugin<StorybookPluginOptions> = (
262
262
  mask?.map((selector) => page.locator(selector));
263
263
 
264
264
  const filename = buildFilename(story);
265
- const expectedExists =
266
- screenshotTool.filesystem.hasExpectedFile(filename);
267
- if (!expectedExists) {
268
- logger.info(
269
- `Expected image not found for story ${story.title} - ${story.name}, taking screenshot`,
270
- );
271
- }
272
265
 
273
266
  // Convert variants to the new format with URLs
274
267
  const variantsWithUrls: ScreenshotVariantWithUrl[] =