@shopware-ag/acceptance-test-suite 10.0.1 → 10.2.0

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/dist/index.mjs CHANGED
@@ -385,16 +385,16 @@ const test$c = test$e.extend({
385
385
  ]
386
386
  });
387
387
 
388
- var __defProp$Q = Object.defineProperty;
389
- var __defNormalProp$Q = (obj, key, value) => key in obj ? __defProp$Q(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
390
- var __publicField$Q = (obj, key, value) => {
391
- __defNormalProp$Q(obj, typeof key !== "symbol" ? key + "" : key, value);
388
+ var __defProp$U = Object.defineProperty;
389
+ var __defNormalProp$U = (obj, key, value) => key in obj ? __defProp$U(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
390
+ var __publicField$U = (obj, key, value) => {
391
+ __defNormalProp$U(obj, typeof key !== "symbol" ? key + "" : key, value);
392
392
  return value;
393
393
  };
394
394
  const _AdminApiContext = class _AdminApiContext {
395
395
  constructor(context, options) {
396
- __publicField$Q(this, "context");
397
- __publicField$Q(this, "options");
396
+ __publicField$U(this, "context");
397
+ __publicField$U(this, "options");
398
398
  this.context = context;
399
399
  this.options = options;
400
400
  }
@@ -486,7 +486,7 @@ const _AdminApiContext = class _AdminApiContext {
486
486
  return this.context.head(url, options);
487
487
  }
488
488
  };
489
- __publicField$Q(_AdminApiContext, "defaultOptions", {
489
+ __publicField$U(_AdminApiContext, "defaultOptions", {
490
490
  app_url: process.env["APP_URL"],
491
491
  client_id: process.env["SHOPWARE_ACCESS_KEY_ID"],
492
492
  client_secret: process.env["SHOPWARE_SECRET_ACCESS_KEY"],
@@ -496,16 +496,16 @@ __publicField$Q(_AdminApiContext, "defaultOptions", {
496
496
  });
497
497
  let AdminApiContext = _AdminApiContext;
498
498
 
499
- var __defProp$P = Object.defineProperty;
500
- var __defNormalProp$P = (obj, key, value) => key in obj ? __defProp$P(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
501
- var __publicField$P = (obj, key, value) => {
502
- __defNormalProp$P(obj, typeof key !== "symbol" ? key + "" : key, value);
499
+ var __defProp$T = Object.defineProperty;
500
+ var __defNormalProp$T = (obj, key, value) => key in obj ? __defProp$T(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
501
+ var __publicField$T = (obj, key, value) => {
502
+ __defNormalProp$T(obj, typeof key !== "symbol" ? key + "" : key, value);
503
503
  return value;
504
504
  };
505
505
  const _StoreApiContext = class _StoreApiContext {
506
506
  constructor(context, options) {
507
- __publicField$P(this, "context");
508
- __publicField$P(this, "options");
507
+ __publicField$T(this, "context");
508
+ __publicField$T(this, "options");
509
509
  this.context = context;
510
510
  this.options = options;
511
511
  }
@@ -564,21 +564,21 @@ const _StoreApiContext = class _StoreApiContext {
564
564
  return this.context.head(url, options);
565
565
  }
566
566
  };
567
- __publicField$P(_StoreApiContext, "defaultOptions", {
567
+ __publicField$T(_StoreApiContext, "defaultOptions", {
568
568
  app_url: process.env["APP_URL"],
569
569
  ignoreHTTPSErrors: true
570
570
  });
571
571
  let StoreApiContext = _StoreApiContext;
572
572
 
573
- var __defProp$O = Object.defineProperty;
574
- var __defNormalProp$O = (obj, key, value) => key in obj ? __defProp$O(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
575
- var __publicField$O = (obj, key, value) => {
576
- __defNormalProp$O(obj, typeof key !== "symbol" ? key + "" : key, value);
573
+ var __defProp$S = Object.defineProperty;
574
+ var __defNormalProp$S = (obj, key, value) => key in obj ? __defProp$S(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
575
+ var __publicField$S = (obj, key, value) => {
576
+ __defNormalProp$S(obj, typeof key !== "symbol" ? key + "" : key, value);
577
577
  return value;
578
578
  };
579
579
  class MailpitApiContext {
580
580
  constructor(context) {
581
- __publicField$O(this, "context");
581
+ __publicField$S(this, "context");
582
582
  this.context = context;
583
583
  }
584
584
  /**
@@ -875,17 +875,17 @@ const test$a = test$e.extend({
875
875
  }
876
876
  });
877
877
 
878
- var __defProp$N = Object.defineProperty;
879
- var __defNormalProp$N = (obj, key, value) => key in obj ? __defProp$N(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
880
- var __publicField$N = (obj, key, value) => {
881
- __defNormalProp$N(obj, typeof key !== "symbol" ? key + "" : key, value);
878
+ var __defProp$R = Object.defineProperty;
879
+ var __defNormalProp$R = (obj, key, value) => key in obj ? __defProp$R(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
880
+ var __publicField$R = (obj, key, value) => {
881
+ __defNormalProp$R(obj, typeof key !== "symbol" ? key + "" : key, value);
882
882
  return value;
883
883
  };
884
884
  class Actor {
885
885
  constructor(name, page) {
886
- __publicField$N(this, "page");
887
- __publicField$N(this, "name");
888
- __publicField$N(this, "expects", expect);
886
+ __publicField$R(this, "page");
887
+ __publicField$R(this, "name");
888
+ __publicField$R(this, "expects", expect);
889
889
  this.name = name;
890
890
  this.page = page;
891
891
  }
@@ -934,31 +934,31 @@ function createRandomImage(width = 800, height = 600) {
934
934
  return new Image(width, height, buffer);
935
935
  }
936
936
 
937
- var __defProp$M = Object.defineProperty;
938
- var __defNormalProp$M = (obj, key, value) => key in obj ? __defProp$M(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
939
- var __publicField$M = (obj, key, value) => {
940
- __defNormalProp$M(obj, typeof key !== "symbol" ? key + "" : key, value);
937
+ var __defProp$Q = Object.defineProperty;
938
+ var __defNormalProp$Q = (obj, key, value) => key in obj ? __defProp$Q(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
939
+ var __publicField$Q = (obj, key, value) => {
940
+ __defNormalProp$Q(obj, typeof key !== "symbol" ? key + "" : key, value);
941
941
  return value;
942
942
  };
943
943
  class TestDataService {
944
944
  constructor(AdminApiClient, IdProvider, options) {
945
- __publicField$M(this, "AdminApiClient");
946
- __publicField$M(this, "IdProvider");
947
- __publicField$M(this, "namePrefix", "Test-");
948
- __publicField$M(this, "nameSuffix", "");
949
- __publicField$M(this, "defaultSalesChannel");
950
- __publicField$M(this, "defaultTaxId");
951
- __publicField$M(this, "defaultCurrencyId");
952
- __publicField$M(this, "defaultCategoryId");
953
- __publicField$M(this, "defaultLanguageId");
954
- __publicField$M(this, "defaultCountryId");
955
- __publicField$M(this, "defaultCustomerGroupId");
945
+ __publicField$Q(this, "AdminApiClient");
946
+ __publicField$Q(this, "IdProvider");
947
+ __publicField$Q(this, "namePrefix", "Test-");
948
+ __publicField$Q(this, "nameSuffix", "");
949
+ __publicField$Q(this, "defaultSalesChannel");
950
+ __publicField$Q(this, "defaultTaxId");
951
+ __publicField$Q(this, "defaultCurrencyId");
952
+ __publicField$Q(this, "defaultCategoryId");
953
+ __publicField$Q(this, "defaultLanguageId");
954
+ __publicField$Q(this, "defaultCountryId");
955
+ __publicField$Q(this, "defaultCustomerGroupId");
956
956
  /**
957
957
  * Configures if an automated cleanup of the data should be executed.
958
958
  *
959
959
  * @private
960
960
  */
961
- __publicField$M(this, "shouldCleanUp", true);
961
+ __publicField$Q(this, "shouldCleanUp", true);
962
962
  /**
963
963
  * Configuration of higher priority entities for the cleanup operation.
964
964
  * These entities will be deleted before others.
@@ -966,25 +966,25 @@ class TestDataService {
966
966
  *
967
967
  * @private
968
968
  */
969
- __publicField$M(this, "highPriorityEntities", ["order", "product", "landing_page", "sales_channel_domain", "sales_channel_currency", "sales_channel_country", "customer"]);
969
+ __publicField$Q(this, "highPriorityEntities", ["order", "product", "landing_page", "shipping_method", "sales_channel_domain", "sales_channel_currency", "sales_channel_country", "customer"]);
970
970
  /**
971
971
  * A registry of all created records.
972
972
  *
973
973
  * @private
974
974
  */
975
- __publicField$M(this, "createdRecords", []);
975
+ __publicField$Q(this, "createdRecords", []);
976
976
  /**
977
977
  * A registry of all created sales channel records.
978
978
  *
979
979
  * @private
980
980
  */
981
- __publicField$M(this, "createdSalesChannelRecords", []);
981
+ __publicField$Q(this, "createdSalesChannelRecords", []);
982
982
  /**
983
983
  * Function that generates combinations from n number of arrays
984
984
  * with m number of elements in them.
985
985
  * @param array
986
986
  */
987
- __publicField$M(this, "combineAll", (array) => {
987
+ __publicField$Q(this, "combineAll", (array) => {
988
988
  const result = [];
989
989
  const max = array.length - 1;
990
990
  const helper = (tmpArray, i) => {
@@ -1596,7 +1596,7 @@ class TestDataService {
1596
1596
  }
1597
1597
  /**
1598
1598
  * Creates a new domain for a sales channel.
1599
- *
1599
+ *
1600
1600
  * @param overrides - Specific data overrides that will be applied to the sales channel domain data struct.
1601
1601
  */
1602
1602
  async createSalesChannelDomain(overrides = {}) {
@@ -2926,16 +2926,16 @@ const test$8 = test$e.extend({
2926
2926
  }
2927
2927
  });
2928
2928
 
2929
- var __defProp$L = Object.defineProperty;
2930
- var __defNormalProp$L = (obj, key, value) => key in obj ? __defProp$L(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
2931
- var __publicField$L = (obj, key, value) => {
2932
- __defNormalProp$L(obj, typeof key !== "symbol" ? key + "" : key, value);
2929
+ var __defProp$P = Object.defineProperty;
2930
+ var __defNormalProp$P = (obj, key, value) => key in obj ? __defProp$P(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
2931
+ var __publicField$P = (obj, key, value) => {
2932
+ __defNormalProp$P(obj, typeof key !== "symbol" ? key + "" : key, value);
2933
2933
  return value;
2934
2934
  };
2935
2935
  class IdProvider {
2936
2936
  constructor(workerIndex, seed) {
2937
- __publicField$L(this, "workerIndex");
2938
- __publicField$L(this, "seed");
2937
+ __publicField$P(this, "workerIndex");
2938
+ __publicField$P(this, "seed");
2939
2939
  this.workerIndex = workerIndex;
2940
2940
  this.seed = seed;
2941
2941
  }
@@ -3009,34 +3009,34 @@ const test$7 = test$e.extend({
3009
3009
  ]
3010
3010
  });
3011
3011
 
3012
- var __defProp$K = Object.defineProperty;
3013
- var __defNormalProp$K = (obj, key, value) => key in obj ? __defProp$K(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
3014
- var __publicField$K = (obj, key, value) => {
3015
- __defNormalProp$K(obj, typeof key !== "symbol" ? key + "" : key, value);
3012
+ var __defProp$O = Object.defineProperty;
3013
+ var __defNormalProp$O = (obj, key, value) => key in obj ? __defProp$O(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
3014
+ var __publicField$O = (obj, key, value) => {
3015
+ __defNormalProp$O(obj, typeof key !== "symbol" ? key + "" : key, value);
3016
3016
  return value;
3017
3017
  };
3018
3018
  class Home {
3019
3019
  constructor(page) {
3020
3020
  this.page = page;
3021
- __publicField$K(this, "productImages");
3022
- __publicField$K(this, "productListItems");
3023
- __publicField$K(this, "languagesDropdown");
3024
- __publicField$K(this, "languagesMenuOptions");
3025
- __publicField$K(this, "currenciesDropdown");
3026
- __publicField$K(this, "currenciesMenuOptions");
3027
- __publicField$K(this, "consentOnlyTechnicallyRequiredButton");
3028
- __publicField$K(this, "consentConfigureButton");
3029
- __publicField$K(this, "consentAcceptAllCookiesButton");
3030
- __publicField$K(this, "consentCookiePreferences");
3031
- __publicField$K(this, "consentCookiePermissionContent");
3032
- __publicField$K(this, "consentDialog");
3033
- __publicField$K(this, "consentDialogTechnicallyRequiredCheckbox");
3034
- __publicField$K(this, "consentDialogStatisticsCheckbox");
3035
- __publicField$K(this, "consentDialogMarketingdCheckbox");
3036
- __publicField$K(this, "consentDialogAcceptAllCookiesButton");
3037
- __publicField$K(this, "consentDialogSaveButton");
3038
- __publicField$K(this, "consentCookieBannerContainer");
3039
- __publicField$K(this, "offcanvasBackdrop");
3021
+ __publicField$O(this, "productImages");
3022
+ __publicField$O(this, "productListItems");
3023
+ __publicField$O(this, "languagesDropdown");
3024
+ __publicField$O(this, "languagesMenuOptions");
3025
+ __publicField$O(this, "currenciesDropdown");
3026
+ __publicField$O(this, "currenciesMenuOptions");
3027
+ __publicField$O(this, "consentOnlyTechnicallyRequiredButton");
3028
+ __publicField$O(this, "consentConfigureButton");
3029
+ __publicField$O(this, "consentAcceptAllCookiesButton");
3030
+ __publicField$O(this, "consentCookiePreferences");
3031
+ __publicField$O(this, "consentCookiePermissionContent");
3032
+ __publicField$O(this, "consentDialog");
3033
+ __publicField$O(this, "consentDialogTechnicallyRequiredCheckbox");
3034
+ __publicField$O(this, "consentDialogStatisticsCheckbox");
3035
+ __publicField$O(this, "consentDialogMarketingdCheckbox");
3036
+ __publicField$O(this, "consentDialogAcceptAllCookiesButton");
3037
+ __publicField$O(this, "consentDialogSaveButton");
3038
+ __publicField$O(this, "consentCookieBannerContainer");
3039
+ __publicField$O(this, "offcanvasBackdrop");
3040
3040
  this.productImages = page.locator(".product-image-link");
3041
3041
  this.productListItems = page.getByRole("listitem");
3042
3042
  this.languagesDropdown = page.locator(".top-bar-language").filter({ has: page.getByRole("button") });
@@ -3085,26 +3085,26 @@ class Home {
3085
3085
  }
3086
3086
  }
3087
3087
 
3088
- var __defProp$J = Object.defineProperty;
3089
- var __defNormalProp$J = (obj, key, value) => key in obj ? __defProp$J(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
3090
- var __publicField$J = (obj, key, value) => {
3091
- __defNormalProp$J(obj, typeof key !== "symbol" ? key + "" : key, value);
3088
+ var __defProp$N = Object.defineProperty;
3089
+ var __defNormalProp$N = (obj, key, value) => key in obj ? __defProp$N(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
3090
+ var __publicField$N = (obj, key, value) => {
3091
+ __defNormalProp$N(obj, typeof key !== "symbol" ? key + "" : key, value);
3092
3092
  return value;
3093
3093
  };
3094
3094
  let ProductDetail$1 = class ProductDetail {
3095
3095
  constructor(page) {
3096
3096
  this.page = page;
3097
- __publicField$J(this, "addToCartButton");
3098
- __publicField$J(this, "quantitySelect");
3099
- __publicField$J(this, "productSingleImage");
3100
- __publicField$J(this, "productSinglePrice");
3101
- __publicField$J(this, "productPriceRangesRow");
3102
- __publicField$J(this, "offCanvasCartTitle");
3103
- __publicField$J(this, "offCanvasCart");
3104
- __publicField$J(this, "offCanvasCartGoToCheckoutButton");
3105
- __publicField$J(this, "offCanvasLineItemImages");
3106
- __publicField$J(this, "offCanvasSummaryTotalPrice");
3107
- __publicField$J(this, "offCanvas");
3097
+ __publicField$N(this, "addToCartButton");
3098
+ __publicField$N(this, "quantitySelect");
3099
+ __publicField$N(this, "productSingleImage");
3100
+ __publicField$N(this, "productSinglePrice");
3101
+ __publicField$N(this, "productPriceRangesRow");
3102
+ __publicField$N(this, "offCanvasCartTitle");
3103
+ __publicField$N(this, "offCanvasCart");
3104
+ __publicField$N(this, "offCanvasCartGoToCheckoutButton");
3105
+ __publicField$N(this, "offCanvasLineItemImages");
3106
+ __publicField$N(this, "offCanvasSummaryTotalPrice");
3107
+ __publicField$N(this, "offCanvas");
3108
3108
  this.addToCartButton = page.getByRole("button", { name: "Add to shopping cart" });
3109
3109
  this.quantitySelect = page.getByLabel("Quantity", { exact: true });
3110
3110
  this.productSingleImage = page.locator(".gallery-slider-single-image");
@@ -3126,18 +3126,18 @@ let ProductDetail$1 = class ProductDetail {
3126
3126
  }
3127
3127
  };
3128
3128
 
3129
- var __defProp$I = Object.defineProperty;
3130
- var __defNormalProp$I = (obj, key, value) => key in obj ? __defProp$I(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
3131
- var __publicField$I = (obj, key, value) => {
3132
- __defNormalProp$I(obj, typeof key !== "symbol" ? key + "" : key, value);
3129
+ var __defProp$M = Object.defineProperty;
3130
+ var __defNormalProp$M = (obj, key, value) => key in obj ? __defProp$M(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
3131
+ var __publicField$M = (obj, key, value) => {
3132
+ __defNormalProp$M(obj, typeof key !== "symbol" ? key + "" : key, value);
3133
3133
  return value;
3134
3134
  };
3135
3135
  class Category {
3136
3136
  constructor(page) {
3137
3137
  this.page = page;
3138
- __publicField$I(this, "sortingSelect");
3139
- __publicField$I(this, "firstProductBuyButton");
3140
- __publicField$I(this, "noProductsFoundAlert");
3138
+ __publicField$M(this, "sortingSelect");
3139
+ __publicField$M(this, "firstProductBuyButton");
3140
+ __publicField$M(this, "noProductsFoundAlert");
3141
3141
  this.sortingSelect = page.getByLabel("Sorting");
3142
3142
  this.firstProductBuyButton = page.getByRole("button", { name: "Add to shopping cart" }).first();
3143
3143
  this.noProductsFoundAlert = page.getByText("No products found.");
@@ -3147,24 +3147,24 @@ class Category {
3147
3147
  }
3148
3148
  }
3149
3149
 
3150
- var __defProp$H = Object.defineProperty;
3151
- var __defNormalProp$H = (obj, key, value) => key in obj ? __defProp$H(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
3152
- var __publicField$H = (obj, key, value) => {
3153
- __defNormalProp$H(obj, typeof key !== "symbol" ? key + "" : key, value);
3150
+ var __defProp$L = Object.defineProperty;
3151
+ var __defNormalProp$L = (obj, key, value) => key in obj ? __defProp$L(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
3152
+ var __publicField$L = (obj, key, value) => {
3153
+ __defNormalProp$L(obj, typeof key !== "symbol" ? key + "" : key, value);
3154
3154
  return value;
3155
3155
  };
3156
3156
  class CheckoutCart {
3157
3157
  constructor(page) {
3158
3158
  this.page = page;
3159
- __publicField$H(this, "headline");
3160
- __publicField$H(this, "goToCheckoutButton");
3161
- __publicField$H(this, "enterPromoInput");
3162
- __publicField$H(this, "grandTotalPrice");
3163
- __publicField$H(this, "emptyCartAlert");
3164
- __publicField$H(this, "stockReachedAlert");
3165
- __publicField$H(this, "cartLineItemImages");
3166
- __publicField$H(this, "unitPriceInfo");
3167
- __publicField$H(this, "cartQuantityNumber");
3159
+ __publicField$L(this, "headline");
3160
+ __publicField$L(this, "goToCheckoutButton");
3161
+ __publicField$L(this, "enterPromoInput");
3162
+ __publicField$L(this, "grandTotalPrice");
3163
+ __publicField$L(this, "emptyCartAlert");
3164
+ __publicField$L(this, "stockReachedAlert");
3165
+ __publicField$L(this, "cartLineItemImages");
3166
+ __publicField$L(this, "unitPriceInfo");
3167
+ __publicField$L(this, "cartQuantityNumber");
3168
3168
  this.headline = page.getByRole("heading", { name: "Shopping cart" });
3169
3169
  this.goToCheckoutButton = page.getByRole("link", { name: "Go to checkout" });
3170
3170
  this.enterPromoInput = page.getByLabel("Promo code");
@@ -3205,25 +3205,25 @@ class CheckoutCart {
3205
3205
  }
3206
3206
  }
3207
3207
 
3208
- var __defProp$G = Object.defineProperty;
3209
- var __defNormalProp$G = (obj, key, value) => key in obj ? __defProp$G(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
3210
- var __publicField$G = (obj, key, value) => {
3211
- __defNormalProp$G(obj, typeof key !== "symbol" ? key + "" : key, value);
3208
+ var __defProp$K = Object.defineProperty;
3209
+ var __defNormalProp$K = (obj, key, value) => key in obj ? __defProp$K(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
3210
+ var __publicField$K = (obj, key, value) => {
3211
+ __defNormalProp$K(obj, typeof key !== "symbol" ? key + "" : key, value);
3212
3212
  return value;
3213
3213
  };
3214
3214
  class OffCanvasCart {
3215
3215
  constructor(page) {
3216
3216
  this.page = page;
3217
- __publicField$G(this, "headline");
3218
- __publicField$G(this, "itemCount");
3219
- __publicField$G(this, "goToCheckoutButton");
3220
- __publicField$G(this, "goToCartButton");
3221
- __publicField$G(this, "continueShoppingButton");
3222
- __publicField$G(this, "enterPromoInput");
3223
- __publicField$G(this, "submitDiscountButton");
3224
- __publicField$G(this, "subTotalPrice");
3225
- __publicField$G(this, "shippingCosts");
3226
- __publicField$G(this, "cartQuantityNumber");
3217
+ __publicField$K(this, "headline");
3218
+ __publicField$K(this, "itemCount");
3219
+ __publicField$K(this, "goToCheckoutButton");
3220
+ __publicField$K(this, "goToCartButton");
3221
+ __publicField$K(this, "continueShoppingButton");
3222
+ __publicField$K(this, "enterPromoInput");
3223
+ __publicField$K(this, "submitDiscountButton");
3224
+ __publicField$K(this, "subTotalPrice");
3225
+ __publicField$K(this, "shippingCosts");
3226
+ __publicField$K(this, "cartQuantityNumber");
3227
3227
  this.headline = page.getByRole("heading", { name: "Shopping cart" });
3228
3228
  this.itemCount = page.locator(".offcanvas-cart-header-count");
3229
3229
  this.goToCheckoutButton = page.getByRole("link", { name: "Go to checkout" });
@@ -3265,36 +3265,36 @@ class OffCanvasCart {
3265
3265
  }
3266
3266
  }
3267
3267
 
3268
- var __defProp$F = Object.defineProperty;
3269
- var __defNormalProp$F = (obj, key, value) => key in obj ? __defProp$F(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
3270
- var __publicField$F = (obj, key, value) => {
3271
- __defNormalProp$F(obj, typeof key !== "symbol" ? key + "" : key, value);
3268
+ var __defProp$J = Object.defineProperty;
3269
+ var __defNormalProp$J = (obj, key, value) => key in obj ? __defProp$J(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
3270
+ var __publicField$J = (obj, key, value) => {
3271
+ __defNormalProp$J(obj, typeof key !== "symbol" ? key + "" : key, value);
3272
3272
  return value;
3273
3273
  };
3274
3274
  class CheckoutConfirm {
3275
3275
  constructor(page) {
3276
3276
  this.page = page;
3277
- __publicField$F(this, "headline");
3278
- __publicField$F(this, "termsAndConditionsCheckbox");
3279
- __publicField$F(this, "immediateAccessToDigitalProductCheckbox");
3280
- __publicField$F(this, "grandTotalPrice");
3281
- __publicField$F(this, "taxPrice");
3282
- __publicField$F(this, "submitOrderButton");
3277
+ __publicField$J(this, "headline");
3278
+ __publicField$J(this, "termsAndConditionsCheckbox");
3279
+ __publicField$J(this, "immediateAccessToDigitalProductCheckbox");
3280
+ __publicField$J(this, "grandTotalPrice");
3281
+ __publicField$J(this, "taxPrice");
3282
+ __publicField$J(this, "submitOrderButton");
3283
3283
  /**
3284
3284
  * Payment options
3285
3285
  */
3286
- __publicField$F(this, "paymentCashOnDelivery");
3287
- __publicField$F(this, "paymentPaidInAdvance");
3288
- __publicField$F(this, "paymentInvoice");
3286
+ __publicField$J(this, "paymentCashOnDelivery");
3287
+ __publicField$J(this, "paymentPaidInAdvance");
3288
+ __publicField$J(this, "paymentInvoice");
3289
3289
  /**
3290
3290
  * Shipping options
3291
3291
  */
3292
- __publicField$F(this, "shippingStandard");
3293
- __publicField$F(this, "shippingExpress");
3292
+ __publicField$J(this, "shippingStandard");
3293
+ __publicField$J(this, "shippingExpress");
3294
3294
  /**
3295
3295
  * Product details
3296
3296
  */
3297
- __publicField$F(this, "cartLineItemImages");
3297
+ __publicField$J(this, "cartLineItemImages");
3298
3298
  this.headline = page.getByRole("heading", { name: "Complete order" });
3299
3299
  this.termsAndConditionsCheckbox = page.getByLabel("I have read and accepted the general terms and conditions.");
3300
3300
  this.immediateAccessToDigitalProductCheckbox = page.getByLabel("I want immediate access to the digital content and I acknowledge that thereby I waive my right to cancel.");
@@ -3313,21 +3313,21 @@ class CheckoutConfirm {
3313
3313
  }
3314
3314
  }
3315
3315
 
3316
- var __defProp$E = Object.defineProperty;
3317
- var __defNormalProp$E = (obj, key, value) => key in obj ? __defProp$E(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
3318
- var __publicField$E = (obj, key, value) => {
3319
- __defNormalProp$E(obj, typeof key !== "symbol" ? key + "" : key, value);
3316
+ var __defProp$I = Object.defineProperty;
3317
+ var __defNormalProp$I = (obj, key, value) => key in obj ? __defProp$I(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
3318
+ var __publicField$I = (obj, key, value) => {
3319
+ __defNormalProp$I(obj, typeof key !== "symbol" ? key + "" : key, value);
3320
3320
  return value;
3321
3321
  };
3322
3322
  class CheckoutFinish {
3323
3323
  constructor(page) {
3324
3324
  this.page = page;
3325
- __publicField$E(this, "headline");
3326
- __publicField$E(this, "orderNumberText");
3327
- __publicField$E(this, "grandTotalPrice");
3328
- __publicField$E(this, "taxPrice");
3329
- __publicField$E(this, "cartLineItemImages");
3330
- __publicField$E(this, "orderNumberRegex", /Your order number: #(\d+)/);
3325
+ __publicField$I(this, "headline");
3326
+ __publicField$I(this, "orderNumberText");
3327
+ __publicField$I(this, "grandTotalPrice");
3328
+ __publicField$I(this, "taxPrice");
3329
+ __publicField$I(this, "cartLineItemImages");
3330
+ __publicField$I(this, "orderNumberRegex", /Your order number: #(\d+)/);
3331
3331
  this.headline = page.getByRole("heading", { name: "Thank you for your order" });
3332
3332
  this.orderNumberText = page.getByText(this.orderNumberRegex);
3333
3333
  this.grandTotalPrice = page.locator('dt:has-text("Grand total") + dd');
@@ -3356,16 +3356,16 @@ class CheckoutFinish {
3356
3356
  }
3357
3357
  }
3358
3358
 
3359
- var __defProp$D = Object.defineProperty;
3360
- var __defNormalProp$D = (obj, key, value) => key in obj ? __defProp$D(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
3361
- var __publicField$D = (obj, key, value) => {
3362
- __defNormalProp$D(obj, typeof key !== "symbol" ? key + "" : key, value);
3359
+ var __defProp$H = Object.defineProperty;
3360
+ var __defNormalProp$H = (obj, key, value) => key in obj ? __defProp$H(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
3361
+ var __publicField$H = (obj, key, value) => {
3362
+ __defNormalProp$H(obj, typeof key !== "symbol" ? key + "" : key, value);
3363
3363
  return value;
3364
3364
  };
3365
3365
  class CheckoutRegister {
3366
3366
  constructor(page) {
3367
3367
  this.page = page;
3368
- __publicField$D(this, "cartLineItemImages");
3368
+ __publicField$H(this, "cartLineItemImages");
3369
3369
  this.cartLineItemImages = page.locator(".line-item-img-link");
3370
3370
  }
3371
3371
  url() {
@@ -3373,23 +3373,23 @@ class CheckoutRegister {
3373
3373
  }
3374
3374
  }
3375
3375
 
3376
- var __defProp$C = Object.defineProperty;
3377
- var __defNormalProp$C = (obj, key, value) => key in obj ? __defProp$C(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
3378
- var __publicField$C = (obj, key, value) => {
3379
- __defNormalProp$C(obj, typeof key !== "symbol" ? key + "" : key, value);
3376
+ var __defProp$G = Object.defineProperty;
3377
+ var __defNormalProp$G = (obj, key, value) => key in obj ? __defProp$G(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
3378
+ var __publicField$G = (obj, key, value) => {
3379
+ __defNormalProp$G(obj, typeof key !== "symbol" ? key + "" : key, value);
3380
3380
  return value;
3381
3381
  };
3382
3382
  class Account {
3383
3383
  constructor(page) {
3384
3384
  this.page = page;
3385
- __publicField$C(this, "headline");
3386
- __publicField$C(this, "personalDataCardTitle");
3387
- __publicField$C(this, "paymentMethodCardTitle");
3388
- __publicField$C(this, "billingAddressCardTitle");
3389
- __publicField$C(this, "shippingAddressCardTitle");
3390
- __publicField$C(this, "newsletterCheckbox");
3391
- __publicField$C(this, "newsletterRegistrationSuccessMessage");
3392
- __publicField$C(this, "customerGroupRequestMessage");
3385
+ __publicField$G(this, "headline");
3386
+ __publicField$G(this, "personalDataCardTitle");
3387
+ __publicField$G(this, "paymentMethodCardTitle");
3388
+ __publicField$G(this, "billingAddressCardTitle");
3389
+ __publicField$G(this, "shippingAddressCardTitle");
3390
+ __publicField$G(this, "newsletterCheckbox");
3391
+ __publicField$G(this, "newsletterRegistrationSuccessMessage");
3392
+ __publicField$G(this, "customerGroupRequestMessage");
3393
3393
  this.headline = page.getByRole("heading", { name: "Overview" });
3394
3394
  this.personalDataCardTitle = page.getByRole("heading", { name: "Personal data" });
3395
3395
  this.paymentMethodCardTitle = page.getByRole("heading", { name: "Default payment method" });
@@ -3407,40 +3407,42 @@ class Account {
3407
3407
  }
3408
3408
  }
3409
3409
 
3410
- var __defProp$B = Object.defineProperty;
3411
- var __defNormalProp$B = (obj, key, value) => key in obj ? __defProp$B(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
3412
- var __publicField$B = (obj, key, value) => {
3413
- __defNormalProp$B(obj, typeof key !== "symbol" ? key + "" : key, value);
3410
+ var __defProp$F = Object.defineProperty;
3411
+ var __defNormalProp$F = (obj, key, value) => key in obj ? __defProp$F(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
3412
+ var __publicField$F = (obj, key, value) => {
3413
+ __defNormalProp$F(obj, typeof key !== "symbol" ? key + "" : key, value);
3414
3414
  return value;
3415
3415
  };
3416
3416
  class AccountLogin {
3417
3417
  constructor(page) {
3418
3418
  this.page = page;
3419
- __publicField$B(this, "emailInput");
3420
- __publicField$B(this, "passwordInput");
3421
- __publicField$B(this, "loginButton");
3422
- __publicField$B(this, "logoutLink");
3423
- __publicField$B(this, "successAlert");
3419
+ __publicField$F(this, "emailInput");
3420
+ __publicField$F(this, "passwordInput");
3421
+ __publicField$F(this, "forgotPasswordLink");
3422
+ __publicField$F(this, "loginButton");
3423
+ __publicField$F(this, "logoutLink");
3424
+ __publicField$F(this, "successAlert");
3424
3425
  // Inputs for registration
3425
- __publicField$B(this, "personalFormArea");
3426
- __publicField$B(this, "billingAddressFormArea");
3427
- __publicField$B(this, "accountTypeSelect");
3428
- __publicField$B(this, "salutationSelect");
3429
- __publicField$B(this, "firstNameInput");
3430
- __publicField$B(this, "lastNameInput");
3431
- __publicField$B(this, "companyInput");
3432
- __publicField$B(this, "departmentInput");
3433
- __publicField$B(this, "vatRegNoInput");
3434
- __publicField$B(this, "registerEmailInput");
3435
- __publicField$B(this, "registerPasswordInput");
3436
- __publicField$B(this, "streetAddressInput");
3437
- __publicField$B(this, "cityInput");
3438
- __publicField$B(this, "countryInput");
3439
- __publicField$B(this, "postalCodeInput");
3440
- __publicField$B(this, "registerButton");
3426
+ __publicField$F(this, "personalFormArea");
3427
+ __publicField$F(this, "billingAddressFormArea");
3428
+ __publicField$F(this, "accountTypeSelect");
3429
+ __publicField$F(this, "salutationSelect");
3430
+ __publicField$F(this, "firstNameInput");
3431
+ __publicField$F(this, "lastNameInput");
3432
+ __publicField$F(this, "companyInput");
3433
+ __publicField$F(this, "departmentInput");
3434
+ __publicField$F(this, "vatRegNoInput");
3435
+ __publicField$F(this, "registerEmailInput");
3436
+ __publicField$F(this, "registerPasswordInput");
3437
+ __publicField$F(this, "streetAddressInput");
3438
+ __publicField$F(this, "cityInput");
3439
+ __publicField$F(this, "countryInput");
3440
+ __publicField$F(this, "postalCodeInput");
3441
+ __publicField$F(this, "registerButton");
3441
3442
  this.emailInput = page.getByLabel("Your email address");
3442
3443
  this.passwordInput = page.getByLabel("Your password");
3443
3444
  this.loginButton = page.getByRole("button", { name: "Log in" });
3445
+ this.forgotPasswordLink = page.getByRole("link", { name: "I have forgotten my password." });
3444
3446
  this.logoutLink = page.getByRole("link", { name: "Log out" });
3445
3447
  this.personalFormArea = page.locator(".register-personal");
3446
3448
  this.billingAddressFormArea = page.locator(".register-billing");
@@ -3466,29 +3468,62 @@ class AccountLogin {
3466
3468
  }
3467
3469
  }
3468
3470
 
3469
- var __defProp$A = Object.defineProperty;
3470
- var __defNormalProp$A = (obj, key, value) => key in obj ? __defProp$A(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
3471
- var __publicField$A = (obj, key, value) => {
3472
- __defNormalProp$A(obj, typeof key !== "symbol" ? key + "" : key, value);
3471
+ var __defProp$E = Object.defineProperty;
3472
+ var __defNormalProp$E = (obj, key, value) => key in obj ? __defProp$E(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
3473
+ var __publicField$E = (obj, key, value) => {
3474
+ __defNormalProp$E(obj, typeof key !== "symbol" ? key + "" : key, value);
3475
+ return value;
3476
+ };
3477
+ class AccountRecover {
3478
+ constructor(page) {
3479
+ this.page = page;
3480
+ __publicField$E(this, "passwordRecoveryForm");
3481
+ __publicField$E(this, "title");
3482
+ __publicField$E(this, "subtitle");
3483
+ __publicField$E(this, "emailInput");
3484
+ __publicField$E(this, "requestEmailButton");
3485
+ __publicField$E(this, "backButton");
3486
+ __publicField$E(this, "passwordResetEmailSentMessage");
3487
+ this.passwordRecoveryForm = page.locator(".account-recover-password-form");
3488
+ const cardTitle = this.passwordRecoveryForm.locator(".card-title");
3489
+ this.title = cardTitle.getByText("Password recovery");
3490
+ this.subtitle = cardTitle.getByText("We will send you a confirmation email. Click the link in that email in order to change your password.");
3491
+ this.emailInput = this.passwordRecoveryForm.getByLabel("Your email address");
3492
+ this.requestEmailButton = this.passwordRecoveryForm.getByRole("button", { name: "Request email" });
3493
+ this.backButton = this.passwordRecoveryForm.getByRole("link", { name: "Back" });
3494
+ this.passwordResetEmailSentMessage = page.getByText("If the provided email address is registered, a confirmation email including a password reset link has been sent.");
3495
+ }
3496
+ url() {
3497
+ return "account/recover";
3498
+ }
3499
+ }
3500
+
3501
+ var __defProp$D = Object.defineProperty;
3502
+ var __defNormalProp$D = (obj, key, value) => key in obj ? __defProp$D(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
3503
+ var __publicField$D = (obj, key, value) => {
3504
+ __defNormalProp$D(obj, typeof key !== "symbol" ? key + "" : key, value);
3473
3505
  return value;
3474
3506
  };
3475
3507
  class AccountProfile {
3476
3508
  constructor(page) {
3477
3509
  this.page = page;
3478
- __publicField$A(this, "salutationSelect");
3479
- __publicField$A(this, "firstNameInput");
3480
- __publicField$A(this, "lastNameInput");
3481
- __publicField$A(this, "saveProfileButton");
3482
- __publicField$A(this, "changeEmailButton");
3483
- __publicField$A(this, "emailAddressInput");
3484
- __publicField$A(this, "emailAddressConfirmInput");
3485
- __publicField$A(this, "emailConfirmPasswordInput");
3486
- __publicField$A(this, "saveEmailAddressButton");
3487
- __publicField$A(this, "changePasswordButton");
3488
- __publicField$A(this, "newPasswordInput");
3489
- __publicField$A(this, "newPasswordConfirmInput");
3490
- __publicField$A(this, "currentPasswordInput");
3491
- __publicField$A(this, "saveNewPasswordButton");
3510
+ __publicField$D(this, "salutationSelect");
3511
+ __publicField$D(this, "firstNameInput");
3512
+ __publicField$D(this, "lastNameInput");
3513
+ __publicField$D(this, "saveProfileButton");
3514
+ __publicField$D(this, "changeEmailButton");
3515
+ __publicField$D(this, "emailAddressInput");
3516
+ __publicField$D(this, "emailAddressConfirmInput");
3517
+ __publicField$D(this, "emailConfirmPasswordInput");
3518
+ __publicField$D(this, "saveEmailAddressButton");
3519
+ __publicField$D(this, "changePasswordButton");
3520
+ __publicField$D(this, "newPasswordInput");
3521
+ __publicField$D(this, "newPasswordConfirmInput");
3522
+ __publicField$D(this, "currentPasswordInput");
3523
+ __publicField$D(this, "saveNewPasswordButton");
3524
+ __publicField$D(this, "loginDataEmailAddress");
3525
+ __publicField$D(this, "emailUpdateMessage");
3526
+ __publicField$D(this, "passwordUpdateMessage");
3492
3527
  this.salutationSelect = page.getByLabel("Salutation");
3493
3528
  this.firstNameInput = page.getByPlaceholder("Enter first name...");
3494
3529
  this.lastNameInput = page.getByPlaceholder("Enter last name...");
@@ -3503,28 +3538,31 @@ class AccountProfile {
3503
3538
  this.newPasswordConfirmInput = page.getByPlaceholder("Enter your new password once again...");
3504
3539
  this.currentPasswordInput = page.getByPlaceholder("Enter current password...");
3505
3540
  this.saveNewPasswordButton = page.locator("#profilePasswordForm").getByRole("button", { name: "Save changes" });
3541
+ this.loginDataEmailAddress = page.locator(".account-profile-mail");
3542
+ this.emailUpdateMessage = page.getByText("Your email address has been updated.");
3543
+ this.passwordUpdateMessage = page.getByText("Your password has been updated.");
3506
3544
  }
3507
3545
  url() {
3508
3546
  return "account/profile";
3509
3547
  }
3510
3548
  }
3511
3549
 
3512
- var __defProp$z = Object.defineProperty;
3513
- var __defNormalProp$z = (obj, key, value) => key in obj ? __defProp$z(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
3514
- var __publicField$z = (obj, key, value) => {
3515
- __defNormalProp$z(obj, typeof key !== "symbol" ? key + "" : key, value);
3550
+ var __defProp$C = Object.defineProperty;
3551
+ var __defNormalProp$C = (obj, key, value) => key in obj ? __defProp$C(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
3552
+ var __publicField$C = (obj, key, value) => {
3553
+ __defNormalProp$C(obj, typeof key !== "symbol" ? key + "" : key, value);
3516
3554
  return value;
3517
3555
  };
3518
3556
  class AccountOrder {
3519
3557
  constructor(page) {
3520
3558
  this.page = page;
3521
- __publicField$z(this, "cartLineItemImages");
3522
- __publicField$z(this, "orderExpandButton");
3523
- __publicField$z(this, "digitalProductDownloadButton");
3524
- __publicField$z(this, "dialogOrderCancel");
3525
- __publicField$z(this, "dialogOrderCancelButton");
3526
- __publicField$z(this, "dialogBackButton");
3527
- __publicField$z(this, "getViewSubscriptionLink", (orderNumber) => {
3559
+ __publicField$C(this, "cartLineItemImages");
3560
+ __publicField$C(this, "orderExpandButton");
3561
+ __publicField$C(this, "digitalProductDownloadButton");
3562
+ __publicField$C(this, "dialogOrderCancel");
3563
+ __publicField$C(this, "dialogOrderCancelButton");
3564
+ __publicField$C(this, "dialogBackButton");
3565
+ __publicField$C(this, "getViewSubscriptionLink", (orderNumber) => {
3528
3566
  const orderContainer = this.page.locator(".order-item-header", { hasText: `Order Number: ${orderNumber}` });
3529
3567
  return orderContainer.getByText("View Subscription");
3530
3568
  });
@@ -3569,20 +3607,20 @@ class AccountOrder {
3569
3607
  }
3570
3608
  }
3571
3609
 
3572
- var __defProp$y = Object.defineProperty;
3573
- var __defNormalProp$y = (obj, key, value) => key in obj ? __defProp$y(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
3574
- var __publicField$y = (obj, key, value) => {
3575
- __defNormalProp$y(obj, typeof key !== "symbol" ? key + "" : key, value);
3610
+ var __defProp$B = Object.defineProperty;
3611
+ var __defNormalProp$B = (obj, key, value) => key in obj ? __defProp$B(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
3612
+ var __publicField$B = (obj, key, value) => {
3613
+ __defNormalProp$B(obj, typeof key !== "symbol" ? key + "" : key, value);
3576
3614
  return value;
3577
3615
  };
3578
3616
  class AccountAddresses {
3579
3617
  constructor(page) {
3580
3618
  this.page = page;
3581
- __publicField$y(this, "addNewAddressButton");
3582
- __publicField$y(this, "editBillingAddressButton");
3583
- __publicField$y(this, "editShippingAddressButton");
3584
- __publicField$y(this, "useDefaultBillingAddressButton");
3585
- __publicField$y(this, "useDefaultShippingAddressButton");
3619
+ __publicField$B(this, "addNewAddressButton");
3620
+ __publicField$B(this, "editBillingAddressButton");
3621
+ __publicField$B(this, "editShippingAddressButton");
3622
+ __publicField$B(this, "useDefaultBillingAddressButton");
3623
+ __publicField$B(this, "useDefaultShippingAddressButton");
3586
3624
  this.addNewAddressButton = page.getByRole("link", { name: /Add (new )?address/ });
3587
3625
  this.editBillingAddressButton = page.getByRole("link", { name: "Edit address" }).first();
3588
3626
  this.editShippingAddressButton = page.getByRole("link", { name: "Edit address" }).nth(1);
@@ -3594,19 +3632,19 @@ class AccountAddresses {
3594
3632
  }
3595
3633
  }
3596
3634
 
3597
- var __defProp$x = Object.defineProperty;
3598
- var __defNormalProp$x = (obj, key, value) => key in obj ? __defProp$x(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
3599
- var __publicField$x = (obj, key, value) => {
3600
- __defNormalProp$x(obj, typeof key !== "symbol" ? key + "" : key, value);
3635
+ var __defProp$A = Object.defineProperty;
3636
+ var __defNormalProp$A = (obj, key, value) => key in obj ? __defProp$A(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
3637
+ var __publicField$A = (obj, key, value) => {
3638
+ __defNormalProp$A(obj, typeof key !== "symbol" ? key + "" : key, value);
3601
3639
  return value;
3602
3640
  };
3603
3641
  class AccountPayment {
3604
3642
  constructor(page) {
3605
3643
  this.page = page;
3606
- __publicField$x(this, "cashOnDeliveryOption");
3607
- __publicField$x(this, "paidInAdvanceOption");
3608
- __publicField$x(this, "invoiceOption");
3609
- __publicField$x(this, "changeDefaultPaymentButton");
3644
+ __publicField$A(this, "cashOnDeliveryOption");
3645
+ __publicField$A(this, "paidInAdvanceOption");
3646
+ __publicField$A(this, "invoiceOption");
3647
+ __publicField$A(this, "changeDefaultPaymentButton");
3610
3648
  this.cashOnDeliveryOption = page.getByLabel("Cash on delivery");
3611
3649
  this.paidInAdvanceOption = page.getByLabel("Paid in advance");
3612
3650
  this.invoiceOption = page.getByLabel("Invoice");
@@ -3617,17 +3655,17 @@ class AccountPayment {
3617
3655
  }
3618
3656
  }
3619
3657
 
3620
- var __defProp$w = Object.defineProperty;
3621
- var __defNormalProp$w = (obj, key, value) => key in obj ? __defProp$w(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
3622
- var __publicField$w = (obj, key, value) => {
3623
- __defNormalProp$w(obj, typeof key !== "symbol" ? key + "" : key, value);
3658
+ var __defProp$z = Object.defineProperty;
3659
+ var __defNormalProp$z = (obj, key, value) => key in obj ? __defProp$z(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
3660
+ var __publicField$z = (obj, key, value) => {
3661
+ __defNormalProp$z(obj, typeof key !== "symbol" ? key + "" : key, value);
3624
3662
  return value;
3625
3663
  };
3626
3664
  class Search {
3627
3665
  constructor(page) {
3628
3666
  this.page = page;
3629
- __publicField$w(this, "headline");
3630
- __publicField$w(this, "productImages");
3667
+ __publicField$z(this, "headline");
3668
+ __publicField$z(this, "productImages");
3631
3669
  this.headline = page.locator("h1.search-headline");
3632
3670
  this.productImages = page.locator(".product-image-link");
3633
3671
  }
@@ -3636,16 +3674,16 @@ class Search {
3636
3674
  }
3637
3675
  }
3638
3676
 
3639
- var __defProp$v = Object.defineProperty;
3640
- var __defNormalProp$v = (obj, key, value) => key in obj ? __defProp$v(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
3641
- var __publicField$v = (obj, key, value) => {
3642
- __defNormalProp$v(obj, typeof key !== "symbol" ? key + "" : key, value);
3677
+ var __defProp$y = Object.defineProperty;
3678
+ var __defNormalProp$y = (obj, key, value) => key in obj ? __defProp$y(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
3679
+ var __publicField$y = (obj, key, value) => {
3680
+ __defNormalProp$y(obj, typeof key !== "symbol" ? key + "" : key, value);
3643
3681
  return value;
3644
3682
  };
3645
3683
  class SearchSuggest {
3646
3684
  constructor(page) {
3647
3685
  this.page = page;
3648
- __publicField$v(this, "searchSuggestLineItemImages");
3686
+ __publicField$y(this, "searchSuggestLineItemImages");
3649
3687
  this.searchSuggestLineItemImages = page.locator(".search-suggest-product-image-container");
3650
3688
  }
3651
3689
  url(searchTerm) {
@@ -3663,31 +3701,31 @@ class CustomRegister extends AccountLogin {
3663
3701
  }
3664
3702
  }
3665
3703
 
3666
- var __defProp$u = Object.defineProperty;
3667
- var __defNormalProp$u = (obj, key, value) => key in obj ? __defProp$u(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
3668
- var __publicField$u = (obj, key, value) => {
3669
- __defNormalProp$u(obj, typeof key !== "symbol" ? key + "" : key, value);
3704
+ var __defProp$x = Object.defineProperty;
3705
+ var __defNormalProp$x = (obj, key, value) => key in obj ? __defProp$x(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
3706
+ var __publicField$x = (obj, key, value) => {
3707
+ __defNormalProp$x(obj, typeof key !== "symbol" ? key + "" : key, value);
3670
3708
  return value;
3671
3709
  };
3672
3710
  class CheckoutOrderEdit {
3673
3711
  constructor(page) {
3674
3712
  this.page = page;
3675
- __publicField$u(this, "completePaymentButton");
3676
- __publicField$u(this, "orderCancelButton");
3677
- __publicField$u(this, "dialogOrderCancel");
3678
- __publicField$u(this, "dialogOrderCancelButton");
3679
- __publicField$u(this, "dialogBackButton");
3713
+ __publicField$x(this, "completePaymentButton");
3714
+ __publicField$x(this, "orderCancelButton");
3715
+ __publicField$x(this, "dialogOrderCancel");
3716
+ __publicField$x(this, "dialogOrderCancelButton");
3717
+ __publicField$x(this, "dialogBackButton");
3680
3718
  /**
3681
3719
  * Payment options
3682
3720
  */
3683
- __publicField$u(this, "paymentCashOnDelivery");
3684
- __publicField$u(this, "paymentPaidInAdvance");
3685
- __publicField$u(this, "paymentInvoice");
3721
+ __publicField$x(this, "paymentCashOnDelivery");
3722
+ __publicField$x(this, "paymentPaidInAdvance");
3723
+ __publicField$x(this, "paymentInvoice");
3686
3724
  /**
3687
3725
  * Shipping options
3688
3726
  */
3689
- __publicField$u(this, "shippingStandard");
3690
- __publicField$u(this, "shippingExpress");
3727
+ __publicField$x(this, "shippingStandard");
3728
+ __publicField$x(this, "shippingExpress");
3691
3729
  this.completePaymentButton = page.getByRole("button", { name: "Complete payment" });
3692
3730
  this.orderCancelButton = page.getByRole("button", { name: "Cancel order" });
3693
3731
  this.dialogOrderCancel = page.getByRole("dialog", { name: "Cancel order" });
@@ -3715,6 +3753,7 @@ const StorefrontPageObjects = {
3715
3753
  CheckoutRegister,
3716
3754
  Account,
3717
3755
  AccountLogin,
3756
+ AccountRecover,
3718
3757
  AccountProfile,
3719
3758
  AccountOrder,
3720
3759
  AccountAddresses,
@@ -3755,6 +3794,9 @@ const test$6 = test$e.extend({
3755
3794
  StorefrontAccountLogin: async ({ StorefrontPage }, use) => {
3756
3795
  await use(new AccountLogin(StorefrontPage));
3757
3796
  },
3797
+ StorefrontAccountRecover: async ({ StorefrontPage }, use) => {
3798
+ await use(new AccountRecover(StorefrontPage));
3799
+ },
3758
3800
  StorefrontAccountProfile: async ({ StorefrontPage }, use) => {
3759
3801
  await use(new AccountProfile(StorefrontPage));
3760
3802
  },
@@ -3781,10 +3823,10 @@ const test$6 = test$e.extend({
3781
3823
  }
3782
3824
  });
3783
3825
 
3784
- var __defProp$t = Object.defineProperty;
3785
- var __defNormalProp$t = (obj, key, value) => key in obj ? __defProp$t(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
3786
- var __publicField$t = (obj, key, value) => {
3787
- __defNormalProp$t(obj, typeof key !== "symbol" ? key + "" : key, value);
3826
+ var __defProp$w = Object.defineProperty;
3827
+ var __defNormalProp$w = (obj, key, value) => key in obj ? __defProp$w(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
3828
+ var __publicField$w = (obj, key, value) => {
3829
+ __defNormalProp$w(obj, typeof key !== "symbol" ? key + "" : key, value);
3788
3830
  return value;
3789
3831
  };
3790
3832
  class ProductDetail {
@@ -3793,67 +3835,67 @@ class ProductDetail {
3793
3835
  /**
3794
3836
  * Save interactions
3795
3837
  */
3796
- __publicField$t(this, "savePhysicalProductButton");
3797
- __publicField$t(this, "saveButtonLoadingSpinner");
3798
- __publicField$t(this, "saveButtonCheckMark");
3838
+ __publicField$w(this, "savePhysicalProductButton");
3839
+ __publicField$w(this, "saveButtonLoadingSpinner");
3840
+ __publicField$w(this, "saveButtonCheckMark");
3799
3841
  /**
3800
3842
  * General Info
3801
3843
  */
3802
- __publicField$t(this, "manufacturerDropdownText");
3844
+ __publicField$w(this, "manufacturerDropdownText");
3803
3845
  /**
3804
3846
  * Prices
3805
3847
  */
3806
- __publicField$t(this, "priceGrossInput");
3848
+ __publicField$w(this, "priceGrossInput");
3807
3849
  /**
3808
3850
  * Deliverability
3809
3851
  */
3810
- __publicField$t(this, "stockInput");
3811
- __publicField$t(this, "restockTimeInput");
3852
+ __publicField$w(this, "stockInput");
3853
+ __publicField$w(this, "restockTimeInput");
3812
3854
  /**
3813
3855
  * Visibility
3814
3856
  */
3815
- __publicField$t(this, "activeForAllSalesChannelsToggle");
3816
- __publicField$t(this, "tagsInput");
3817
- __publicField$t(this, "saleChannelsInput");
3857
+ __publicField$w(this, "activeForAllSalesChannelsToggle");
3858
+ __publicField$w(this, "tagsInput");
3859
+ __publicField$w(this, "saleChannelsInput");
3818
3860
  /**
3819
3861
  * Labelling
3820
3862
  */
3821
- __publicField$t(this, "releaseDateInput");
3863
+ __publicField$w(this, "releaseDateInput");
3822
3864
  /**
3823
3865
  * Media Upload interactions
3824
3866
  */
3825
- __publicField$t(this, "uploadMediaButton");
3826
- __publicField$t(this, "coverImage");
3827
- __publicField$t(this, "productImage");
3867
+ __publicField$w(this, "uploadMediaButton");
3868
+ __publicField$w(this, "coverImage");
3869
+ __publicField$w(this, "productImage");
3828
3870
  /**
3829
3871
  * Tabs
3830
3872
  */
3831
- __publicField$t(this, "variantsTabLink");
3832
- __publicField$t(this, "specificationsTabLink");
3873
+ __publicField$w(this, "variantsTabLink");
3874
+ __publicField$w(this, "specificationsTabLink");
3833
3875
  /**
3834
3876
  * Variants Generation
3835
3877
  */
3836
- __publicField$t(this, "generateVariantsButton");
3837
- __publicField$t(this, "variantsModal");
3838
- __publicField$t(this, "variantsModalHeadline");
3839
- __publicField$t(this, "variantsNextButton");
3840
- __publicField$t(this, "variantsSaveButton");
3878
+ __publicField$w(this, "generateVariantsButton");
3879
+ __publicField$w(this, "variantsModal");
3880
+ __publicField$w(this, "variantsModalHeadline");
3881
+ __publicField$w(this, "variantsNextButton");
3882
+ __publicField$w(this, "variantsSaveButton");
3841
3883
  /**
3842
3884
  * Property Selection
3843
3885
  */
3844
- __publicField$t(this, "propertyGroupColor");
3845
- __publicField$t(this, "propertyGroupSize");
3846
- __publicField$t(this, "propertyOptionGrid");
3847
- __publicField$t(this, "propertyOptionColorBlue");
3848
- __publicField$t(this, "propertyOptionColorRed");
3849
- __publicField$t(this, "propertyOptionColorGreen");
3850
- __publicField$t(this, "propertyOptionSizeSmall");
3851
- __publicField$t(this, "propertyOptionSizeMedium");
3852
- __publicField$t(this, "propertyOptionSizeLarge");
3886
+ __publicField$w(this, "propertyGroupColor");
3887
+ __publicField$w(this, "propertyGroupSize");
3888
+ __publicField$w(this, "propertyOptionGrid");
3889
+ __publicField$w(this, "propertyOptionColorBlue");
3890
+ __publicField$w(this, "propertyOptionColorRed");
3891
+ __publicField$w(this, "propertyOptionColorGreen");
3892
+ __publicField$w(this, "propertyOptionSizeSmall");
3893
+ __publicField$w(this, "propertyOptionSizeMedium");
3894
+ __publicField$w(this, "propertyOptionSizeLarge");
3853
3895
  /**
3854
3896
  * Cards
3855
3897
  */
3856
- __publicField$t(this, "customFieldCard");
3898
+ __publicField$w(this, "customFieldCard");
3857
3899
  this.savePhysicalProductButton = page.getByRole("button", { name: "Save" });
3858
3900
  this.saveButtonCheckMark = page.locator(".icon--regular-checkmark-xs");
3859
3901
  this.saveButtonLoadingSpinner = page.locator("sw-loader");
@@ -3900,18 +3942,18 @@ class ProductDetail {
3900
3942
  }
3901
3943
  }
3902
3944
 
3903
- var __defProp$s = Object.defineProperty;
3904
- var __defNormalProp$s = (obj, key, value) => key in obj ? __defProp$s(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
3905
- var __publicField$s = (obj, key, value) => {
3906
- __defNormalProp$s(obj, typeof key !== "symbol" ? key + "" : key, value);
3945
+ var __defProp$v = Object.defineProperty;
3946
+ var __defNormalProp$v = (obj, key, value) => key in obj ? __defProp$v(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
3947
+ var __publicField$v = (obj, key, value) => {
3948
+ __defNormalProp$v(obj, typeof key !== "symbol" ? key + "" : key, value);
3907
3949
  return value;
3908
3950
  };
3909
3951
  class OrderDetail {
3910
3952
  constructor(page) {
3911
3953
  this.page = page;
3912
- __publicField$s(this, "saveButton");
3913
- __publicField$s(this, "dataGridContextButton");
3914
- __publicField$s(this, "orderTag");
3954
+ __publicField$v(this, "saveButton");
3955
+ __publicField$v(this, "dataGridContextButton");
3956
+ __publicField$v(this, "orderTag");
3915
3957
  this.saveButton = page.locator(".sw-order-detail__smart-bar-save-button");
3916
3958
  this.dataGridContextButton = page.locator(".sw-data-grid__actions-menu").and(page.getByRole("button"));
3917
3959
  this.orderTag = page.locator(".sw-select-selection-list__item");
@@ -3921,24 +3963,24 @@ class OrderDetail {
3921
3963
  }
3922
3964
  }
3923
3965
 
3924
- var __defProp$r = Object.defineProperty;
3925
- var __defNormalProp$r = (obj, key, value) => key in obj ? __defProp$r(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
3926
- var __publicField$r = (obj, key, value) => {
3927
- __defNormalProp$r(obj, typeof key !== "symbol" ? key + "" : key, value);
3966
+ var __defProp$u = Object.defineProperty;
3967
+ var __defNormalProp$u = (obj, key, value) => key in obj ? __defProp$u(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
3968
+ var __publicField$u = (obj, key, value) => {
3969
+ __defNormalProp$u(obj, typeof key !== "symbol" ? key + "" : key, value);
3928
3970
  return value;
3929
3971
  };
3930
3972
  class CustomerListing {
3931
3973
  constructor(page) {
3932
3974
  this.page = page;
3933
- __publicField$r(this, "headline");
3934
- __publicField$r(this, "addCustomerButton");
3935
- __publicField$r(this, "bulkEditButton");
3936
- __publicField$r(this, "deleteButton");
3975
+ __publicField$u(this, "headline");
3976
+ __publicField$u(this, "addCustomerButton");
3977
+ __publicField$u(this, "bulkEditButton");
3978
+ __publicField$u(this, "deleteButton");
3937
3979
  //Customer Bulk Edit Modal
3938
- __publicField$r(this, "bulkEditModal");
3939
- __publicField$r(this, "startBulkEditButton");
3940
- __publicField$r(this, "cancelButton");
3941
- __publicField$r(this, "modalHeaderCheckbox");
3980
+ __publicField$u(this, "bulkEditModal");
3981
+ __publicField$u(this, "startBulkEditButton");
3982
+ __publicField$u(this, "cancelButton");
3983
+ __publicField$u(this, "modalHeaderCheckbox");
3942
3984
  this.headline = page.getByRole("heading", { name: "Customers" });
3943
3985
  this.addCustomerButton = page.locator(".sw-customer-list__button-create");
3944
3986
  this.bulkEditButton = page.getByRole("button", { name: "Bulk edit" });
@@ -3999,26 +4041,26 @@ class CustomerListing {
3999
4041
  }
4000
4042
  }
4001
4043
 
4002
- var __defProp$q = Object.defineProperty;
4003
- var __defNormalProp$q = (obj, key, value) => key in obj ? __defProp$q(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
4004
- var __publicField$q = (obj, key, value) => {
4005
- __defNormalProp$q(obj, typeof key !== "symbol" ? key + "" : key, value);
4044
+ var __defProp$t = Object.defineProperty;
4045
+ var __defNormalProp$t = (obj, key, value) => key in obj ? __defProp$t(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
4046
+ var __publicField$t = (obj, key, value) => {
4047
+ __defNormalProp$t(obj, typeof key !== "symbol" ? key + "" : key, value);
4006
4048
  return value;
4007
4049
  };
4008
4050
  class CustomerDetail {
4009
4051
  constructor(page) {
4010
4052
  this.page = page;
4011
- __publicField$q(this, "editButton");
4012
- __publicField$q(this, "generalTab");
4013
- __publicField$q(this, "accountCard");
4014
- __publicField$q(this, "customFieldCard");
4015
- __publicField$q(this, "customFieldSetTabs");
4016
- __publicField$q(this, "customFieldSetTabCustomContent");
4017
- __publicField$q(this, "customerGroupRequestMessage");
4018
- __publicField$q(this, "customerGroupAcceptButton");
4019
- __publicField$q(this, "customerGroupDeclineButton");
4020
- __publicField$q(this, "tagList");
4021
- __publicField$q(this, "tagItems");
4053
+ __publicField$t(this, "editButton");
4054
+ __publicField$t(this, "generalTab");
4055
+ __publicField$t(this, "accountCard");
4056
+ __publicField$t(this, "customFieldCard");
4057
+ __publicField$t(this, "customFieldSetTabs");
4058
+ __publicField$t(this, "customFieldSetTabCustomContent");
4059
+ __publicField$t(this, "customerGroupRequestMessage");
4060
+ __publicField$t(this, "customerGroupAcceptButton");
4061
+ __publicField$t(this, "customerGroupDeclineButton");
4062
+ __publicField$t(this, "tagList");
4063
+ __publicField$t(this, "tagItems");
4022
4064
  this.editButton = page.getByRole("button", { name: "Edit" });
4023
4065
  this.generalTab = page.getByRole("link", { name: "General" });
4024
4066
  this.accountCard = page.locator(".sw-customer-card");
@@ -4066,17 +4108,17 @@ class CustomerDetail {
4066
4108
  }
4067
4109
  }
4068
4110
 
4069
- var __defProp$p = Object.defineProperty;
4070
- var __defNormalProp$p = (obj, key, value) => key in obj ? __defProp$p(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
4071
- var __publicField$p = (obj, key, value) => {
4072
- __defNormalProp$p(obj, typeof key !== "symbol" ? key + "" : key, value);
4111
+ var __defProp$s = Object.defineProperty;
4112
+ var __defNormalProp$s = (obj, key, value) => key in obj ? __defProp$s(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
4113
+ var __publicField$s = (obj, key, value) => {
4114
+ __defNormalProp$s(obj, typeof key !== "symbol" ? key + "" : key, value);
4073
4115
  return value;
4074
4116
  };
4075
4117
  class CustomerGroupListing {
4076
4118
  constructor(page) {
4077
4119
  this.page = page;
4078
- __publicField$p(this, "headline");
4079
- __publicField$p(this, "addCustomerGroupButton");
4120
+ __publicField$s(this, "headline");
4121
+ __publicField$s(this, "addCustomerGroupButton");
4080
4122
  this.headline = page.getByRole("heading", { name: "Customer groups" });
4081
4123
  this.addCustomerGroupButton = page.locator(".sw-settings-customer-group-list__create");
4082
4124
  }
@@ -4098,29 +4140,29 @@ class CustomerGroupListing {
4098
4140
  }
4099
4141
  }
4100
4142
 
4101
- var __defProp$o = Object.defineProperty;
4102
- var __defNormalProp$o = (obj, key, value) => key in obj ? __defProp$o(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
4103
- var __publicField$o = (obj, key, value) => {
4104
- __defNormalProp$o(obj, typeof key !== "symbol" ? key + "" : key, value);
4143
+ var __defProp$r = Object.defineProperty;
4144
+ var __defNormalProp$r = (obj, key, value) => key in obj ? __defProp$r(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
4145
+ var __publicField$r = (obj, key, value) => {
4146
+ __defNormalProp$r(obj, typeof key !== "symbol" ? key + "" : key, value);
4105
4147
  return value;
4106
4148
  };
4107
4149
  class CustomerGroupCreate {
4108
4150
  constructor(page) {
4109
4151
  this.page = page;
4110
- __publicField$o(this, "headline");
4111
- __publicField$o(this, "saveButton");
4112
- __publicField$o(this, "cancelButton");
4113
- __publicField$o(this, "cardTitle");
4114
- __publicField$o(this, "customerGroupNameField");
4115
- __publicField$o(this, "customerGroupGrossTaxDisplay");
4116
- __publicField$o(this, "customerGroupNetTaxDisplay");
4117
- __publicField$o(this, "customSignupFormToggle");
4118
- __publicField$o(this, "signupFormTitle");
4119
- __publicField$o(this, "signupFormIntroduction");
4120
- __publicField$o(this, "signupFormSeoDescription");
4121
- __publicField$o(this, "signupFormCompanySignupToggle");
4122
- __publicField$o(this, "customerGroupSaleschannelSelection");
4123
- __publicField$o(this, "customerGroupSaleschannelResultList");
4152
+ __publicField$r(this, "headline");
4153
+ __publicField$r(this, "saveButton");
4154
+ __publicField$r(this, "cancelButton");
4155
+ __publicField$r(this, "cardTitle");
4156
+ __publicField$r(this, "customerGroupNameField");
4157
+ __publicField$r(this, "customerGroupGrossTaxDisplay");
4158
+ __publicField$r(this, "customerGroupNetTaxDisplay");
4159
+ __publicField$r(this, "customSignupFormToggle");
4160
+ __publicField$r(this, "signupFormTitle");
4161
+ __publicField$r(this, "signupFormIntroduction");
4162
+ __publicField$r(this, "signupFormSeoDescription");
4163
+ __publicField$r(this, "signupFormCompanySignupToggle");
4164
+ __publicField$r(this, "customerGroupSaleschannelSelection");
4165
+ __publicField$r(this, "customerGroupSaleschannelResultList");
4124
4166
  this.headline = page.getByRole("heading", { name: "New customer group" });
4125
4167
  this.saveButton = page.getByRole("button", { name: "Save" });
4126
4168
  this.cancelButton = page.getByRole("button", { name: "Cancel" });
@@ -4141,20 +4183,20 @@ class CustomerGroupCreate {
4141
4183
  }
4142
4184
  }
4143
4185
 
4144
- var __defProp$n = Object.defineProperty;
4145
- var __defNormalProp$n = (obj, key, value) => key in obj ? __defProp$n(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
4146
- var __publicField$n = (obj, key, value) => {
4147
- __defNormalProp$n(obj, typeof key !== "symbol" ? key + "" : key, value);
4186
+ var __defProp$q = Object.defineProperty;
4187
+ var __defNormalProp$q = (obj, key, value) => key in obj ? __defProp$q(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
4188
+ var __publicField$q = (obj, key, value) => {
4189
+ __defNormalProp$q(obj, typeof key !== "symbol" ? key + "" : key, value);
4148
4190
  return value;
4149
4191
  };
4150
4192
  class CustomerGroupDetail extends CustomerGroupCreate {
4151
4193
  constructor(page) {
4152
4194
  super(page);
4153
4195
  this.page = page;
4154
- __publicField$n(this, "headline");
4155
- __publicField$n(this, "selectedSalesChannel");
4156
- __publicField$n(this, "technicalUrl");
4157
- __publicField$n(this, "saleschannelUrl");
4196
+ __publicField$q(this, "headline");
4197
+ __publicField$q(this, "selectedSalesChannel");
4198
+ __publicField$q(this, "technicalUrl");
4199
+ __publicField$q(this, "saleschannelUrl");
4158
4200
  this.headline = page.locator(".smart-bar__header");
4159
4201
  this.selectedSalesChannel = page.locator(".sw-select-selection-list");
4160
4202
  this.technicalUrl = page.getByLabel("Technical URL");
@@ -4165,53 +4207,53 @@ class CustomerGroupDetail extends CustomerGroupCreate {
4165
4207
  }
4166
4208
  }
4167
4209
 
4168
- var __defProp$m = Object.defineProperty;
4169
- var __defNormalProp$m = (obj, key, value) => key in obj ? __defProp$m(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
4170
- var __publicField$m = (obj, key, value) => {
4171
- __defNormalProp$m(obj, typeof key !== "symbol" ? key + "" : key, value);
4210
+ var __defProp$p = Object.defineProperty;
4211
+ var __defNormalProp$p = (obj, key, value) => key in obj ? __defProp$p(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
4212
+ var __publicField$p = (obj, key, value) => {
4213
+ __defNormalProp$p(obj, typeof key !== "symbol" ? key + "" : key, value);
4172
4214
  return value;
4173
4215
  };
4174
4216
  class FirstRunWizard {
4175
4217
  constructor(page) {
4176
4218
  this.page = page;
4177
- __publicField$m(this, "nextButton");
4178
- __publicField$m(this, "configureLaterButton");
4179
- __publicField$m(this, "skipButton");
4180
- __publicField$m(this, "finishButton");
4181
- __publicField$m(this, "backButton");
4182
- __publicField$m(this, "smtpServerButton");
4183
- __publicField$m(this, "dataImportHeader");
4184
- __publicField$m(this, "installLanguagePackButton");
4185
- __publicField$m(this, "installDemoDataButton");
4186
- __publicField$m(this, "installMigrationAssistantButton");
4187
- __publicField$m(this, "defaultValuesHeader");
4188
- __publicField$m(this, "mailerConfigurationHeader");
4189
- __publicField$m(this, "payPalSetupHeader");
4190
- __publicField$m(this, "extensionsHeader");
4191
- __publicField$m(this, "shopwareAccountHeader");
4192
- __publicField$m(this, "shopwareStoreHeader");
4193
- __publicField$m(this, "doneHeader");
4194
- __publicField$m(this, "frwSuccessText");
4195
- __publicField$m(this, "welcomeText");
4196
- __publicField$m(this, "pluginCardInfo");
4197
- __publicField$m(this, "dataImportCard");
4198
- __publicField$m(this, "salesChannelSelectionList");
4199
- __publicField$m(this, "salesChannelSelectionMultiSelect");
4200
- __publicField$m(this, "smtpServerTitle");
4201
- __publicField$m(this, "smtpServerFields");
4202
- __publicField$m(this, "payPalPaymethods");
4203
- __publicField$m(this, "payPalInfoCard");
4204
- __publicField$m(this, "emailAddressInputField");
4205
- __publicField$m(this, "passwordInputField");
4206
- __publicField$m(this, "forgotPasswordLink");
4207
- __publicField$m(this, "extensionStoreHeading");
4208
- __publicField$m(this, "documentationLink");
4209
- __publicField$m(this, "forumLink");
4210
- __publicField$m(this, "roadmapLink");
4211
- __publicField$m(this, "germanRegionSelector");
4212
- __publicField$m(this, "toolsSelector");
4213
- __publicField$m(this, "recommendationHeader");
4214
- __publicField$m(this, "toolsRecommendedPlugin");
4219
+ __publicField$p(this, "nextButton");
4220
+ __publicField$p(this, "configureLaterButton");
4221
+ __publicField$p(this, "skipButton");
4222
+ __publicField$p(this, "finishButton");
4223
+ __publicField$p(this, "backButton");
4224
+ __publicField$p(this, "smtpServerButton");
4225
+ __publicField$p(this, "dataImportHeader");
4226
+ __publicField$p(this, "installLanguagePackButton");
4227
+ __publicField$p(this, "installDemoDataButton");
4228
+ __publicField$p(this, "installMigrationAssistantButton");
4229
+ __publicField$p(this, "defaultValuesHeader");
4230
+ __publicField$p(this, "mailerConfigurationHeader");
4231
+ __publicField$p(this, "payPalSetupHeader");
4232
+ __publicField$p(this, "extensionsHeader");
4233
+ __publicField$p(this, "shopwareAccountHeader");
4234
+ __publicField$p(this, "shopwareStoreHeader");
4235
+ __publicField$p(this, "doneHeader");
4236
+ __publicField$p(this, "frwSuccessText");
4237
+ __publicField$p(this, "welcomeText");
4238
+ __publicField$p(this, "pluginCardInfo");
4239
+ __publicField$p(this, "dataImportCard");
4240
+ __publicField$p(this, "salesChannelSelectionList");
4241
+ __publicField$p(this, "salesChannelSelectionMultiSelect");
4242
+ __publicField$p(this, "smtpServerTitle");
4243
+ __publicField$p(this, "smtpServerFields");
4244
+ __publicField$p(this, "payPalPaymethods");
4245
+ __publicField$p(this, "payPalInfoCard");
4246
+ __publicField$p(this, "emailAddressInputField");
4247
+ __publicField$p(this, "passwordInputField");
4248
+ __publicField$p(this, "forgotPasswordLink");
4249
+ __publicField$p(this, "extensionStoreHeading");
4250
+ __publicField$p(this, "documentationLink");
4251
+ __publicField$p(this, "forumLink");
4252
+ __publicField$p(this, "roadmapLink");
4253
+ __publicField$p(this, "germanRegionSelector");
4254
+ __publicField$p(this, "toolsSelector");
4255
+ __publicField$p(this, "recommendationHeader");
4256
+ __publicField$p(this, "toolsRecommendedPlugin");
4215
4257
  this.nextButton = page.getByText("Next", { exact: true });
4216
4258
  this.configureLaterButton = page.getByText("Configure later", { exact: true });
4217
4259
  this.skipButton = page.getByText("Skip", { exact: true });
@@ -4256,17 +4298,17 @@ class FirstRunWizard {
4256
4298
  }
4257
4299
  }
4258
4300
 
4259
- var __defProp$l = Object.defineProperty;
4260
- var __defNormalProp$l = (obj, key, value) => key in obj ? __defProp$l(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
4261
- var __publicField$l = (obj, key, value) => {
4262
- __defNormalProp$l(obj, typeof key !== "symbol" ? key + "" : key, value);
4301
+ var __defProp$o = Object.defineProperty;
4302
+ var __defNormalProp$o = (obj, key, value) => key in obj ? __defProp$o(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
4303
+ var __publicField$o = (obj, key, value) => {
4304
+ __defNormalProp$o(obj, typeof key !== "symbol" ? key + "" : key, value);
4263
4305
  return value;
4264
4306
  };
4265
4307
  class FlowBuilderCreate {
4266
4308
  constructor(page) {
4267
4309
  this.page = page;
4268
- __publicField$l(this, "saveButton");
4269
- __publicField$l(this, "header");
4310
+ __publicField$o(this, "saveButton");
4311
+ __publicField$o(this, "header");
4270
4312
  this.saveButton = page.locator(".sw-flow-detail__save");
4271
4313
  this.header = page.locator("h2");
4272
4314
  }
@@ -4275,28 +4317,28 @@ class FlowBuilderCreate {
4275
4317
  }
4276
4318
  }
4277
4319
 
4278
- var __defProp$k = Object.defineProperty;
4279
- var __defNormalProp$k = (obj, key, value) => key in obj ? __defProp$k(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
4280
- var __publicField$k = (obj, key, value) => {
4281
- __defNormalProp$k(obj, typeof key !== "symbol" ? key + "" : key, value);
4320
+ var __defProp$n = Object.defineProperty;
4321
+ var __defNormalProp$n = (obj, key, value) => key in obj ? __defProp$n(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
4322
+ var __publicField$n = (obj, key, value) => {
4323
+ __defNormalProp$n(obj, typeof key !== "symbol" ? key + "" : key, value);
4282
4324
  return value;
4283
4325
  };
4284
4326
  class FlowBuilderListing {
4285
4327
  constructor(page) {
4286
4328
  this.page = page;
4287
- __publicField$k(this, "createFlowButton");
4288
- __publicField$k(this, "firstFlowName");
4289
- __publicField$k(this, "firstFlowContextButton");
4290
- __publicField$k(this, "flowContextMenu");
4291
- __publicField$k(this, "contextMenuDownload");
4292
- __publicField$k(this, "contextMenuDuplicate");
4293
- __publicField$k(this, "contextMenuEdit");
4294
- __publicField$k(this, "contextMenuDelete");
4295
- __publicField$k(this, "flowDownloadModal");
4296
- __publicField$k(this, "downloadFlowButton");
4297
- __publicField$k(this, "flowDeleteButton");
4298
- __publicField$k(this, "successAlert");
4299
- __publicField$k(this, "successAlertMessage");
4329
+ __publicField$n(this, "createFlowButton");
4330
+ __publicField$n(this, "firstFlowName");
4331
+ __publicField$n(this, "firstFlowContextButton");
4332
+ __publicField$n(this, "flowContextMenu");
4333
+ __publicField$n(this, "contextMenuDownload");
4334
+ __publicField$n(this, "contextMenuDuplicate");
4335
+ __publicField$n(this, "contextMenuEdit");
4336
+ __publicField$n(this, "contextMenuDelete");
4337
+ __publicField$n(this, "flowDownloadModal");
4338
+ __publicField$n(this, "downloadFlowButton");
4339
+ __publicField$n(this, "flowDeleteButton");
4340
+ __publicField$n(this, "successAlert");
4341
+ __publicField$n(this, "successAlertMessage");
4300
4342
  this.createFlowButton = page.locator(".sw-flow-list__create");
4301
4343
  this.firstFlowName = page.locator(".sw-data-grid__cell--name a").first();
4302
4344
  this.firstFlowContextButton = page.locator(".sw-data-grid__actions-menu").first();
@@ -4333,18 +4375,18 @@ class FlowBuilderListing {
4333
4375
  }
4334
4376
  }
4335
4377
 
4336
- var __defProp$j = Object.defineProperty;
4337
- var __defNormalProp$j = (obj, key, value) => key in obj ? __defProp$j(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
4338
- var __publicField$j = (obj, key, value) => {
4339
- __defNormalProp$j(obj, typeof key !== "symbol" ? key + "" : key, value);
4378
+ var __defProp$m = Object.defineProperty;
4379
+ var __defNormalProp$m = (obj, key, value) => key in obj ? __defProp$m(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
4380
+ var __publicField$m = (obj, key, value) => {
4381
+ __defNormalProp$m(obj, typeof key !== "symbol" ? key + "" : key, value);
4340
4382
  return value;
4341
4383
  };
4342
4384
  class FlowBuilderDetail {
4343
4385
  constructor(page) {
4344
4386
  this.page = page;
4345
- __publicField$j(this, "saveButton");
4346
- __publicField$j(this, "generalTab");
4347
- __publicField$j(this, "flowTab");
4387
+ __publicField$m(this, "saveButton");
4388
+ __publicField$m(this, "generalTab");
4389
+ __publicField$m(this, "flowTab");
4348
4390
  this.saveButton = page.locator(".sw-flow-detail__save");
4349
4391
  this.generalTab = page.locator(".sw-flow-detail__tab-general");
4350
4392
  this.flowTab = page.locator(".sw-flow-detail__tab-flow");
@@ -4354,20 +4396,20 @@ class FlowBuilderDetail {
4354
4396
  }
4355
4397
  }
4356
4398
 
4357
- var __defProp$i = Object.defineProperty;
4358
- var __defNormalProp$i = (obj, key, value) => key in obj ? __defProp$i(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
4359
- var __publicField$i = (obj, key, value) => {
4360
- __defNormalProp$i(obj, typeof key !== "symbol" ? key + "" : key, value);
4399
+ var __defProp$l = Object.defineProperty;
4400
+ var __defNormalProp$l = (obj, key, value) => key in obj ? __defProp$l(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
4401
+ var __publicField$l = (obj, key, value) => {
4402
+ __defNormalProp$l(obj, typeof key !== "symbol" ? key + "" : key, value);
4361
4403
  return value;
4362
4404
  };
4363
4405
  class DataSharing {
4364
4406
  constructor(page) {
4365
4407
  this.page = page;
4366
- __publicField$i(this, "dataConsentHeadline");
4367
- __publicField$i(this, "dataSharingSuccessMessageLabel");
4368
- __publicField$i(this, "dataSharingAgreeButton");
4369
- __publicField$i(this, "dataSharingDisableButton");
4370
- __publicField$i(this, "dataSharingTermsAgreementLabel");
4408
+ __publicField$l(this, "dataConsentHeadline");
4409
+ __publicField$l(this, "dataSharingSuccessMessageLabel");
4410
+ __publicField$l(this, "dataSharingAgreeButton");
4411
+ __publicField$l(this, "dataSharingDisableButton");
4412
+ __publicField$l(this, "dataSharingTermsAgreementLabel");
4371
4413
  this.dataConsentHeadline = page.locator("h3.sw-usage-data-consent-banner__content-headline");
4372
4414
  this.dataSharingAgreeButton = page.getByRole("button", { name: "Agree" });
4373
4415
  this.dataSharingDisableButton = page.getByRole("button", { name: "Disable data sharing" });
@@ -4379,23 +4421,23 @@ class DataSharing {
4379
4421
  }
4380
4422
  }
4381
4423
 
4382
- var __defProp$h = Object.defineProperty;
4383
- var __defNormalProp$h = (obj, key, value) => key in obj ? __defProp$h(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
4384
- var __publicField$h = (obj, key, value) => {
4385
- __defNormalProp$h(obj, typeof key !== "symbol" ? key + "" : key, value);
4424
+ var __defProp$k = Object.defineProperty;
4425
+ var __defNormalProp$k = (obj, key, value) => key in obj ? __defProp$k(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
4426
+ var __publicField$k = (obj, key, value) => {
4427
+ __defNormalProp$k(obj, typeof key !== "symbol" ? key + "" : key, value);
4386
4428
  return value;
4387
4429
  };
4388
4430
  class Dashboard {
4389
4431
  constructor(page) {
4390
4432
  this.page = page;
4391
- __publicField$h(this, "welcomeHeadline");
4392
- __publicField$h(this, "dataSharingConsentBanner");
4393
- __publicField$h(this, "dataSharingAgreeButton");
4394
- __publicField$h(this, "dataSharingNotAtTheMomentButton");
4395
- __publicField$h(this, "dataSharingTermsAgreementLabel");
4396
- __publicField$h(this, "dataSharingSettingsLink");
4397
- __publicField$h(this, "dataSharingAcceptMessageText");
4398
- __publicField$h(this, "dataSharingNotAtTheMomentMessageText");
4433
+ __publicField$k(this, "welcomeHeadline");
4434
+ __publicField$k(this, "dataSharingConsentBanner");
4435
+ __publicField$k(this, "dataSharingAgreeButton");
4436
+ __publicField$k(this, "dataSharingNotAtTheMomentButton");
4437
+ __publicField$k(this, "dataSharingTermsAgreementLabel");
4438
+ __publicField$k(this, "dataSharingSettingsLink");
4439
+ __publicField$k(this, "dataSharingAcceptMessageText");
4440
+ __publicField$k(this, "dataSharingNotAtTheMomentMessageText");
4399
4441
  this.welcomeHeadline = page.locator("h1.sw-dashboard-index__welcome-title");
4400
4442
  this.dataSharingConsentBanner = page.locator(".sw-usage-data-consent-banner");
4401
4443
  this.dataSharingAgreeButton = page.getByRole("button", { name: "Agree" });
@@ -4410,25 +4452,25 @@ class Dashboard {
4410
4452
  }
4411
4453
  }
4412
4454
 
4413
- var __defProp$g = Object.defineProperty;
4414
- var __defNormalProp$g = (obj, key, value) => key in obj ? __defProp$g(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
4415
- var __publicField$g = (obj, key, value) => {
4416
- __defNormalProp$g(obj, typeof key !== "symbol" ? key + "" : key, value);
4455
+ var __defProp$j = Object.defineProperty;
4456
+ var __defNormalProp$j = (obj, key, value) => key in obj ? __defProp$j(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
4457
+ var __publicField$j = (obj, key, value) => {
4458
+ __defNormalProp$j(obj, typeof key !== "symbol" ? key + "" : key, value);
4417
4459
  return value;
4418
4460
  };
4419
4461
  class ShippingListing {
4420
4462
  constructor(page) {
4421
4463
  this.page = page;
4422
- __publicField$g(this, "header");
4423
- __publicField$g(this, "addShippingMethod");
4424
- __publicField$g(this, "contextMenu");
4425
- __publicField$g(this, "editButton");
4426
- __publicField$g(this, "deleteButton");
4464
+ __publicField$j(this, "header");
4465
+ __publicField$j(this, "addShippingMethod");
4466
+ __publicField$j(this, "contextMenu");
4467
+ __publicField$j(this, "editButton");
4468
+ __publicField$j(this, "deleteButton");
4427
4469
  //warning modal
4428
- __publicField$g(this, "modal");
4429
- __publicField$g(this, "modalHeader");
4430
- __publicField$g(this, "modalCancelButton");
4431
- __publicField$g(this, "modalDeleteButton");
4470
+ __publicField$j(this, "modal");
4471
+ __publicField$j(this, "modalHeader");
4472
+ __publicField$j(this, "modalCancelButton");
4473
+ __publicField$j(this, "modalDeleteButton");
4432
4474
  this.header = page.locator(".smart-bar__header");
4433
4475
  this.addShippingMethod = page.getByText("Add shipping method", { exact: true });
4434
4476
  this.contextMenu = page.locator(".sw-data-grid-settings__trigger");
@@ -4444,10 +4486,62 @@ class ShippingListing {
4444
4486
  }
4445
4487
  }
4446
4488
 
4447
- var __defProp$f = Object.defineProperty;
4448
- var __defNormalProp$f = (obj, key, value) => key in obj ? __defProp$f(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
4449
- var __publicField$f = (obj, key, value) => {
4450
- __defNormalProp$f(obj, typeof key !== "symbol" ? key + "" : key, value);
4489
+ var __defProp$i = Object.defineProperty;
4490
+ var __defNormalProp$i = (obj, key, value) => key in obj ? __defProp$i(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
4491
+ var __publicField$i = (obj, key, value) => {
4492
+ __defNormalProp$i(obj, typeof key !== "symbol" ? key + "" : key, value);
4493
+ return value;
4494
+ };
4495
+ class ShippingDetail {
4496
+ constructor(page) {
4497
+ this.page = page;
4498
+ __publicField$i(this, "header");
4499
+ __publicField$i(this, "nameField");
4500
+ __publicField$i(this, "availabilityRuleField");
4501
+ __publicField$i(this, "availabilityRuleListItem");
4502
+ this.header = page.locator(".smart-bar__header");
4503
+ this.nameField = page.getByLabel("Name", { exact: true });
4504
+ this.availabilityRuleField = page.locator(".sw-settings-shipping-detail__top-rule").locator(".sw-entity-single-select__selection-text");
4505
+ this.availabilityRuleListItem = page.locator(".sw-select-result-list__content").getByRole("listitem");
4506
+ }
4507
+ url(shippingId) {
4508
+ return `#/sw/settings/shipping/detail/${shippingId}`;
4509
+ }
4510
+ getRuleSelectionCheckmark(ruleName) {
4511
+ return this.availabilityRuleListItem.filter({ hasText: ruleName }).getByTestId("sw-icon__regular-checkmark-xs");
4512
+ }
4513
+ }
4514
+
4515
+ var __defProp$h = Object.defineProperty;
4516
+ var __defNormalProp$h = (obj, key, value) => key in obj ? __defProp$h(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
4517
+ var __publicField$h = (obj, key, value) => {
4518
+ __defNormalProp$h(obj, typeof key !== "symbol" ? key + "" : key, value);
4519
+ return value;
4520
+ };
4521
+ class PaymentDetail {
4522
+ constructor(page) {
4523
+ this.page = page;
4524
+ __publicField$h(this, "header");
4525
+ __publicField$h(this, "nameField");
4526
+ __publicField$h(this, "availabilityRuleField");
4527
+ __publicField$h(this, "availabilityRuleListItem");
4528
+ this.header = page.locator(".smart-bar__header");
4529
+ this.nameField = page.getByLabel("Name", { exact: true });
4530
+ this.availabilityRuleField = page.locator(".sw-settings-payment-detail__field-availability-rule").locator(".sw-entity-single-select__selection-text");
4531
+ this.availabilityRuleListItem = page.locator(".sw-select-result-list__content").getByRole("listitem");
4532
+ }
4533
+ url(paymentId) {
4534
+ return `#/sw/settings/payment/detail/${paymentId}`;
4535
+ }
4536
+ getRuleSelectionCheckmark(ruleName) {
4537
+ return this.availabilityRuleListItem.filter({ hasText: ruleName }).getByTestId("sw-icon__regular-checkmark-xs");
4538
+ }
4539
+ }
4540
+
4541
+ var __defProp$g = Object.defineProperty;
4542
+ var __defNormalProp$g = (obj, key, value) => key in obj ? __defProp$g(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
4543
+ var __publicField$g = (obj, key, value) => {
4544
+ __defNormalProp$g(obj, typeof key !== "symbol" ? key + "" : key, value);
4451
4545
  return value;
4452
4546
  };
4453
4547
  class LandingPageCreate {
@@ -4456,24 +4550,24 @@ class LandingPageCreate {
4456
4550
  /**
4457
4551
  * General
4458
4552
  */
4459
- __publicField$f(this, "nameInput");
4460
- __publicField$f(this, "landingPageStatus");
4461
- __publicField$f(this, "salesChannelSelectionList");
4462
- __publicField$f(this, "filtersResultPopoverItemList");
4463
- __publicField$f(this, "saveLandingPageButton");
4464
- __publicField$f(this, "loadingSpinner");
4465
- __publicField$f(this, "seoUrlInput");
4553
+ __publicField$g(this, "nameInput");
4554
+ __publicField$g(this, "landingPageStatus");
4555
+ __publicField$g(this, "salesChannelSelectionList");
4556
+ __publicField$g(this, "filtersResultPopoverItemList");
4557
+ __publicField$g(this, "saveLandingPageButton");
4558
+ __publicField$g(this, "loadingSpinner");
4559
+ __publicField$g(this, "seoUrlInput");
4466
4560
  /**
4467
4561
  * Layout
4468
4562
  */
4469
- __publicField$f(this, "layoutTab");
4470
- __publicField$f(this, "assignLayoutButton");
4471
- __publicField$f(this, "searchLayoutInput");
4472
- __publicField$f(this, "layoutItems");
4473
- __publicField$f(this, "layoutSaveButton");
4474
- __publicField$f(this, "layoutEmptyState");
4475
- __publicField$f(this, "createNewLayoutButton");
4476
- __publicField$f(this, "layoutCheckboxes");
4563
+ __publicField$g(this, "layoutTab");
4564
+ __publicField$g(this, "assignLayoutButton");
4565
+ __publicField$g(this, "searchLayoutInput");
4566
+ __publicField$g(this, "layoutItems");
4567
+ __publicField$g(this, "layoutSaveButton");
4568
+ __publicField$g(this, "layoutEmptyState");
4569
+ __publicField$g(this, "createNewLayoutButton");
4570
+ __publicField$g(this, "layoutCheckboxes");
4477
4571
  this.loadingSpinner = page.locator(".sw-loader");
4478
4572
  this.saveLandingPageButton = page.getByRole("button", { name: "Save" });
4479
4573
  this.nameInput = page.getByLabel("Name");
@@ -4498,10 +4592,10 @@ class LandingPageCreate {
4498
4592
  }
4499
4593
  }
4500
4594
 
4501
- var __defProp$e = Object.defineProperty;
4502
- var __defNormalProp$e = (obj, key, value) => key in obj ? __defProp$e(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
4503
- var __publicField$e = (obj, key, value) => {
4504
- __defNormalProp$e(obj, typeof key !== "symbol" ? key + "" : key, value);
4595
+ var __defProp$f = Object.defineProperty;
4596
+ var __defNormalProp$f = (obj, key, value) => key in obj ? __defProp$f(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
4597
+ var __publicField$f = (obj, key, value) => {
4598
+ __defNormalProp$f(obj, typeof key !== "symbol" ? key + "" : key, value);
4505
4599
  return value;
4506
4600
  };
4507
4601
  class LandingPageDetail {
@@ -4510,24 +4604,24 @@ class LandingPageDetail {
4510
4604
  /**
4511
4605
  * General
4512
4606
  */
4513
- __publicField$e(this, "nameInput");
4514
- __publicField$e(this, "landingPageStatus");
4515
- __publicField$e(this, "salesChannelSelectionList");
4516
- __publicField$e(this, "filtersResultPopoverItemList");
4517
- __publicField$e(this, "saveLandingPageButton");
4518
- __publicField$e(this, "loadingSpinner");
4519
- __publicField$e(this, "seoUrlInput");
4607
+ __publicField$f(this, "nameInput");
4608
+ __publicField$f(this, "landingPageStatus");
4609
+ __publicField$f(this, "salesChannelSelectionList");
4610
+ __publicField$f(this, "filtersResultPopoverItemList");
4611
+ __publicField$f(this, "saveLandingPageButton");
4612
+ __publicField$f(this, "loadingSpinner");
4613
+ __publicField$f(this, "seoUrlInput");
4520
4614
  /**
4521
4615
  * Layout
4522
4616
  */
4523
- __publicField$e(this, "layoutTab");
4524
- __publicField$e(this, "layoutAssignmentCardTitle");
4525
- __publicField$e(this, "layoutAssignmentCardHeadline");
4526
- __publicField$e(this, "changeLayoutButton");
4527
- __publicField$e(this, "editInDesignerButton");
4528
- __publicField$e(this, "layoutResetButton");
4529
- __publicField$e(this, "layoutAssignmentStatus");
4530
- __publicField$e(this, "layoutAssignmentContentSection");
4617
+ __publicField$f(this, "layoutTab");
4618
+ __publicField$f(this, "layoutAssignmentCardTitle");
4619
+ __publicField$f(this, "layoutAssignmentCardHeadline");
4620
+ __publicField$f(this, "changeLayoutButton");
4621
+ __publicField$f(this, "editInDesignerButton");
4622
+ __publicField$f(this, "layoutResetButton");
4623
+ __publicField$f(this, "layoutAssignmentStatus");
4624
+ __publicField$f(this, "layoutAssignmentContentSection");
4531
4625
  this.loadingSpinner = page.locator(".sw-loader");
4532
4626
  this.saveLandingPageButton = page.getByRole("button", { name: "Save" });
4533
4627
  this.nameInput = page.getByLabel("Name");
@@ -4551,10 +4645,10 @@ class LandingPageDetail {
4551
4645
  }
4552
4646
  }
4553
4647
 
4554
- var __defProp$d = Object.defineProperty;
4555
- var __defNormalProp$d = (obj, key, value) => key in obj ? __defProp$d(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
4556
- var __publicField$d = (obj, key, value) => {
4557
- __defNormalProp$d(obj, typeof key !== "symbol" ? key + "" : key, value);
4648
+ var __defProp$e = Object.defineProperty;
4649
+ var __defNormalProp$e = (obj, key, value) => key in obj ? __defProp$e(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
4650
+ var __publicField$e = (obj, key, value) => {
4651
+ __defNormalProp$e(obj, typeof key !== "symbol" ? key + "" : key, value);
4558
4652
  return value;
4559
4653
  };
4560
4654
  class Categories {
@@ -4563,46 +4657,46 @@ class Categories {
4563
4657
  /**
4564
4658
  * Landing pages
4565
4659
  */
4566
- __publicField$d(this, "landingPageArea");
4567
- __publicField$d(this, "landingPageHeadline");
4568
- __publicField$d(this, "addLandingPageButton");
4569
- __publicField$d(this, "landingPageItems");
4660
+ __publicField$e(this, "landingPageArea");
4661
+ __publicField$e(this, "landingPageHeadline");
4662
+ __publicField$e(this, "addLandingPageButton");
4663
+ __publicField$e(this, "landingPageItems");
4570
4664
  /**
4571
4665
  * Category tree
4572
4666
  */
4573
- __publicField$d(this, "categoryTree");
4574
- __publicField$d(this, "categoryMenuItemList");
4575
- __publicField$d(this, "createCategoryInput");
4576
- __publicField$d(this, "confirmCategoryCreationButton");
4577
- __publicField$d(this, "confirmCategoryCancelButton");
4578
- __publicField$d(this, "categoryItems");
4667
+ __publicField$e(this, "categoryTree");
4668
+ __publicField$e(this, "categoryMenuItemList");
4669
+ __publicField$e(this, "createCategoryInput");
4670
+ __publicField$e(this, "confirmCategoryCreationButton");
4671
+ __publicField$e(this, "confirmCategoryCancelButton");
4672
+ __publicField$e(this, "categoryItems");
4579
4673
  /**
4580
4674
  * General
4581
4675
  */
4582
- __publicField$d(this, "nameInput");
4583
- __publicField$d(this, "activeCheckbox");
4584
- __publicField$d(this, "categoryTypeSelectionList");
4585
- __publicField$d(this, "filtersResultPopoverItemList");
4586
- __publicField$d(this, "saveButton");
4587
- __publicField$d(this, "loadingSpinner");
4588
- __publicField$d(this, "fadingBar");
4676
+ __publicField$e(this, "nameInput");
4677
+ __publicField$e(this, "activeCheckbox");
4678
+ __publicField$e(this, "categoryTypeSelectionList");
4679
+ __publicField$e(this, "filtersResultPopoverItemList");
4680
+ __publicField$e(this, "saveButton");
4681
+ __publicField$e(this, "loadingSpinner");
4682
+ __publicField$e(this, "fadingBar");
4589
4683
  /**
4590
4684
  * Customisable link
4591
4685
  */
4592
- __publicField$d(this, "entitySelectionList");
4593
- __publicField$d(this, "linkTypeSelectionList");
4594
- __publicField$d(this, "categorySelectionList");
4595
- __publicField$d(this, "productSelectionList");
4596
- __publicField$d(this, "landingPageSelectionList");
4597
- __publicField$d(this, "filterResultPopoverTreeCheckboxItemList");
4598
- __publicField$d(this, "openInNewTabCheckbox");
4599
- __publicField$d(this, "popoverCategoryTree");
4686
+ __publicField$e(this, "entitySelectionList");
4687
+ __publicField$e(this, "linkTypeSelectionList");
4688
+ __publicField$e(this, "categorySelectionList");
4689
+ __publicField$e(this, "productSelectionList");
4690
+ __publicField$e(this, "landingPageSelectionList");
4691
+ __publicField$e(this, "filterResultPopoverTreeCheckboxItemList");
4692
+ __publicField$e(this, "openInNewTabCheckbox");
4693
+ __publicField$e(this, "popoverCategoryTree");
4600
4694
  this.landingPageArea = page.locator(".sw-category-detail__landing-page-collapse");
4601
4695
  this.landingPageHeadline = this.landingPageArea.getByRole("heading", { name: "Landing pages" });
4602
4696
  this.addLandingPageButton = this.landingPageArea.getByText("Add landing page");
4603
4697
  this.landingPageItems = this.landingPageArea.locator(".sw-tree-item__label");
4604
4698
  this.categoryTree = page.locator(".sw-category-tree");
4605
- this.categoryMenuItemList = page.locator(".sw-context-button__menu-popover").locator(".sw-context-menu-item");
4699
+ this.categoryMenuItemList = page.locator(".sw-context-menu-item");
4606
4700
  this.createCategoryInput = page.getByPlaceholder("Create category").getByRole("textbox");
4607
4701
  this.confirmCategoryCreationButton = page.locator(".sw-confirm-field").locator(".sw-button--primary");
4608
4702
  this.categoryItems = this.categoryTree.locator(".tree-link");
@@ -4637,42 +4731,17 @@ class Categories {
4637
4731
  }
4638
4732
  }
4639
4733
 
4640
- var __defProp$c = Object.defineProperty;
4641
- var __defNormalProp$c = (obj, key, value) => key in obj ? __defProp$c(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
4642
- var __publicField$c = (obj, key, value) => {
4643
- __defNormalProp$c(obj, typeof key !== "symbol" ? key + "" : key, value);
4644
- return value;
4645
- };
4646
- class RuleDetail {
4647
- constructor(page) {
4648
- this.page = page;
4649
- __publicField$c(this, "nameInput");
4650
- __publicField$c(this, "priorityInput");
4651
- __publicField$c(this, "conditionTypeSelectionInput");
4652
- __publicField$c(this, "conditionValueSelectionInput");
4653
- __publicField$c(this, "filtersResultPopoverSelectionList");
4654
- this.nameInput = page.getByLabel("Name");
4655
- this.priorityInput = page.getByLabel("Priority");
4656
- this.conditionTypeSelectionInput = page.locator(".sw-condition-type-select").locator(".sw-single-select__selection");
4657
- this.conditionValueSelectionInput = page.locator(".sw-condition__value-content").locator(".sw-entity-single-select__selection");
4658
- this.filtersResultPopoverSelectionList = page.locator(".sw-select-result-list__content").getByRole("listitem");
4659
- }
4660
- url(ruleId, tabName = "base") {
4661
- return `#/sw/settings/rule/detail/${ruleId}/${tabName}`;
4662
- }
4663
- }
4664
-
4665
- var __defProp$b = Object.defineProperty;
4666
- var __defNormalProp$b = (obj, key, value) => key in obj ? __defProp$b(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
4667
- var __publicField$b = (obj, key, value) => {
4668
- __defNormalProp$b(obj, typeof key !== "symbol" ? key + "" : key, value);
4734
+ var __defProp$d = Object.defineProperty;
4735
+ var __defNormalProp$d = (obj, key, value) => key in obj ? __defProp$d(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
4736
+ var __publicField$d = (obj, key, value) => {
4737
+ __defNormalProp$d(obj, typeof key !== "symbol" ? key + "" : key, value);
4669
4738
  return value;
4670
4739
  };
4671
4740
  class CustomFieldListing {
4672
4741
  constructor(page) {
4673
4742
  this.page = page;
4674
- __publicField$b(this, "addNewSetButton");
4675
- __publicField$b(this, "customFieldRows");
4743
+ __publicField$d(this, "addNewSetButton");
4744
+ __publicField$d(this, "customFieldRows");
4676
4745
  this.addNewSetButton = page.getByText("Add new set");
4677
4746
  this.customFieldRows = page.getByRole("row");
4678
4747
  }
@@ -4700,22 +4769,22 @@ class CustomFieldListing {
4700
4769
  }
4701
4770
  }
4702
4771
 
4703
- var __defProp$a = Object.defineProperty;
4704
- var __defNormalProp$a = (obj, key, value) => key in obj ? __defProp$a(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
4705
- var __publicField$a = (obj, key, value) => {
4706
- __defNormalProp$a(obj, typeof key !== "symbol" ? key + "" : key, value);
4772
+ var __defProp$c = Object.defineProperty;
4773
+ var __defNormalProp$c = (obj, key, value) => key in obj ? __defProp$c(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
4774
+ var __publicField$c = (obj, key, value) => {
4775
+ __defNormalProp$c(obj, typeof key !== "symbol" ? key + "" : key, value);
4707
4776
  return value;
4708
4777
  };
4709
4778
  class CustomFieldCreate {
4710
4779
  constructor(page) {
4711
4780
  this.page = page;
4712
- __publicField$a(this, "saveButton");
4713
- __publicField$a(this, "cancelButton");
4714
- __publicField$a(this, "technicalNameInput");
4715
- __publicField$a(this, "positionInput");
4716
- __publicField$a(this, "labelEnglishGBInput");
4717
- __publicField$a(this, "assignToSelectionList");
4718
- __publicField$a(this, "resultAssignToPopoverItemList");
4781
+ __publicField$c(this, "saveButton");
4782
+ __publicField$c(this, "cancelButton");
4783
+ __publicField$c(this, "technicalNameInput");
4784
+ __publicField$c(this, "positionInput");
4785
+ __publicField$c(this, "labelEnglishGBInput");
4786
+ __publicField$c(this, "assignToSelectionList");
4787
+ __publicField$c(this, "resultAssignToPopoverItemList");
4719
4788
  this.saveButton = page.getByRole("button", { name: "Save" });
4720
4789
  this.cancelButton = page.getByRole("button", { name: "Cancel" });
4721
4790
  this.technicalNameInput = page.getByLabel("Technical name");
@@ -4729,33 +4798,33 @@ class CustomFieldCreate {
4729
4798
  }
4730
4799
  }
4731
4800
 
4732
- var __defProp$9 = Object.defineProperty;
4733
- var __defNormalProp$9 = (obj, key, value) => key in obj ? __defProp$9(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
4734
- var __publicField$9 = (obj, key, value) => {
4735
- __defNormalProp$9(obj, typeof key !== "symbol" ? key + "" : key, value);
4801
+ var __defProp$b = Object.defineProperty;
4802
+ var __defNormalProp$b = (obj, key, value) => key in obj ? __defProp$b(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
4803
+ var __publicField$b = (obj, key, value) => {
4804
+ __defNormalProp$b(obj, typeof key !== "symbol" ? key + "" : key, value);
4736
4805
  return value;
4737
4806
  };
4738
4807
  class CustomFieldDetail extends CustomFieldCreate {
4739
4808
  constructor(page) {
4740
4809
  super(page);
4741
4810
  this.page = page;
4742
- __publicField$9(this, "newCustomFieldButton");
4743
- __publicField$9(this, "customFieldEditDialog");
4744
- __publicField$9(this, "newCustomFieldDialog");
4745
- __publicField$9(this, "customFieldTechnicalNameInput");
4746
- __publicField$9(this, "customFieldPositionInput");
4747
- __publicField$9(this, "customFieldTypeSelectionList");
4748
- __publicField$9(this, "customFieldModifyByStoreApiCheckbox");
4749
- __publicField$9(this, "customFieldCancelButton");
4750
- __publicField$9(this, "customFieldAddButton");
4751
- __publicField$9(this, "customFieldEditApplyButton");
4752
- __publicField$9(this, "customFieldLabelEnglishGBInput");
4753
- __publicField$9(this, "customFieldPlaceholderEnglishGBInput");
4754
- __publicField$9(this, "customFieldHelpTextEnglishGBInput");
4755
- __publicField$9(this, "customFieldDeleteListButton");
4756
- __publicField$9(this, "customFieldDeleteDialog");
4757
- __publicField$9(this, "customFieldDeleteCancelButton");
4758
- __publicField$9(this, "customFieldDeleteButton");
4811
+ __publicField$b(this, "newCustomFieldButton");
4812
+ __publicField$b(this, "customFieldEditDialog");
4813
+ __publicField$b(this, "newCustomFieldDialog");
4814
+ __publicField$b(this, "customFieldTechnicalNameInput");
4815
+ __publicField$b(this, "customFieldPositionInput");
4816
+ __publicField$b(this, "customFieldTypeSelectionList");
4817
+ __publicField$b(this, "customFieldModifyByStoreApiCheckbox");
4818
+ __publicField$b(this, "customFieldCancelButton");
4819
+ __publicField$b(this, "customFieldAddButton");
4820
+ __publicField$b(this, "customFieldEditApplyButton");
4821
+ __publicField$b(this, "customFieldLabelEnglishGBInput");
4822
+ __publicField$b(this, "customFieldPlaceholderEnglishGBInput");
4823
+ __publicField$b(this, "customFieldHelpTextEnglishGBInput");
4824
+ __publicField$b(this, "customFieldDeleteListButton");
4825
+ __publicField$b(this, "customFieldDeleteDialog");
4826
+ __publicField$b(this, "customFieldDeleteCancelButton");
4827
+ __publicField$b(this, "customFieldDeleteButton");
4759
4828
  this.newCustomFieldButton = page.getByRole("button", { name: "New custom field" });
4760
4829
  this.customFieldDeleteListButton = page.locator(".sw-custom-field-list__delete-button");
4761
4830
  this.newCustomFieldDialog = page.getByRole("dialog", { name: "New custom field" });
@@ -4800,20 +4869,20 @@ class CustomFieldDetail extends CustomFieldCreate {
4800
4869
  }
4801
4870
  }
4802
4871
 
4803
- var __defProp$8 = Object.defineProperty;
4804
- var __defNormalProp$8 = (obj, key, value) => key in obj ? __defProp$8(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
4805
- var __publicField$8 = (obj, key, value) => {
4806
- __defNormalProp$8(obj, typeof key !== "symbol" ? key + "" : key, value);
4872
+ var __defProp$a = Object.defineProperty;
4873
+ var __defNormalProp$a = (obj, key, value) => key in obj ? __defProp$a(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
4874
+ var __publicField$a = (obj, key, value) => {
4875
+ __defNormalProp$a(obj, typeof key !== "symbol" ? key + "" : key, value);
4807
4876
  return value;
4808
4877
  };
4809
4878
  class CategoryDetail {
4810
4879
  constructor(page) {
4811
4880
  this.page = page;
4812
- __publicField$8(this, "saveButton");
4813
- __publicField$8(this, "cancelButton");
4814
- __publicField$8(this, "customFieldCard");
4815
- __publicField$8(this, "customFieldSetTabs");
4816
- __publicField$8(this, "customFieldSetTabCustomContent");
4881
+ __publicField$a(this, "saveButton");
4882
+ __publicField$a(this, "cancelButton");
4883
+ __publicField$a(this, "customFieldCard");
4884
+ __publicField$a(this, "customFieldSetTabs");
4885
+ __publicField$a(this, "customFieldSetTabCustomContent");
4817
4886
  this.saveButton = page.getByRole("button", { name: "Save" });
4818
4887
  this.cancelButton = page.getByRole("button", { name: "Cancel" });
4819
4888
  this.customFieldCard = page.locator(".sw-card").getByText("Custom fields");
@@ -4834,22 +4903,22 @@ class CategoryDetail {
4834
4903
  }
4835
4904
  }
4836
4905
 
4837
- var __defProp$7 = Object.defineProperty;
4838
- var __defNormalProp$7 = (obj, key, value) => key in obj ? __defProp$7(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
4839
- var __publicField$7 = (obj, key, value) => {
4840
- __defNormalProp$7(obj, typeof key !== "symbol" ? key + "" : key, value);
4906
+ var __defProp$9 = Object.defineProperty;
4907
+ var __defNormalProp$9 = (obj, key, value) => key in obj ? __defProp$9(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
4908
+ var __publicField$9 = (obj, key, value) => {
4909
+ __defNormalProp$9(obj, typeof key !== "symbol" ? key + "" : key, value);
4841
4910
  return value;
4842
4911
  };
4843
4912
  class RuleCreate {
4844
4913
  constructor(page) {
4845
4914
  this.page = page;
4846
- __publicField$7(this, "nameInput");
4847
- __publicField$7(this, "priorityInput");
4848
- __publicField$7(this, "conditionTypeSelectionInput");
4849
- __publicField$7(this, "conditionValueSelectionInput");
4850
- __publicField$7(this, "filtersResultPopoverSelectionList");
4851
- __publicField$7(this, "saveButton");
4852
- __publicField$7(this, "cancelButton");
4915
+ __publicField$9(this, "nameInput");
4916
+ __publicField$9(this, "priorityInput");
4917
+ __publicField$9(this, "conditionTypeSelectionInput");
4918
+ __publicField$9(this, "conditionValueSelectionInput");
4919
+ __publicField$9(this, "filtersResultPopoverSelectionList");
4920
+ __publicField$9(this, "saveButton");
4921
+ __publicField$9(this, "cancelButton");
4853
4922
  this.nameInput = page.getByLabel("Name");
4854
4923
  this.priorityInput = page.getByLabel("Priority");
4855
4924
  this.conditionTypeSelectionInput = page.locator(".sw-condition-type-select").locator(".sw-single-select__selection");
@@ -4863,6 +4932,76 @@ class RuleCreate {
4863
4932
  }
4864
4933
  }
4865
4934
 
4935
+ var __defProp$8 = Object.defineProperty;
4936
+ var __defNormalProp$8 = (obj, key, value) => key in obj ? __defProp$8(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
4937
+ var __publicField$8 = (obj, key, value) => {
4938
+ __defNormalProp$8(obj, typeof key !== "symbol" ? key + "" : key, value);
4939
+ return value;
4940
+ };
4941
+ class RuleDetail extends RuleCreate {
4942
+ constructor(page) {
4943
+ super(page);
4944
+ this.page = page;
4945
+ __publicField$8(this, "shippingMethodAvailabilityRulesCard");
4946
+ __publicField$8(this, "shippingMethodAvailabilityRulesCardLink");
4947
+ __publicField$8(this, "shippingMethodAvailabilityRulesCardTable");
4948
+ __publicField$8(this, "shippingMethodAvailabilityRulesCardEmptyState");
4949
+ __publicField$8(this, "shippingMethodAvailabilityRulesCardSearchField");
4950
+ __publicField$8(this, "taxProviderRulesCard");
4951
+ __publicField$8(this, "taxProviderRulesCardEmptyState");
4952
+ __publicField$8(this, "paymentMethodsAvailabilityRulesCard");
4953
+ __publicField$8(this, "paymentMethodsAvailabilityRulesCardEmptyState");
4954
+ __publicField$8(this, "paymentMethodsAvailabilityRulesCardLink");
4955
+ __publicField$8(this, "promotionOrderRulesCard");
4956
+ __publicField$8(this, "promotionOrderRulesCardEmptyState");
4957
+ __publicField$8(this, "promotionCustomerRulesCard");
4958
+ __publicField$8(this, "promotionCustomerRulesCardEmptyState");
4959
+ __publicField$8(this, "promotionCartRulesCard");
4960
+ __publicField$8(this, "promotionCartRulesCardEmptyState");
4961
+ this.shippingMethodAvailabilityRulesCard = page.locator(".sw-settings-rule-detail-assignments__card-shipping_method_availability_rule");
4962
+ this.shippingMethodAvailabilityRulesCardLink = this.shippingMethodAvailabilityRulesCard.getByRole("link");
4963
+ this.shippingMethodAvailabilityRulesCardTable = page.locator(".sw-settings-rule-detail-assignments__entity-listing-shipping_method_availability_rule");
4964
+ this.shippingMethodAvailabilityRulesCardEmptyState = this.shippingMethodAvailabilityRulesCard.getByRole("alert");
4965
+ this.shippingMethodAvailabilityRulesCardSearchField = this.shippingMethodAvailabilityRulesCard.getByPlaceholder("Search...");
4966
+ this.taxProviderRulesCard = page.locator(".sw-settings-rule-detail-assignments__card-tax_provider");
4967
+ this.taxProviderRulesCardEmptyState = this.taxProviderRulesCard.getByRole("alert");
4968
+ this.paymentMethodsAvailabilityRulesCard = page.locator(".sw-settings-rule-detail-assignments__card-payment_method");
4969
+ this.paymentMethodsAvailabilityRulesCardEmptyState = this.paymentMethodsAvailabilityRulesCard.getByRole("alert");
4970
+ this.paymentMethodsAvailabilityRulesCardLink = page.locator(".sw-settings-rule-detail-assignments__card-payment_method").getByRole("link");
4971
+ this.promotionOrderRulesCard = page.locator(".sw-settings-rule-detail-assignments__card-promotion_order_rule");
4972
+ this.promotionOrderRulesCardEmptyState = this.promotionOrderRulesCard.getByRole("alert");
4973
+ this.promotionCustomerRulesCard = page.locator(".sw-settings-rule-detail-assignments__card-promotion_customer_rule");
4974
+ this.promotionCustomerRulesCardEmptyState = this.promotionCustomerRulesCard.getByRole("alert");
4975
+ this.promotionCartRulesCard = page.locator(".sw-settings-rule-detail-assignments__card-promotion_cart_rule");
4976
+ this.promotionCartRulesCardEmptyState = this.promotionCartRulesCard.getByRole("alert");
4977
+ }
4978
+ async getEntityCard(cardLocator) {
4979
+ return {
4980
+ addAssignmentButton: cardLocator.getByText("Add assignment")
4981
+ };
4982
+ }
4983
+ url(ruleId, tabName = "base") {
4984
+ return `#/sw/settings/rule/detail/${ruleId}/${tabName}`;
4985
+ }
4986
+ }
4987
+
4988
+ var __defProp$7 = Object.defineProperty;
4989
+ var __defNormalProp$7 = (obj, key, value) => key in obj ? __defProp$7(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
4990
+ var __publicField$7 = (obj, key, value) => {
4991
+ __defNormalProp$7(obj, typeof key !== "symbol" ? key + "" : key, value);
4992
+ return value;
4993
+ };
4994
+ class RuleListing {
4995
+ constructor(page) {
4996
+ this.page = page;
4997
+ __publicField$7(this, "createRuleButton");
4998
+ this.createRuleButton = page.getByText("Create rule");
4999
+ }
5000
+ url() {
5001
+ return `#/sw/settings/rule/index`;
5002
+ }
5003
+ }
5004
+
4866
5005
  var __defProp$6 = Object.defineProperty;
4867
5006
  var __defNormalProp$6 = (obj, key, value) => key in obj ? __defProp$6(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
4868
5007
  var __publicField$6 = (obj, key, value) => {
@@ -5225,15 +5364,18 @@ const AdminPageObjects = {
5225
5364
  Dashboard,
5226
5365
  DataSharing,
5227
5366
  ShippingListing,
5367
+ ShippingDetail,
5368
+ PaymentDetail,
5228
5369
  Categories,
5229
5370
  CategoryDetail,
5230
5371
  LandingPageCreate,
5231
5372
  LandingPageDetail,
5232
- RuleDetail,
5233
- RuleCreate,
5234
5373
  CustomFieldListing,
5235
5374
  CustomFieldCreate,
5236
5375
  CustomFieldDetail,
5376
+ RuleCreate,
5377
+ RuleDetail,
5378
+ RuleListing,
5237
5379
  ManufacturerCreate,
5238
5380
  ManufacturerDetail,
5239
5381
  ManufacturerListing,
@@ -5284,6 +5426,12 @@ const test$5 = test$e.extend({
5284
5426
  AdminShippingListing: async ({ AdminPage }, use) => {
5285
5427
  await use(new ShippingListing(AdminPage));
5286
5428
  },
5429
+ AdminShippingDetail: async ({ AdminPage }, use) => {
5430
+ await use(new ShippingDetail(AdminPage));
5431
+ },
5432
+ AdminPaymentDetail: async ({ AdminPage }, use) => {
5433
+ await use(new PaymentDetail(AdminPage));
5434
+ },
5287
5435
  AdminCategories: async ({ AdminPage }, use) => {
5288
5436
  await use(new Categories(AdminPage));
5289
5437
  },
@@ -5296,12 +5444,6 @@ const test$5 = test$e.extend({
5296
5444
  AdminLandingPageCreate: async ({ AdminPage }, use) => {
5297
5445
  await use(new LandingPageCreate(AdminPage));
5298
5446
  },
5299
- AdminRuleDetail: async ({ AdminPage }, use) => {
5300
- await use(new RuleDetail(AdminPage));
5301
- },
5302
- AdminRuleCreate: async ({ AdminPage }, use) => {
5303
- await use(new RuleCreate(AdminPage));
5304
- },
5305
5447
  AdminCustomFieldListing: async ({ AdminPage }, use) => {
5306
5448
  await use(new CustomFieldListing(AdminPage));
5307
5449
  },
@@ -5311,6 +5453,15 @@ const test$5 = test$e.extend({
5311
5453
  AdminCustomFieldDetail: async ({ AdminPage }, use) => {
5312
5454
  await use(new CustomFieldDetail(AdminPage));
5313
5455
  },
5456
+ AdminRuleCreate: async ({ AdminPage }, use) => {
5457
+ await use(new RuleCreate(AdminPage));
5458
+ },
5459
+ AdminRuleDetail: async ({ AdminPage }, use) => {
5460
+ await use(new RuleDetail(AdminPage));
5461
+ },
5462
+ AdminRuleListing: async ({ AdminPage }, use) => {
5463
+ await use(new RuleListing(AdminPage));
5464
+ },
5314
5465
  AdminManufacturerListing: async ({ AdminPage }, use) => {
5315
5466
  await use(new ManufacturerListing(AdminPage));
5316
5467
  },
@@ -5914,7 +6065,7 @@ const CreateLinkTypeCategory = test$e.extend({
5914
6065
  const task = (categoryData, categoryCustomizableLinkData, parentCategoryName) => {
5915
6066
  return async function CreateLinkTypeCategory2() {
5916
6067
  await AdminCategories.getTreeItemContextButton(parentCategoryName).click();
5917
- await AdminCategories.categoryMenuItemList.filter({ hasText: "New category after" }).click();
6068
+ await AdminCategories.page.getByText("New category after").click();
5918
6069
  await AdminCategories.createCategoryInput.fill(categoryData.name);
5919
6070
  await AdminCategories.confirmCategoryCreationButton.click();
5920
6071
  await AdminCategories.fadingBar.first().waitFor({ state: "hidden" });
@@ -5932,8 +6083,10 @@ const CreateLinkTypeCategory = test$e.extend({
5932
6083
  switch (categoryCustomizableLinkData.entity) {
5933
6084
  case "Category":
5934
6085
  await AdminCategories.categorySelectionList.click();
5935
- locator = await AdminCategories.getPopOverCategoryByName(categoryCustomizableLinkData.category);
5936
- await locator.getByRole("checkbox").click();
6086
+ if (categoryCustomizableLinkData.category != null) {
6087
+ locator = await AdminCategories.getPopOverCategoryByName(categoryCustomizableLinkData.category);
6088
+ await locator.getByRole("checkbox").click();
6089
+ }
5937
6090
  break;
5938
6091
  case "Product":
5939
6092
  await AdminCategories.productSelectionList.click();
@@ -6152,13 +6305,65 @@ const BulkEditCustomers = test$e.extend({
6152
6305
  }
6153
6306
  });
6154
6307
 
6308
+ var RuleType = /* @__PURE__ */ ((RuleType2) => {
6309
+ RuleType2["shippingAvailability"] = "shippingMethodAvailabilityRule";
6310
+ RuleType2["taxAvailability"] = "taxProviderAvailabilityRule";
6311
+ RuleType2["paymentAvailability"] = "paymentMethodAvailabilityRule";
6312
+ RuleType2["promotionOrder"] = "promotionOrderRule";
6313
+ RuleType2["promotionCustomer"] = "promotionCustomerRule";
6314
+ RuleType2["promotionCart"] = "promotionCartRule";
6315
+ return RuleType2;
6316
+ })(RuleType || {});
6317
+
6318
+ const AssignEntitiesToRule = test$e.extend({
6319
+ AssignEntitiesToRule: async ({ AdminRuleDetail }, use) => {
6320
+ const task = (assignableEntities) => {
6321
+ return async function AssignEntitiesToRule2() {
6322
+ async function entityAssignment(entityName, card) {
6323
+ const entityCard = await AdminRuleDetail.getEntityCard(card);
6324
+ await entityCard.addAssignmentButton.click();
6325
+ await AdminRuleDetail.page.locator(".sw-settings-rule-add-assignment-modal").getByPlaceholder("Search...").fill(entityName);
6326
+ await AdminRuleDetail.page.locator(".sw-data-grid__row").filter({ hasText: entityName }).getByRole("checkbox").click();
6327
+ await AdminRuleDetail.page.locator(".sw-button--primary").getByText("Add").click();
6328
+ }
6329
+ for (const entity of assignableEntities) {
6330
+ switch (entity.ruleType) {
6331
+ case RuleType.shippingAvailability:
6332
+ await entityAssignment(entity.name, AdminRuleDetail.shippingMethodAvailabilityRulesCard);
6333
+ break;
6334
+ case RuleType.taxAvailability:
6335
+ await entityAssignment(entity.name, AdminRuleDetail.taxProviderRulesCard);
6336
+ break;
6337
+ case RuleType.paymentAvailability:
6338
+ await entityAssignment(entity.name, AdminRuleDetail.paymentMethodsAvailabilityRulesCard);
6339
+ break;
6340
+ case RuleType.promotionOrder:
6341
+ await entityAssignment(entity.name, AdminRuleDetail.promotionOrderRulesCard);
6342
+ break;
6343
+ case RuleType.promotionCustomer:
6344
+ await entityAssignment(entity.name, AdminRuleDetail.promotionCustomerRulesCard);
6345
+ break;
6346
+ case RuleType.promotionCart:
6347
+ await entityAssignment(entity.name, AdminRuleDetail.promotionCartRulesCard);
6348
+ break;
6349
+ default:
6350
+ throw new Error(`Unknown rule type "${entity.ruleType}". Valid rule types: "${Object.values(RuleType).join('", "')}".`);
6351
+ }
6352
+ }
6353
+ };
6354
+ };
6355
+ await use(task);
6356
+ }
6357
+ });
6358
+
6155
6359
  const test$3 = mergeTests(
6156
6360
  SaveProduct,
6157
6361
  ExpectNotification,
6158
6362
  CreateLinkTypeCategory,
6159
6363
  SetSystemConfigValues,
6160
6364
  BulkEditProducts,
6161
- BulkEditCustomers
6365
+ BulkEditCustomers,
6366
+ AssignEntitiesToRule
6162
6367
  );
6163
6368
 
6164
6369
  const Login = test$e.extend({
@@ -6648,4 +6853,4 @@ const test = mergeTests(
6648
6853
  test$2
6649
6854
  );
6650
6855
 
6651
- export { AdminPageObjects, StorefrontPageObjects, TestDataService, createRandomImage, extractIdFromUrl, getCountryId, getCurrency, getDefaultShippingMethodId, getFlowId, getLanguageData, getMediaId, getOrderTransactionId, getPaymentMethodId, getPromotionWithDiscount, getSalutationId, getSnippetSetId, getStateMachineId, getStateMachineStateId, getTaxId, getThemeId, isSaaSInstance, isThemeCompiled, setOrderStatus, test };
6856
+ export { AdminPageObjects, RuleType, StorefrontPageObjects, TestDataService, createRandomImage, extractIdFromUrl, getCountryId, getCurrency, getDefaultShippingMethodId, getFlowId, getLanguageData, getMediaId, getOrderTransactionId, getPaymentMethodId, getPromotionWithDiscount, getSalutationId, getSnippetSetId, getStateMachineId, getStateMachineStateId, getTaxId, getThemeId, isSaaSInstance, isThemeCompiled, setOrderStatus, test };