Browse Source

chore(core): Fix broken e2e test

Michael Bromley 2 years ago
parent
commit
93e945379b

+ 2 - 2
packages/core/e2e/product-channel.e2e-spec.ts

@@ -226,7 +226,7 @@ describe('ChannelAware Products and ProductVariants', () => {
                         channelId: 'T_1',
                     },
                 });
-            }, 'Products cannot be removed from the default Channel'),
+            }, 'Items cannot be removed from the default Channel'),
         );
 
         it('removes Product from Channel', async () => {
@@ -348,7 +348,7 @@ describe('ChannelAware Products and ProductVariants', () => {
                         channelId: 'T_1',
                     },
                 });
-            }, 'Products cannot be removed from the default Channel'),
+            }, 'Items cannot be removed from the default Channel'),
         );
 
         it('removes ProductVariant but not Product from Channel', async () => {

+ 1 - 3
packages/core/src/i18n/messages/en.json

@@ -11,7 +11,6 @@
     "cannot-transition-refund-from-to": "Cannot transition Refund from \"{ fromState }\" to \"{ toState }\"",
     "cannot-transition-fulfillment-from-to": "Cannot transition Fulfillment from \"{ fromState }\" to \"{ toState }\"",
     "channel-not-found": "No Channel with the token \"{ token }\" could be found",
-    "collections-cannot-be-removed-from-default-channel": "Collections cannot be removed from the default Channel",
     "collection-id-or-slug-must-be-provided": "Either the Collection id or slug must be provided",
     "collection-id-slug-mismatch": "The provided id and slug refer to different Collections",
     "conditions-required-for-action": "The PromotionAction '{ action }' requires the following conditions: { conditions }",
@@ -21,7 +20,7 @@
     "default-channel-not-found": "Default channel not found",
     "entity-has-no-translation-in-language": "Translatable entity '{ entityName }' has not been translated into the requested language ({ languageCode })",
     "entity-with-id-not-found": "No { entityName } with the id '{ id }' could be found",
-    "facets-cannot-be-removed-from-default-channel": "Facets cannot be removed from the default Channel",
+    "items-cannot-be-removed-from-default-channel": "Items cannot be removed from the default Channel",
     "facetfilterinput-invalid-input": "A FacetValueFilterInput object may not specify the 'and' and 'or' fields simultaneously",
     "field-invalid-datetime-range-max": "The custom field '{ name }' value [{ value }] is greater than the maximum [{ max }]",
     "field-invalid-datetime-range-min": "The custom field '{ name }' value [{ value }] is less than the minimum [{ min }]",
@@ -42,7 +41,6 @@
     "order-does-not-contain-line-with-id": "This order does not contain an OrderLine with the id { id }",
     "pending-identifier-missing": "Could not find the pending email address to update",
     "permission-invalid": "The permission \"{ permission }\" may not be assigned",
-    "products-cannot-be-removed-from-default-channel": "Products cannot be removed from the default Channel",
     "product-id-or-slug-must-be-provided": "Either the Product id or slug must be provided",
     "product-id-slug-mismatch": "The provided id and slug refer to different Products",
     "product-option-group-already-assigned": "The ProductOptionGroup \"{ groupCode }\" is already assigned to the Product \"{ productName }\"",