From 1d115d755af028674c66618c5e3a2ae0220be425 Mon Sep 17 00:00:00 2001 From: Stephanie Sprinkle Date: Thu, 31 Oct 2024 15:00:24 -0400 Subject: [PATCH] fix(product-types/b2c-lifestyle): furniture and decor color attribute is now searchable (#702) --- .changeset/tidy-ravens-sort.md | 5 +++++ .../sample-data-b2c-lifestyle/furniture-and-decor.spec.ts | 4 ++-- .../presets/sample-data-b2c-lifestyle/furniture-and-decor.ts | 2 +- 3 files changed, 8 insertions(+), 3 deletions(-) create mode 100644 .changeset/tidy-ravens-sort.md diff --git a/.changeset/tidy-ravens-sort.md b/.changeset/tidy-ravens-sort.md new file mode 100644 index 000000000..61f97eba9 --- /dev/null +++ b/.changeset/tidy-ravens-sort.md @@ -0,0 +1,5 @@ +--- +'@commercetools-test-data/product-type': patch +--- + +B2C Lifestyle Presets - Updated Furniture and Decor product type attribute `color` to be searchable. diff --git a/models/product-type/src/product-type/product-type-draft/presets/sample-data-b2c-lifestyle/furniture-and-decor.spec.ts b/models/product-type/src/product-type/product-type-draft/presets/sample-data-b2c-lifestyle/furniture-and-decor.spec.ts index c30e75cb7..6e182309b 100644 --- a/models/product-type/src/product-type/product-type-draft/presets/sample-data-b2c-lifestyle/furniture-and-decor.spec.ts +++ b/models/product-type/src/product-type/product-type-draft/presets/sample-data-b2c-lifestyle/furniture-and-decor.spec.ts @@ -41,7 +41,7 @@ describe(`with furnitureAndDecor preset`, () => { "inputHint": "SingleLine", "inputTip": undefined, "isRequired": false, - "isSearchable": false, + "isSearchable": true, "label": { "de": undefined, "de-DE": "Farbe", @@ -197,7 +197,7 @@ describe(`with furnitureAndDecor preset`, () => { "inputHint": "SingleLine", "inputTip": undefined, "isRequired": false, - "isSearchable": false, + "isSearchable": true, "label": [ { "locale": "en-GB", diff --git a/models/product-type/src/product-type/product-type-draft/presets/sample-data-b2c-lifestyle/furniture-and-decor.ts b/models/product-type/src/product-type/product-type-draft/presets/sample-data-b2c-lifestyle/furniture-and-decor.ts index 80a0732fd..5f6f437c8 100644 --- a/models/product-type/src/product-type/product-type-draft/presets/sample-data-b2c-lifestyle/furniture-and-decor.ts +++ b/models/product-type/src/product-type/product-type-draft/presets/sample-data-b2c-lifestyle/furniture-and-decor.ts @@ -59,7 +59,7 @@ const furnitureAndDecor = (): TProductTypeDraftBuilder => ) .isRequired(false) .attributeConstraint(attributeConstraints.None) - .isSearchable(false) + .isSearchable(true) .inputHint(inputHints.SingleLine), AttributeDefinitionDraft.presets