@shopware-ag/acceptance-test-suite 10.0.0 → 10.1.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$T = Object.defineProperty;
389
+ var __defNormalProp$T = (obj, key, value) => key in obj ? __defProp$T(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
390
+ var __publicField$T = (obj, key, value) => {
391
+ __defNormalProp$T(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$T(this, "context");
397
+ __publicField$T(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$T(_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$S = Object.defineProperty;
500
+ var __defNormalProp$S = (obj, key, value) => key in obj ? __defProp$S(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
501
+ var __publicField$S = (obj, key, value) => {
502
+ __defNormalProp$S(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$S(this, "context");
508
+ __publicField$S(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$S(_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$R = Object.defineProperty;
574
+ var __defNormalProp$R = (obj, key, value) => key in obj ? __defProp$R(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
575
+ var __publicField$R = (obj, key, value) => {
576
+ __defNormalProp$R(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$R(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$Q = Object.defineProperty;
879
+ var __defNormalProp$Q = (obj, key, value) => key in obj ? __defProp$Q(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
880
+ var __publicField$Q = (obj, key, value) => {
881
+ __defNormalProp$Q(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$Q(this, "page");
887
+ __publicField$Q(this, "name");
888
+ __publicField$Q(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$P = Object.defineProperty;
938
+ var __defNormalProp$P = (obj, key, value) => key in obj ? __defProp$P(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
939
+ var __publicField$P = (obj, key, value) => {
940
+ __defNormalProp$P(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$P(this, "AdminApiClient");
946
+ __publicField$P(this, "IdProvider");
947
+ __publicField$P(this, "namePrefix", "Test-");
948
+ __publicField$P(this, "nameSuffix", "");
949
+ __publicField$P(this, "defaultSalesChannel");
950
+ __publicField$P(this, "defaultTaxId");
951
+ __publicField$P(this, "defaultCurrencyId");
952
+ __publicField$P(this, "defaultCategoryId");
953
+ __publicField$P(this, "defaultLanguageId");
954
+ __publicField$P(this, "defaultCountryId");
955
+ __publicField$P(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$P(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_currency", "sales_channel_country", "customer"]);
969
+ __publicField$P(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$P(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$P(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$P(this, "combineAll", (array) => {
988
988
  const result = [];
989
989
  const max = array.length - 1;
990
990
  const helper = (tmpArray, i) => {
@@ -1594,6 +1594,25 @@ class TestDataService {
1594
1594
  this.addCreatedRecord("custom_field_set", customFieldSet.id);
1595
1595
  return customFieldSet;
1596
1596
  }
1597
+ /**
1598
+ * Creates a new domain for a sales channel.
1599
+ *
1600
+ * @param overrides - Specific data overrides that will be applied to the sales channel domain data struct.
1601
+ */
1602
+ async createSalesChannelDomain(overrides = {}) {
1603
+ const salesChannelId = this.defaultSalesChannel.id;
1604
+ const currencyId = this.defaultCurrencyId;
1605
+ const languageId = this.defaultLanguageId;
1606
+ const snippetSetId = await getSnippetSetId("en-GB", this.AdminApiClient);
1607
+ const salesChannelDomainStruct = this.getSalesChannelDomainStruct(salesChannelId, currencyId, languageId, snippetSetId, overrides);
1608
+ const response = await this.AdminApiClient.post(`sales-channel-domain?_response=detail`, {
1609
+ data: salesChannelDomainStruct
1610
+ });
1611
+ expect(response.ok()).toBeTruthy();
1612
+ const { data: salesChannelDomain } = await response.json();
1613
+ this.addCreatedRecord("sales_channel_domain", salesChannelDomain.id);
1614
+ return salesChannelDomain;
1615
+ }
1597
1616
  /**
1598
1617
  * Assigns a media resource as the download of a digital product.
1599
1618
  *
@@ -2877,6 +2896,18 @@ class TestDataService {
2877
2896
  };
2878
2897
  return Object.assign({}, basicCustomField, overrides);
2879
2898
  }
2899
+ getSalesChannelDomainStruct(salesChannelId, currencyId, languageId, snippetSetId, overrides = {}) {
2900
+ const appUrl = process.env["APP_URL"];
2901
+ const baseUrl = `${appUrl}test-${this.IdProvider.getIdPair().uuid}/`;
2902
+ const basicSalesChannelDomain = {
2903
+ url: baseUrl,
2904
+ salesChannelId,
2905
+ currencyId,
2906
+ languageId,
2907
+ snippetSetId
2908
+ };
2909
+ return Object.assign({}, basicSalesChannelDomain, overrides);
2910
+ }
2880
2911
  }
2881
2912
 
2882
2913
  const test$8 = test$e.extend({
@@ -2895,16 +2926,16 @@ const test$8 = test$e.extend({
2895
2926
  }
2896
2927
  });
2897
2928
 
2898
- var __defProp$L = Object.defineProperty;
2899
- var __defNormalProp$L = (obj, key, value) => key in obj ? __defProp$L(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
2900
- var __publicField$L = (obj, key, value) => {
2901
- __defNormalProp$L(obj, typeof key !== "symbol" ? key + "" : key, value);
2929
+ var __defProp$O = Object.defineProperty;
2930
+ var __defNormalProp$O = (obj, key, value) => key in obj ? __defProp$O(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
2931
+ var __publicField$O = (obj, key, value) => {
2932
+ __defNormalProp$O(obj, typeof key !== "symbol" ? key + "" : key, value);
2902
2933
  return value;
2903
2934
  };
2904
2935
  class IdProvider {
2905
2936
  constructor(workerIndex, seed) {
2906
- __publicField$L(this, "workerIndex");
2907
- __publicField$L(this, "seed");
2937
+ __publicField$O(this, "workerIndex");
2938
+ __publicField$O(this, "seed");
2908
2939
  this.workerIndex = workerIndex;
2909
2940
  this.seed = seed;
2910
2941
  }
@@ -2978,36 +3009,40 @@ const test$7 = test$e.extend({
2978
3009
  ]
2979
3010
  });
2980
3011
 
2981
- var __defProp$K = Object.defineProperty;
2982
- var __defNormalProp$K = (obj, key, value) => key in obj ? __defProp$K(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
2983
- var __publicField$K = (obj, key, value) => {
2984
- __defNormalProp$K(obj, typeof key !== "symbol" ? key + "" : key, value);
3012
+ var __defProp$N = Object.defineProperty;
3013
+ var __defNormalProp$N = (obj, key, value) => key in obj ? __defProp$N(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
3014
+ var __publicField$N = (obj, key, value) => {
3015
+ __defNormalProp$N(obj, typeof key !== "symbol" ? key + "" : key, value);
2985
3016
  return value;
2986
3017
  };
2987
3018
  class Home {
2988
3019
  constructor(page) {
2989
3020
  this.page = page;
2990
- __publicField$K(this, "productImages");
2991
- __publicField$K(this, "productListItems");
2992
- __publicField$K(this, "languagesDropdown");
2993
- __publicField$K(this, "currenciesDropdown");
2994
- __publicField$K(this, "consentOnlyTechnicallyRequiredButton");
2995
- __publicField$K(this, "consentConfigureButton");
2996
- __publicField$K(this, "consentAcceptAllCookiesButton");
2997
- __publicField$K(this, "consentCookiePreferences");
2998
- __publicField$K(this, "consentCookiePermissionContent");
2999
- __publicField$K(this, "consentDialog");
3000
- __publicField$K(this, "consentDialogTechnicallyRequiredCheckbox");
3001
- __publicField$K(this, "consentDialogStatisticsCheckbox");
3002
- __publicField$K(this, "consentDialogMarketingdCheckbox");
3003
- __publicField$K(this, "consentDialogAcceptAllCookiesButton");
3004
- __publicField$K(this, "consentDialogSaveButton");
3005
- __publicField$K(this, "consentCookieBannerContainer");
3006
- __publicField$K(this, "offcanvasBackdrop");
3021
+ __publicField$N(this, "productImages");
3022
+ __publicField$N(this, "productListItems");
3023
+ __publicField$N(this, "languagesDropdown");
3024
+ __publicField$N(this, "languagesMenuOptions");
3025
+ __publicField$N(this, "currenciesDropdown");
3026
+ __publicField$N(this, "currenciesMenuOptions");
3027
+ __publicField$N(this, "consentOnlyTechnicallyRequiredButton");
3028
+ __publicField$N(this, "consentConfigureButton");
3029
+ __publicField$N(this, "consentAcceptAllCookiesButton");
3030
+ __publicField$N(this, "consentCookiePreferences");
3031
+ __publicField$N(this, "consentCookiePermissionContent");
3032
+ __publicField$N(this, "consentDialog");
3033
+ __publicField$N(this, "consentDialogTechnicallyRequiredCheckbox");
3034
+ __publicField$N(this, "consentDialogStatisticsCheckbox");
3035
+ __publicField$N(this, "consentDialogMarketingdCheckbox");
3036
+ __publicField$N(this, "consentDialogAcceptAllCookiesButton");
3037
+ __publicField$N(this, "consentDialogSaveButton");
3038
+ __publicField$N(this, "consentCookieBannerContainer");
3039
+ __publicField$N(this, "offcanvasBackdrop");
3007
3040
  this.productImages = page.locator(".product-image-link");
3008
3041
  this.productListItems = page.getByRole("listitem");
3009
- this.languagesDropdown = page.getByLabel("Shop settings").locator(".languages-menu");
3010
- this.currenciesDropdown = page.getByLabel("Shop settings").locator(".currencies-menu");
3042
+ this.languagesDropdown = page.locator(".top-bar-language").filter({ has: page.getByRole("button") });
3043
+ this.languagesMenuOptions = page.locator(".top-bar-language").filter({ has: page.getByRole("list") });
3044
+ this.currenciesDropdown = page.locator(".top-bar-currency").filter({ has: page.getByRole("button") });
3045
+ this.currenciesMenuOptions = page.locator(".top-bar-currency").filter({ has: page.getByRole("list") });
3011
3046
  this.consentCookieBannerContainer = page.locator(".cookie-permission-container");
3012
3047
  this.consentOnlyTechnicallyRequiredButton = page.getByRole("button", { name: "Only technically required" });
3013
3048
  this.consentConfigureButton = page.getByRole("button", { name: "Configure" });
@@ -3050,26 +3085,26 @@ class Home {
3050
3085
  }
3051
3086
  }
3052
3087
 
3053
- var __defProp$J = Object.defineProperty;
3054
- var __defNormalProp$J = (obj, key, value) => key in obj ? __defProp$J(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
3055
- var __publicField$J = (obj, key, value) => {
3056
- __defNormalProp$J(obj, typeof key !== "symbol" ? key + "" : key, value);
3088
+ var __defProp$M = Object.defineProperty;
3089
+ var __defNormalProp$M = (obj, key, value) => key in obj ? __defProp$M(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
3090
+ var __publicField$M = (obj, key, value) => {
3091
+ __defNormalProp$M(obj, typeof key !== "symbol" ? key + "" : key, value);
3057
3092
  return value;
3058
3093
  };
3059
3094
  let ProductDetail$1 = class ProductDetail {
3060
3095
  constructor(page) {
3061
3096
  this.page = page;
3062
- __publicField$J(this, "addToCartButton");
3063
- __publicField$J(this, "quantitySelect");
3064
- __publicField$J(this, "productSingleImage");
3065
- __publicField$J(this, "productSinglePrice");
3066
- __publicField$J(this, "productPriceRangesRow");
3067
- __publicField$J(this, "offCanvasCartTitle");
3068
- __publicField$J(this, "offCanvasCart");
3069
- __publicField$J(this, "offCanvasCartGoToCheckoutButton");
3070
- __publicField$J(this, "offCanvasLineItemImages");
3071
- __publicField$J(this, "offCanvasSummaryTotalPrice");
3072
- __publicField$J(this, "offCanvas");
3097
+ __publicField$M(this, "addToCartButton");
3098
+ __publicField$M(this, "quantitySelect");
3099
+ __publicField$M(this, "productSingleImage");
3100
+ __publicField$M(this, "productSinglePrice");
3101
+ __publicField$M(this, "productPriceRangesRow");
3102
+ __publicField$M(this, "offCanvasCartTitle");
3103
+ __publicField$M(this, "offCanvasCart");
3104
+ __publicField$M(this, "offCanvasCartGoToCheckoutButton");
3105
+ __publicField$M(this, "offCanvasLineItemImages");
3106
+ __publicField$M(this, "offCanvasSummaryTotalPrice");
3107
+ __publicField$M(this, "offCanvas");
3073
3108
  this.addToCartButton = page.getByRole("button", { name: "Add to shopping cart" });
3074
3109
  this.quantitySelect = page.getByLabel("Quantity", { exact: true });
3075
3110
  this.productSingleImage = page.locator(".gallery-slider-single-image");
@@ -3091,18 +3126,18 @@ let ProductDetail$1 = class ProductDetail {
3091
3126
  }
3092
3127
  };
3093
3128
 
3094
- var __defProp$I = Object.defineProperty;
3095
- var __defNormalProp$I = (obj, key, value) => key in obj ? __defProp$I(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
3096
- var __publicField$I = (obj, key, value) => {
3097
- __defNormalProp$I(obj, typeof key !== "symbol" ? key + "" : key, value);
3129
+ var __defProp$L = Object.defineProperty;
3130
+ var __defNormalProp$L = (obj, key, value) => key in obj ? __defProp$L(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
3131
+ var __publicField$L = (obj, key, value) => {
3132
+ __defNormalProp$L(obj, typeof key !== "symbol" ? key + "" : key, value);
3098
3133
  return value;
3099
3134
  };
3100
3135
  class Category {
3101
3136
  constructor(page) {
3102
3137
  this.page = page;
3103
- __publicField$I(this, "sortingSelect");
3104
- __publicField$I(this, "firstProductBuyButton");
3105
- __publicField$I(this, "noProductsFoundAlert");
3138
+ __publicField$L(this, "sortingSelect");
3139
+ __publicField$L(this, "firstProductBuyButton");
3140
+ __publicField$L(this, "noProductsFoundAlert");
3106
3141
  this.sortingSelect = page.getByLabel("Sorting");
3107
3142
  this.firstProductBuyButton = page.getByRole("button", { name: "Add to shopping cart" }).first();
3108
3143
  this.noProductsFoundAlert = page.getByText("No products found.");
@@ -3112,24 +3147,24 @@ class Category {
3112
3147
  }
3113
3148
  }
3114
3149
 
3115
- var __defProp$H = Object.defineProperty;
3116
- var __defNormalProp$H = (obj, key, value) => key in obj ? __defProp$H(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
3117
- var __publicField$H = (obj, key, value) => {
3118
- __defNormalProp$H(obj, typeof key !== "symbol" ? key + "" : key, value);
3150
+ var __defProp$K = Object.defineProperty;
3151
+ var __defNormalProp$K = (obj, key, value) => key in obj ? __defProp$K(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
3152
+ var __publicField$K = (obj, key, value) => {
3153
+ __defNormalProp$K(obj, typeof key !== "symbol" ? key + "" : key, value);
3119
3154
  return value;
3120
3155
  };
3121
3156
  class CheckoutCart {
3122
3157
  constructor(page) {
3123
3158
  this.page = page;
3124
- __publicField$H(this, "headline");
3125
- __publicField$H(this, "goToCheckoutButton");
3126
- __publicField$H(this, "enterPromoInput");
3127
- __publicField$H(this, "grandTotalPrice");
3128
- __publicField$H(this, "emptyCartAlert");
3129
- __publicField$H(this, "stockReachedAlert");
3130
- __publicField$H(this, "cartLineItemImages");
3131
- __publicField$H(this, "unitPriceInfo");
3132
- __publicField$H(this, "cartQuantityNumber");
3159
+ __publicField$K(this, "headline");
3160
+ __publicField$K(this, "goToCheckoutButton");
3161
+ __publicField$K(this, "enterPromoInput");
3162
+ __publicField$K(this, "grandTotalPrice");
3163
+ __publicField$K(this, "emptyCartAlert");
3164
+ __publicField$K(this, "stockReachedAlert");
3165
+ __publicField$K(this, "cartLineItemImages");
3166
+ __publicField$K(this, "unitPriceInfo");
3167
+ __publicField$K(this, "cartQuantityNumber");
3133
3168
  this.headline = page.getByRole("heading", { name: "Shopping cart" });
3134
3169
  this.goToCheckoutButton = page.getByRole("link", { name: "Go to checkout" });
3135
3170
  this.enterPromoInput = page.getByLabel("Promo code");
@@ -3170,25 +3205,25 @@ class CheckoutCart {
3170
3205
  }
3171
3206
  }
3172
3207
 
3173
- var __defProp$G = Object.defineProperty;
3174
- var __defNormalProp$G = (obj, key, value) => key in obj ? __defProp$G(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
3175
- var __publicField$G = (obj, key, value) => {
3176
- __defNormalProp$G(obj, typeof key !== "symbol" ? key + "" : key, value);
3208
+ var __defProp$J = Object.defineProperty;
3209
+ var __defNormalProp$J = (obj, key, value) => key in obj ? __defProp$J(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
3210
+ var __publicField$J = (obj, key, value) => {
3211
+ __defNormalProp$J(obj, typeof key !== "symbol" ? key + "" : key, value);
3177
3212
  return value;
3178
3213
  };
3179
3214
  class OffCanvasCart {
3180
3215
  constructor(page) {
3181
3216
  this.page = page;
3182
- __publicField$G(this, "headline");
3183
- __publicField$G(this, "itemCount");
3184
- __publicField$G(this, "goToCheckoutButton");
3185
- __publicField$G(this, "goToCartButton");
3186
- __publicField$G(this, "continueShoppingButton");
3187
- __publicField$G(this, "enterPromoInput");
3188
- __publicField$G(this, "submitDiscountButton");
3189
- __publicField$G(this, "subTotalPrice");
3190
- __publicField$G(this, "shippingCosts");
3191
- __publicField$G(this, "cartQuantityNumber");
3217
+ __publicField$J(this, "headline");
3218
+ __publicField$J(this, "itemCount");
3219
+ __publicField$J(this, "goToCheckoutButton");
3220
+ __publicField$J(this, "goToCartButton");
3221
+ __publicField$J(this, "continueShoppingButton");
3222
+ __publicField$J(this, "enterPromoInput");
3223
+ __publicField$J(this, "submitDiscountButton");
3224
+ __publicField$J(this, "subTotalPrice");
3225
+ __publicField$J(this, "shippingCosts");
3226
+ __publicField$J(this, "cartQuantityNumber");
3192
3227
  this.headline = page.getByRole("heading", { name: "Shopping cart" });
3193
3228
  this.itemCount = page.locator(".offcanvas-cart-header-count");
3194
3229
  this.goToCheckoutButton = page.getByRole("link", { name: "Go to checkout" });
@@ -3230,36 +3265,36 @@ class OffCanvasCart {
3230
3265
  }
3231
3266
  }
3232
3267
 
3233
- var __defProp$F = Object.defineProperty;
3234
- var __defNormalProp$F = (obj, key, value) => key in obj ? __defProp$F(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
3235
- var __publicField$F = (obj, key, value) => {
3236
- __defNormalProp$F(obj, typeof key !== "symbol" ? key + "" : key, value);
3268
+ var __defProp$I = Object.defineProperty;
3269
+ var __defNormalProp$I = (obj, key, value) => key in obj ? __defProp$I(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
3270
+ var __publicField$I = (obj, key, value) => {
3271
+ __defNormalProp$I(obj, typeof key !== "symbol" ? key + "" : key, value);
3237
3272
  return value;
3238
3273
  };
3239
3274
  class CheckoutConfirm {
3240
3275
  constructor(page) {
3241
3276
  this.page = page;
3242
- __publicField$F(this, "headline");
3243
- __publicField$F(this, "termsAndConditionsCheckbox");
3244
- __publicField$F(this, "immediateAccessToDigitalProductCheckbox");
3245
- __publicField$F(this, "grandTotalPrice");
3246
- __publicField$F(this, "taxPrice");
3247
- __publicField$F(this, "submitOrderButton");
3277
+ __publicField$I(this, "headline");
3278
+ __publicField$I(this, "termsAndConditionsCheckbox");
3279
+ __publicField$I(this, "immediateAccessToDigitalProductCheckbox");
3280
+ __publicField$I(this, "grandTotalPrice");
3281
+ __publicField$I(this, "taxPrice");
3282
+ __publicField$I(this, "submitOrderButton");
3248
3283
  /**
3249
3284
  * Payment options
3250
3285
  */
3251
- __publicField$F(this, "paymentCashOnDelivery");
3252
- __publicField$F(this, "paymentPaidInAdvance");
3253
- __publicField$F(this, "paymentInvoice");
3286
+ __publicField$I(this, "paymentCashOnDelivery");
3287
+ __publicField$I(this, "paymentPaidInAdvance");
3288
+ __publicField$I(this, "paymentInvoice");
3254
3289
  /**
3255
3290
  * Shipping options
3256
3291
  */
3257
- __publicField$F(this, "shippingStandard");
3258
- __publicField$F(this, "shippingExpress");
3292
+ __publicField$I(this, "shippingStandard");
3293
+ __publicField$I(this, "shippingExpress");
3259
3294
  /**
3260
3295
  * Product details
3261
3296
  */
3262
- __publicField$F(this, "cartLineItemImages");
3297
+ __publicField$I(this, "cartLineItemImages");
3263
3298
  this.headline = page.getByRole("heading", { name: "Complete order" });
3264
3299
  this.termsAndConditionsCheckbox = page.getByLabel("I have read and accepted the general terms and conditions.");
3265
3300
  this.immediateAccessToDigitalProductCheckbox = page.getByLabel("I want immediate access to the digital content and I acknowledge that thereby I waive my right to cancel.");
@@ -3278,21 +3313,21 @@ class CheckoutConfirm {
3278
3313
  }
3279
3314
  }
3280
3315
 
3281
- var __defProp$E = Object.defineProperty;
3282
- var __defNormalProp$E = (obj, key, value) => key in obj ? __defProp$E(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
3283
- var __publicField$E = (obj, key, value) => {
3284
- __defNormalProp$E(obj, typeof key !== "symbol" ? key + "" : key, value);
3316
+ var __defProp$H = Object.defineProperty;
3317
+ var __defNormalProp$H = (obj, key, value) => key in obj ? __defProp$H(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
3318
+ var __publicField$H = (obj, key, value) => {
3319
+ __defNormalProp$H(obj, typeof key !== "symbol" ? key + "" : key, value);
3285
3320
  return value;
3286
3321
  };
3287
3322
  class CheckoutFinish {
3288
3323
  constructor(page) {
3289
3324
  this.page = page;
3290
- __publicField$E(this, "headline");
3291
- __publicField$E(this, "orderNumberText");
3292
- __publicField$E(this, "grandTotalPrice");
3293
- __publicField$E(this, "taxPrice");
3294
- __publicField$E(this, "cartLineItemImages");
3295
- __publicField$E(this, "orderNumberRegex", /Your order number: #(\d+)/);
3325
+ __publicField$H(this, "headline");
3326
+ __publicField$H(this, "orderNumberText");
3327
+ __publicField$H(this, "grandTotalPrice");
3328
+ __publicField$H(this, "taxPrice");
3329
+ __publicField$H(this, "cartLineItemImages");
3330
+ __publicField$H(this, "orderNumberRegex", /Your order number: #(\d+)/);
3296
3331
  this.headline = page.getByRole("heading", { name: "Thank you for your order" });
3297
3332
  this.orderNumberText = page.getByText(this.orderNumberRegex);
3298
3333
  this.grandTotalPrice = page.locator('dt:has-text("Grand total") + dd');
@@ -3321,16 +3356,16 @@ class CheckoutFinish {
3321
3356
  }
3322
3357
  }
3323
3358
 
3324
- var __defProp$D = Object.defineProperty;
3325
- var __defNormalProp$D = (obj, key, value) => key in obj ? __defProp$D(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
3326
- var __publicField$D = (obj, key, value) => {
3327
- __defNormalProp$D(obj, typeof key !== "symbol" ? key + "" : key, value);
3359
+ var __defProp$G = Object.defineProperty;
3360
+ var __defNormalProp$G = (obj, key, value) => key in obj ? __defProp$G(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
3361
+ var __publicField$G = (obj, key, value) => {
3362
+ __defNormalProp$G(obj, typeof key !== "symbol" ? key + "" : key, value);
3328
3363
  return value;
3329
3364
  };
3330
3365
  class CheckoutRegister {
3331
3366
  constructor(page) {
3332
3367
  this.page = page;
3333
- __publicField$D(this, "cartLineItemImages");
3368
+ __publicField$G(this, "cartLineItemImages");
3334
3369
  this.cartLineItemImages = page.locator(".line-item-img-link");
3335
3370
  }
3336
3371
  url() {
@@ -3338,23 +3373,23 @@ class CheckoutRegister {
3338
3373
  }
3339
3374
  }
3340
3375
 
3341
- var __defProp$C = Object.defineProperty;
3342
- var __defNormalProp$C = (obj, key, value) => key in obj ? __defProp$C(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
3343
- var __publicField$C = (obj, key, value) => {
3344
- __defNormalProp$C(obj, typeof key !== "symbol" ? key + "" : key, value);
3376
+ var __defProp$F = Object.defineProperty;
3377
+ var __defNormalProp$F = (obj, key, value) => key in obj ? __defProp$F(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
3378
+ var __publicField$F = (obj, key, value) => {
3379
+ __defNormalProp$F(obj, typeof key !== "symbol" ? key + "" : key, value);
3345
3380
  return value;
3346
3381
  };
3347
3382
  class Account {
3348
3383
  constructor(page) {
3349
3384
  this.page = page;
3350
- __publicField$C(this, "headline");
3351
- __publicField$C(this, "personalDataCardTitle");
3352
- __publicField$C(this, "paymentMethodCardTitle");
3353
- __publicField$C(this, "billingAddressCardTitle");
3354
- __publicField$C(this, "shippingAddressCardTitle");
3355
- __publicField$C(this, "newsletterCheckbox");
3356
- __publicField$C(this, "newsletterRegistrationSuccessMessage");
3357
- __publicField$C(this, "customerGroupRequestMessage");
3385
+ __publicField$F(this, "headline");
3386
+ __publicField$F(this, "personalDataCardTitle");
3387
+ __publicField$F(this, "paymentMethodCardTitle");
3388
+ __publicField$F(this, "billingAddressCardTitle");
3389
+ __publicField$F(this, "shippingAddressCardTitle");
3390
+ __publicField$F(this, "newsletterCheckbox");
3391
+ __publicField$F(this, "newsletterRegistrationSuccessMessage");
3392
+ __publicField$F(this, "customerGroupRequestMessage");
3358
3393
  this.headline = page.getByRole("heading", { name: "Overview" });
3359
3394
  this.personalDataCardTitle = page.getByRole("heading", { name: "Personal data" });
3360
3395
  this.paymentMethodCardTitle = page.getByRole("heading", { name: "Default payment method" });
@@ -3372,37 +3407,37 @@ class Account {
3372
3407
  }
3373
3408
  }
3374
3409
 
3375
- var __defProp$B = Object.defineProperty;
3376
- var __defNormalProp$B = (obj, key, value) => key in obj ? __defProp$B(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
3377
- var __publicField$B = (obj, key, value) => {
3378
- __defNormalProp$B(obj, typeof key !== "symbol" ? key + "" : key, value);
3410
+ var __defProp$E = Object.defineProperty;
3411
+ var __defNormalProp$E = (obj, key, value) => key in obj ? __defProp$E(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
3412
+ var __publicField$E = (obj, key, value) => {
3413
+ __defNormalProp$E(obj, typeof key !== "symbol" ? key + "" : key, value);
3379
3414
  return value;
3380
3415
  };
3381
3416
  class AccountLogin {
3382
3417
  constructor(page) {
3383
3418
  this.page = page;
3384
- __publicField$B(this, "emailInput");
3385
- __publicField$B(this, "passwordInput");
3386
- __publicField$B(this, "loginButton");
3387
- __publicField$B(this, "logoutLink");
3388
- __publicField$B(this, "successAlert");
3419
+ __publicField$E(this, "emailInput");
3420
+ __publicField$E(this, "passwordInput");
3421
+ __publicField$E(this, "loginButton");
3422
+ __publicField$E(this, "logoutLink");
3423
+ __publicField$E(this, "successAlert");
3389
3424
  // Inputs for registration
3390
- __publicField$B(this, "personalFormArea");
3391
- __publicField$B(this, "billingAddressFormArea");
3392
- __publicField$B(this, "accountTypeSelect");
3393
- __publicField$B(this, "salutationSelect");
3394
- __publicField$B(this, "firstNameInput");
3395
- __publicField$B(this, "lastNameInput");
3396
- __publicField$B(this, "companyInput");
3397
- __publicField$B(this, "departmentInput");
3398
- __publicField$B(this, "vatRegNoInput");
3399
- __publicField$B(this, "registerEmailInput");
3400
- __publicField$B(this, "registerPasswordInput");
3401
- __publicField$B(this, "streetAddressInput");
3402
- __publicField$B(this, "cityInput");
3403
- __publicField$B(this, "countryInput");
3404
- __publicField$B(this, "postalCodeInput");
3405
- __publicField$B(this, "registerButton");
3425
+ __publicField$E(this, "personalFormArea");
3426
+ __publicField$E(this, "billingAddressFormArea");
3427
+ __publicField$E(this, "accountTypeSelect");
3428
+ __publicField$E(this, "salutationSelect");
3429
+ __publicField$E(this, "firstNameInput");
3430
+ __publicField$E(this, "lastNameInput");
3431
+ __publicField$E(this, "companyInput");
3432
+ __publicField$E(this, "departmentInput");
3433
+ __publicField$E(this, "vatRegNoInput");
3434
+ __publicField$E(this, "registerEmailInput");
3435
+ __publicField$E(this, "registerPasswordInput");
3436
+ __publicField$E(this, "streetAddressInput");
3437
+ __publicField$E(this, "cityInput");
3438
+ __publicField$E(this, "countryInput");
3439
+ __publicField$E(this, "postalCodeInput");
3440
+ __publicField$E(this, "registerButton");
3406
3441
  this.emailInput = page.getByLabel("Your email address");
3407
3442
  this.passwordInput = page.getByLabel("Your password");
3408
3443
  this.loginButton = page.getByRole("button", { name: "Log in" });
@@ -3431,29 +3466,29 @@ class AccountLogin {
3431
3466
  }
3432
3467
  }
3433
3468
 
3434
- var __defProp$A = Object.defineProperty;
3435
- var __defNormalProp$A = (obj, key, value) => key in obj ? __defProp$A(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
3436
- var __publicField$A = (obj, key, value) => {
3437
- __defNormalProp$A(obj, typeof key !== "symbol" ? key + "" : key, value);
3469
+ var __defProp$D = Object.defineProperty;
3470
+ var __defNormalProp$D = (obj, key, value) => key in obj ? __defProp$D(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
3471
+ var __publicField$D = (obj, key, value) => {
3472
+ __defNormalProp$D(obj, typeof key !== "symbol" ? key + "" : key, value);
3438
3473
  return value;
3439
3474
  };
3440
3475
  class AccountProfile {
3441
3476
  constructor(page) {
3442
3477
  this.page = page;
3443
- __publicField$A(this, "salutationSelect");
3444
- __publicField$A(this, "firstNameInput");
3445
- __publicField$A(this, "lastNameInput");
3446
- __publicField$A(this, "saveProfileButton");
3447
- __publicField$A(this, "changeEmailButton");
3448
- __publicField$A(this, "emailAddressInput");
3449
- __publicField$A(this, "emailAddressConfirmInput");
3450
- __publicField$A(this, "emailConfirmPasswordInput");
3451
- __publicField$A(this, "saveEmailAddressButton");
3452
- __publicField$A(this, "changePasswordButton");
3453
- __publicField$A(this, "newPasswordInput");
3454
- __publicField$A(this, "newPasswordConfirmInput");
3455
- __publicField$A(this, "currentPasswordInput");
3456
- __publicField$A(this, "saveNewPasswordButton");
3478
+ __publicField$D(this, "salutationSelect");
3479
+ __publicField$D(this, "firstNameInput");
3480
+ __publicField$D(this, "lastNameInput");
3481
+ __publicField$D(this, "saveProfileButton");
3482
+ __publicField$D(this, "changeEmailButton");
3483
+ __publicField$D(this, "emailAddressInput");
3484
+ __publicField$D(this, "emailAddressConfirmInput");
3485
+ __publicField$D(this, "emailConfirmPasswordInput");
3486
+ __publicField$D(this, "saveEmailAddressButton");
3487
+ __publicField$D(this, "changePasswordButton");
3488
+ __publicField$D(this, "newPasswordInput");
3489
+ __publicField$D(this, "newPasswordConfirmInput");
3490
+ __publicField$D(this, "currentPasswordInput");
3491
+ __publicField$D(this, "saveNewPasswordButton");
3457
3492
  this.salutationSelect = page.getByLabel("Salutation");
3458
3493
  this.firstNameInput = page.getByPlaceholder("Enter first name...");
3459
3494
  this.lastNameInput = page.getByPlaceholder("Enter last name...");
@@ -3474,22 +3509,22 @@ class AccountProfile {
3474
3509
  }
3475
3510
  }
3476
3511
 
3477
- var __defProp$z = Object.defineProperty;
3478
- var __defNormalProp$z = (obj, key, value) => key in obj ? __defProp$z(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
3479
- var __publicField$z = (obj, key, value) => {
3480
- __defNormalProp$z(obj, typeof key !== "symbol" ? key + "" : key, value);
3512
+ var __defProp$C = Object.defineProperty;
3513
+ var __defNormalProp$C = (obj, key, value) => key in obj ? __defProp$C(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
3514
+ var __publicField$C = (obj, key, value) => {
3515
+ __defNormalProp$C(obj, typeof key !== "symbol" ? key + "" : key, value);
3481
3516
  return value;
3482
3517
  };
3483
3518
  class AccountOrder {
3484
3519
  constructor(page) {
3485
3520
  this.page = page;
3486
- __publicField$z(this, "cartLineItemImages");
3487
- __publicField$z(this, "orderExpandButton");
3488
- __publicField$z(this, "digitalProductDownloadButton");
3489
- __publicField$z(this, "dialogOrderCancel");
3490
- __publicField$z(this, "dialogOrderCancelButton");
3491
- __publicField$z(this, "dialogBackButton");
3492
- __publicField$z(this, "getViewSubscriptionLink", (orderNumber) => {
3521
+ __publicField$C(this, "cartLineItemImages");
3522
+ __publicField$C(this, "orderExpandButton");
3523
+ __publicField$C(this, "digitalProductDownloadButton");
3524
+ __publicField$C(this, "dialogOrderCancel");
3525
+ __publicField$C(this, "dialogOrderCancelButton");
3526
+ __publicField$C(this, "dialogBackButton");
3527
+ __publicField$C(this, "getViewSubscriptionLink", (orderNumber) => {
3493
3528
  const orderContainer = this.page.locator(".order-item-header", { hasText: `Order Number: ${orderNumber}` });
3494
3529
  return orderContainer.getByText("View Subscription");
3495
3530
  });
@@ -3534,20 +3569,20 @@ class AccountOrder {
3534
3569
  }
3535
3570
  }
3536
3571
 
3537
- var __defProp$y = Object.defineProperty;
3538
- var __defNormalProp$y = (obj, key, value) => key in obj ? __defProp$y(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
3539
- var __publicField$y = (obj, key, value) => {
3540
- __defNormalProp$y(obj, typeof key !== "symbol" ? key + "" : key, value);
3572
+ var __defProp$B = Object.defineProperty;
3573
+ var __defNormalProp$B = (obj, key, value) => key in obj ? __defProp$B(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
3574
+ var __publicField$B = (obj, key, value) => {
3575
+ __defNormalProp$B(obj, typeof key !== "symbol" ? key + "" : key, value);
3541
3576
  return value;
3542
3577
  };
3543
3578
  class AccountAddresses {
3544
3579
  constructor(page) {
3545
3580
  this.page = page;
3546
- __publicField$y(this, "addNewAddressButton");
3547
- __publicField$y(this, "editBillingAddressButton");
3548
- __publicField$y(this, "editShippingAddressButton");
3549
- __publicField$y(this, "useDefaultBillingAddressButton");
3550
- __publicField$y(this, "useDefaultShippingAddressButton");
3581
+ __publicField$B(this, "addNewAddressButton");
3582
+ __publicField$B(this, "editBillingAddressButton");
3583
+ __publicField$B(this, "editShippingAddressButton");
3584
+ __publicField$B(this, "useDefaultBillingAddressButton");
3585
+ __publicField$B(this, "useDefaultShippingAddressButton");
3551
3586
  this.addNewAddressButton = page.getByRole("link", { name: /Add (new )?address/ });
3552
3587
  this.editBillingAddressButton = page.getByRole("link", { name: "Edit address" }).first();
3553
3588
  this.editShippingAddressButton = page.getByRole("link", { name: "Edit address" }).nth(1);
@@ -3559,19 +3594,19 @@ class AccountAddresses {
3559
3594
  }
3560
3595
  }
3561
3596
 
3562
- var __defProp$x = Object.defineProperty;
3563
- var __defNormalProp$x = (obj, key, value) => key in obj ? __defProp$x(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
3564
- var __publicField$x = (obj, key, value) => {
3565
- __defNormalProp$x(obj, typeof key !== "symbol" ? key + "" : key, value);
3597
+ var __defProp$A = Object.defineProperty;
3598
+ var __defNormalProp$A = (obj, key, value) => key in obj ? __defProp$A(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
3599
+ var __publicField$A = (obj, key, value) => {
3600
+ __defNormalProp$A(obj, typeof key !== "symbol" ? key + "" : key, value);
3566
3601
  return value;
3567
3602
  };
3568
3603
  class AccountPayment {
3569
3604
  constructor(page) {
3570
3605
  this.page = page;
3571
- __publicField$x(this, "cashOnDeliveryOption");
3572
- __publicField$x(this, "paidInAdvanceOption");
3573
- __publicField$x(this, "invoiceOption");
3574
- __publicField$x(this, "changeDefaultPaymentButton");
3606
+ __publicField$A(this, "cashOnDeliveryOption");
3607
+ __publicField$A(this, "paidInAdvanceOption");
3608
+ __publicField$A(this, "invoiceOption");
3609
+ __publicField$A(this, "changeDefaultPaymentButton");
3575
3610
  this.cashOnDeliveryOption = page.getByLabel("Cash on delivery");
3576
3611
  this.paidInAdvanceOption = page.getByLabel("Paid in advance");
3577
3612
  this.invoiceOption = page.getByLabel("Invoice");
@@ -3582,17 +3617,17 @@ class AccountPayment {
3582
3617
  }
3583
3618
  }
3584
3619
 
3585
- var __defProp$w = Object.defineProperty;
3586
- var __defNormalProp$w = (obj, key, value) => key in obj ? __defProp$w(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
3587
- var __publicField$w = (obj, key, value) => {
3588
- __defNormalProp$w(obj, typeof key !== "symbol" ? key + "" : key, value);
3620
+ var __defProp$z = Object.defineProperty;
3621
+ var __defNormalProp$z = (obj, key, value) => key in obj ? __defProp$z(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
3622
+ var __publicField$z = (obj, key, value) => {
3623
+ __defNormalProp$z(obj, typeof key !== "symbol" ? key + "" : key, value);
3589
3624
  return value;
3590
3625
  };
3591
3626
  class Search {
3592
3627
  constructor(page) {
3593
3628
  this.page = page;
3594
- __publicField$w(this, "headline");
3595
- __publicField$w(this, "productImages");
3629
+ __publicField$z(this, "headline");
3630
+ __publicField$z(this, "productImages");
3596
3631
  this.headline = page.locator("h1.search-headline");
3597
3632
  this.productImages = page.locator(".product-image-link");
3598
3633
  }
@@ -3601,16 +3636,16 @@ class Search {
3601
3636
  }
3602
3637
  }
3603
3638
 
3604
- var __defProp$v = Object.defineProperty;
3605
- var __defNormalProp$v = (obj, key, value) => key in obj ? __defProp$v(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
3606
- var __publicField$v = (obj, key, value) => {
3607
- __defNormalProp$v(obj, typeof key !== "symbol" ? key + "" : key, value);
3639
+ var __defProp$y = Object.defineProperty;
3640
+ var __defNormalProp$y = (obj, key, value) => key in obj ? __defProp$y(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
3641
+ var __publicField$y = (obj, key, value) => {
3642
+ __defNormalProp$y(obj, typeof key !== "symbol" ? key + "" : key, value);
3608
3643
  return value;
3609
3644
  };
3610
3645
  class SearchSuggest {
3611
3646
  constructor(page) {
3612
3647
  this.page = page;
3613
- __publicField$v(this, "searchSuggestLineItemImages");
3648
+ __publicField$y(this, "searchSuggestLineItemImages");
3614
3649
  this.searchSuggestLineItemImages = page.locator(".search-suggest-product-image-container");
3615
3650
  }
3616
3651
  url(searchTerm) {
@@ -3628,31 +3663,31 @@ class CustomRegister extends AccountLogin {
3628
3663
  }
3629
3664
  }
3630
3665
 
3631
- var __defProp$u = Object.defineProperty;
3632
- var __defNormalProp$u = (obj, key, value) => key in obj ? __defProp$u(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
3633
- var __publicField$u = (obj, key, value) => {
3634
- __defNormalProp$u(obj, typeof key !== "symbol" ? key + "" : key, value);
3666
+ var __defProp$x = Object.defineProperty;
3667
+ var __defNormalProp$x = (obj, key, value) => key in obj ? __defProp$x(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
3668
+ var __publicField$x = (obj, key, value) => {
3669
+ __defNormalProp$x(obj, typeof key !== "symbol" ? key + "" : key, value);
3635
3670
  return value;
3636
3671
  };
3637
3672
  class CheckoutOrderEdit {
3638
3673
  constructor(page) {
3639
3674
  this.page = page;
3640
- __publicField$u(this, "completePaymentButton");
3641
- __publicField$u(this, "orderCancelButton");
3642
- __publicField$u(this, "dialogOrderCancel");
3643
- __publicField$u(this, "dialogOrderCancelButton");
3644
- __publicField$u(this, "dialogBackButton");
3675
+ __publicField$x(this, "completePaymentButton");
3676
+ __publicField$x(this, "orderCancelButton");
3677
+ __publicField$x(this, "dialogOrderCancel");
3678
+ __publicField$x(this, "dialogOrderCancelButton");
3679
+ __publicField$x(this, "dialogBackButton");
3645
3680
  /**
3646
3681
  * Payment options
3647
3682
  */
3648
- __publicField$u(this, "paymentCashOnDelivery");
3649
- __publicField$u(this, "paymentPaidInAdvance");
3650
- __publicField$u(this, "paymentInvoice");
3683
+ __publicField$x(this, "paymentCashOnDelivery");
3684
+ __publicField$x(this, "paymentPaidInAdvance");
3685
+ __publicField$x(this, "paymentInvoice");
3651
3686
  /**
3652
3687
  * Shipping options
3653
3688
  */
3654
- __publicField$u(this, "shippingStandard");
3655
- __publicField$u(this, "shippingExpress");
3689
+ __publicField$x(this, "shippingStandard");
3690
+ __publicField$x(this, "shippingExpress");
3656
3691
  this.completePaymentButton = page.getByRole("button", { name: "Complete payment" });
3657
3692
  this.orderCancelButton = page.getByRole("button", { name: "Cancel order" });
3658
3693
  this.dialogOrderCancel = page.getByRole("dialog", { name: "Cancel order" });
@@ -3746,10 +3781,10 @@ const test$6 = test$e.extend({
3746
3781
  }
3747
3782
  });
3748
3783
 
3749
- var __defProp$t = Object.defineProperty;
3750
- var __defNormalProp$t = (obj, key, value) => key in obj ? __defProp$t(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
3751
- var __publicField$t = (obj, key, value) => {
3752
- __defNormalProp$t(obj, typeof key !== "symbol" ? key + "" : key, value);
3784
+ var __defProp$w = Object.defineProperty;
3785
+ var __defNormalProp$w = (obj, key, value) => key in obj ? __defProp$w(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
3786
+ var __publicField$w = (obj, key, value) => {
3787
+ __defNormalProp$w(obj, typeof key !== "symbol" ? key + "" : key, value);
3753
3788
  return value;
3754
3789
  };
3755
3790
  class ProductDetail {
@@ -3758,67 +3793,67 @@ class ProductDetail {
3758
3793
  /**
3759
3794
  * Save interactions
3760
3795
  */
3761
- __publicField$t(this, "savePhysicalProductButton");
3762
- __publicField$t(this, "saveButtonLoadingSpinner");
3763
- __publicField$t(this, "saveButtonCheckMark");
3796
+ __publicField$w(this, "savePhysicalProductButton");
3797
+ __publicField$w(this, "saveButtonLoadingSpinner");
3798
+ __publicField$w(this, "saveButtonCheckMark");
3764
3799
  /**
3765
3800
  * General Info
3766
3801
  */
3767
- __publicField$t(this, "manufacturerDropdownText");
3802
+ __publicField$w(this, "manufacturerDropdownText");
3768
3803
  /**
3769
3804
  * Prices
3770
3805
  */
3771
- __publicField$t(this, "priceGrossInput");
3806
+ __publicField$w(this, "priceGrossInput");
3772
3807
  /**
3773
3808
  * Deliverability
3774
3809
  */
3775
- __publicField$t(this, "stockInput");
3776
- __publicField$t(this, "restockTimeInput");
3810
+ __publicField$w(this, "stockInput");
3811
+ __publicField$w(this, "restockTimeInput");
3777
3812
  /**
3778
3813
  * Visibility
3779
3814
  */
3780
- __publicField$t(this, "activeForAllSalesChannelsToggle");
3781
- __publicField$t(this, "tagsInput");
3782
- __publicField$t(this, "saleChannelsInput");
3815
+ __publicField$w(this, "activeForAllSalesChannelsToggle");
3816
+ __publicField$w(this, "tagsInput");
3817
+ __publicField$w(this, "saleChannelsInput");
3783
3818
  /**
3784
3819
  * Labelling
3785
3820
  */
3786
- __publicField$t(this, "releaseDateInput");
3821
+ __publicField$w(this, "releaseDateInput");
3787
3822
  /**
3788
3823
  * Media Upload interactions
3789
3824
  */
3790
- __publicField$t(this, "uploadMediaButton");
3791
- __publicField$t(this, "coverImage");
3792
- __publicField$t(this, "productImage");
3825
+ __publicField$w(this, "uploadMediaButton");
3826
+ __publicField$w(this, "coverImage");
3827
+ __publicField$w(this, "productImage");
3793
3828
  /**
3794
3829
  * Tabs
3795
3830
  */
3796
- __publicField$t(this, "variantsTabLink");
3797
- __publicField$t(this, "specificationsTabLink");
3831
+ __publicField$w(this, "variantsTabLink");
3832
+ __publicField$w(this, "specificationsTabLink");
3798
3833
  /**
3799
3834
  * Variants Generation
3800
3835
  */
3801
- __publicField$t(this, "generateVariantsButton");
3802
- __publicField$t(this, "variantsModal");
3803
- __publicField$t(this, "variantsModalHeadline");
3804
- __publicField$t(this, "variantsNextButton");
3805
- __publicField$t(this, "variantsSaveButton");
3836
+ __publicField$w(this, "generateVariantsButton");
3837
+ __publicField$w(this, "variantsModal");
3838
+ __publicField$w(this, "variantsModalHeadline");
3839
+ __publicField$w(this, "variantsNextButton");
3840
+ __publicField$w(this, "variantsSaveButton");
3806
3841
  /**
3807
3842
  * Property Selection
3808
3843
  */
3809
- __publicField$t(this, "propertyGroupColor");
3810
- __publicField$t(this, "propertyGroupSize");
3811
- __publicField$t(this, "propertyOptionGrid");
3812
- __publicField$t(this, "propertyOptionColorBlue");
3813
- __publicField$t(this, "propertyOptionColorRed");
3814
- __publicField$t(this, "propertyOptionColorGreen");
3815
- __publicField$t(this, "propertyOptionSizeSmall");
3816
- __publicField$t(this, "propertyOptionSizeMedium");
3817
- __publicField$t(this, "propertyOptionSizeLarge");
3844
+ __publicField$w(this, "propertyGroupColor");
3845
+ __publicField$w(this, "propertyGroupSize");
3846
+ __publicField$w(this, "propertyOptionGrid");
3847
+ __publicField$w(this, "propertyOptionColorBlue");
3848
+ __publicField$w(this, "propertyOptionColorRed");
3849
+ __publicField$w(this, "propertyOptionColorGreen");
3850
+ __publicField$w(this, "propertyOptionSizeSmall");
3851
+ __publicField$w(this, "propertyOptionSizeMedium");
3852
+ __publicField$w(this, "propertyOptionSizeLarge");
3818
3853
  /**
3819
3854
  * Cards
3820
3855
  */
3821
- __publicField$t(this, "customFieldCard");
3856
+ __publicField$w(this, "customFieldCard");
3822
3857
  this.savePhysicalProductButton = page.getByRole("button", { name: "Save" });
3823
3858
  this.saveButtonCheckMark = page.locator(".icon--regular-checkmark-xs");
3824
3859
  this.saveButtonLoadingSpinner = page.locator("sw-loader");
@@ -3865,18 +3900,18 @@ class ProductDetail {
3865
3900
  }
3866
3901
  }
3867
3902
 
3868
- var __defProp$s = Object.defineProperty;
3869
- var __defNormalProp$s = (obj, key, value) => key in obj ? __defProp$s(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
3870
- var __publicField$s = (obj, key, value) => {
3871
- __defNormalProp$s(obj, typeof key !== "symbol" ? key + "" : key, value);
3903
+ var __defProp$v = Object.defineProperty;
3904
+ var __defNormalProp$v = (obj, key, value) => key in obj ? __defProp$v(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
3905
+ var __publicField$v = (obj, key, value) => {
3906
+ __defNormalProp$v(obj, typeof key !== "symbol" ? key + "" : key, value);
3872
3907
  return value;
3873
3908
  };
3874
3909
  class OrderDetail {
3875
3910
  constructor(page) {
3876
3911
  this.page = page;
3877
- __publicField$s(this, "saveButton");
3878
- __publicField$s(this, "dataGridContextButton");
3879
- __publicField$s(this, "orderTag");
3912
+ __publicField$v(this, "saveButton");
3913
+ __publicField$v(this, "dataGridContextButton");
3914
+ __publicField$v(this, "orderTag");
3880
3915
  this.saveButton = page.locator(".sw-order-detail__smart-bar-save-button");
3881
3916
  this.dataGridContextButton = page.locator(".sw-data-grid__actions-menu").and(page.getByRole("button"));
3882
3917
  this.orderTag = page.locator(".sw-select-selection-list__item");
@@ -3886,24 +3921,24 @@ class OrderDetail {
3886
3921
  }
3887
3922
  }
3888
3923
 
3889
- var __defProp$r = Object.defineProperty;
3890
- var __defNormalProp$r = (obj, key, value) => key in obj ? __defProp$r(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
3891
- var __publicField$r = (obj, key, value) => {
3892
- __defNormalProp$r(obj, typeof key !== "symbol" ? key + "" : key, value);
3924
+ var __defProp$u = Object.defineProperty;
3925
+ var __defNormalProp$u = (obj, key, value) => key in obj ? __defProp$u(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
3926
+ var __publicField$u = (obj, key, value) => {
3927
+ __defNormalProp$u(obj, typeof key !== "symbol" ? key + "" : key, value);
3893
3928
  return value;
3894
3929
  };
3895
3930
  class CustomerListing {
3896
3931
  constructor(page) {
3897
3932
  this.page = page;
3898
- __publicField$r(this, "headline");
3899
- __publicField$r(this, "addCustomerButton");
3900
- __publicField$r(this, "bulkEditButton");
3901
- __publicField$r(this, "deleteButton");
3933
+ __publicField$u(this, "headline");
3934
+ __publicField$u(this, "addCustomerButton");
3935
+ __publicField$u(this, "bulkEditButton");
3936
+ __publicField$u(this, "deleteButton");
3902
3937
  //Customer Bulk Edit Modal
3903
- __publicField$r(this, "bulkEditModal");
3904
- __publicField$r(this, "startBulkEditButton");
3905
- __publicField$r(this, "cancelButton");
3906
- __publicField$r(this, "modalHeaderCheckbox");
3938
+ __publicField$u(this, "bulkEditModal");
3939
+ __publicField$u(this, "startBulkEditButton");
3940
+ __publicField$u(this, "cancelButton");
3941
+ __publicField$u(this, "modalHeaderCheckbox");
3907
3942
  this.headline = page.getByRole("heading", { name: "Customers" });
3908
3943
  this.addCustomerButton = page.locator(".sw-customer-list__button-create");
3909
3944
  this.bulkEditButton = page.getByRole("button", { name: "Bulk edit" });
@@ -3964,26 +3999,26 @@ class CustomerListing {
3964
3999
  }
3965
4000
  }
3966
4001
 
3967
- var __defProp$q = Object.defineProperty;
3968
- var __defNormalProp$q = (obj, key, value) => key in obj ? __defProp$q(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
3969
- var __publicField$q = (obj, key, value) => {
3970
- __defNormalProp$q(obj, typeof key !== "symbol" ? key + "" : key, value);
4002
+ var __defProp$t = Object.defineProperty;
4003
+ var __defNormalProp$t = (obj, key, value) => key in obj ? __defProp$t(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
4004
+ var __publicField$t = (obj, key, value) => {
4005
+ __defNormalProp$t(obj, typeof key !== "symbol" ? key + "" : key, value);
3971
4006
  return value;
3972
4007
  };
3973
4008
  class CustomerDetail {
3974
4009
  constructor(page) {
3975
4010
  this.page = page;
3976
- __publicField$q(this, "editButton");
3977
- __publicField$q(this, "generalTab");
3978
- __publicField$q(this, "accountCard");
3979
- __publicField$q(this, "customFieldCard");
3980
- __publicField$q(this, "customFieldSetTabs");
3981
- __publicField$q(this, "customFieldSetTabCustomContent");
3982
- __publicField$q(this, "customerGroupRequestMessage");
3983
- __publicField$q(this, "customerGroupAcceptButton");
3984
- __publicField$q(this, "customerGroupDeclineButton");
3985
- __publicField$q(this, "tagList");
3986
- __publicField$q(this, "tagItems");
4011
+ __publicField$t(this, "editButton");
4012
+ __publicField$t(this, "generalTab");
4013
+ __publicField$t(this, "accountCard");
4014
+ __publicField$t(this, "customFieldCard");
4015
+ __publicField$t(this, "customFieldSetTabs");
4016
+ __publicField$t(this, "customFieldSetTabCustomContent");
4017
+ __publicField$t(this, "customerGroupRequestMessage");
4018
+ __publicField$t(this, "customerGroupAcceptButton");
4019
+ __publicField$t(this, "customerGroupDeclineButton");
4020
+ __publicField$t(this, "tagList");
4021
+ __publicField$t(this, "tagItems");
3987
4022
  this.editButton = page.getByRole("button", { name: "Edit" });
3988
4023
  this.generalTab = page.getByRole("link", { name: "General" });
3989
4024
  this.accountCard = page.locator(".sw-customer-card");
@@ -4031,17 +4066,17 @@ class CustomerDetail {
4031
4066
  }
4032
4067
  }
4033
4068
 
4034
- var __defProp$p = Object.defineProperty;
4035
- var __defNormalProp$p = (obj, key, value) => key in obj ? __defProp$p(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
4036
- var __publicField$p = (obj, key, value) => {
4037
- __defNormalProp$p(obj, typeof key !== "symbol" ? key + "" : key, value);
4069
+ var __defProp$s = Object.defineProperty;
4070
+ var __defNormalProp$s = (obj, key, value) => key in obj ? __defProp$s(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
4071
+ var __publicField$s = (obj, key, value) => {
4072
+ __defNormalProp$s(obj, typeof key !== "symbol" ? key + "" : key, value);
4038
4073
  return value;
4039
4074
  };
4040
4075
  class CustomerGroupListing {
4041
4076
  constructor(page) {
4042
4077
  this.page = page;
4043
- __publicField$p(this, "headline");
4044
- __publicField$p(this, "addCustomerGroupButton");
4078
+ __publicField$s(this, "headline");
4079
+ __publicField$s(this, "addCustomerGroupButton");
4045
4080
  this.headline = page.getByRole("heading", { name: "Customer groups" });
4046
4081
  this.addCustomerGroupButton = page.locator(".sw-settings-customer-group-list__create");
4047
4082
  }
@@ -4063,29 +4098,29 @@ class CustomerGroupListing {
4063
4098
  }
4064
4099
  }
4065
4100
 
4066
- var __defProp$o = Object.defineProperty;
4067
- var __defNormalProp$o = (obj, key, value) => key in obj ? __defProp$o(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
4068
- var __publicField$o = (obj, key, value) => {
4069
- __defNormalProp$o(obj, typeof key !== "symbol" ? key + "" : key, value);
4101
+ var __defProp$r = Object.defineProperty;
4102
+ var __defNormalProp$r = (obj, key, value) => key in obj ? __defProp$r(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
4103
+ var __publicField$r = (obj, key, value) => {
4104
+ __defNormalProp$r(obj, typeof key !== "symbol" ? key + "" : key, value);
4070
4105
  return value;
4071
4106
  };
4072
4107
  class CustomerGroupCreate {
4073
4108
  constructor(page) {
4074
4109
  this.page = page;
4075
- __publicField$o(this, "headline");
4076
- __publicField$o(this, "saveButton");
4077
- __publicField$o(this, "cancelButton");
4078
- __publicField$o(this, "cardTitle");
4079
- __publicField$o(this, "customerGroupNameField");
4080
- __publicField$o(this, "customerGroupGrossTaxDisplay");
4081
- __publicField$o(this, "customerGroupNetTaxDisplay");
4082
- __publicField$o(this, "customSignupFormToggle");
4083
- __publicField$o(this, "signupFormTitle");
4084
- __publicField$o(this, "signupFormIntroduction");
4085
- __publicField$o(this, "signupFormSeoDescription");
4086
- __publicField$o(this, "signupFormCompanySignupToggle");
4087
- __publicField$o(this, "customerGroupSaleschannelSelection");
4088
- __publicField$o(this, "customerGroupSaleschannelResultList");
4110
+ __publicField$r(this, "headline");
4111
+ __publicField$r(this, "saveButton");
4112
+ __publicField$r(this, "cancelButton");
4113
+ __publicField$r(this, "cardTitle");
4114
+ __publicField$r(this, "customerGroupNameField");
4115
+ __publicField$r(this, "customerGroupGrossTaxDisplay");
4116
+ __publicField$r(this, "customerGroupNetTaxDisplay");
4117
+ __publicField$r(this, "customSignupFormToggle");
4118
+ __publicField$r(this, "signupFormTitle");
4119
+ __publicField$r(this, "signupFormIntroduction");
4120
+ __publicField$r(this, "signupFormSeoDescription");
4121
+ __publicField$r(this, "signupFormCompanySignupToggle");
4122
+ __publicField$r(this, "customerGroupSaleschannelSelection");
4123
+ __publicField$r(this, "customerGroupSaleschannelResultList");
4089
4124
  this.headline = page.getByRole("heading", { name: "New customer group" });
4090
4125
  this.saveButton = page.getByRole("button", { name: "Save" });
4091
4126
  this.cancelButton = page.getByRole("button", { name: "Cancel" });
@@ -4106,20 +4141,20 @@ class CustomerGroupCreate {
4106
4141
  }
4107
4142
  }
4108
4143
 
4109
- var __defProp$n = Object.defineProperty;
4110
- var __defNormalProp$n = (obj, key, value) => key in obj ? __defProp$n(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
4111
- var __publicField$n = (obj, key, value) => {
4112
- __defNormalProp$n(obj, typeof key !== "symbol" ? key + "" : key, value);
4144
+ var __defProp$q = Object.defineProperty;
4145
+ var __defNormalProp$q = (obj, key, value) => key in obj ? __defProp$q(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
4146
+ var __publicField$q = (obj, key, value) => {
4147
+ __defNormalProp$q(obj, typeof key !== "symbol" ? key + "" : key, value);
4113
4148
  return value;
4114
4149
  };
4115
4150
  class CustomerGroupDetail extends CustomerGroupCreate {
4116
4151
  constructor(page) {
4117
4152
  super(page);
4118
4153
  this.page = page;
4119
- __publicField$n(this, "headline");
4120
- __publicField$n(this, "selectedSalesChannel");
4121
- __publicField$n(this, "technicalUrl");
4122
- __publicField$n(this, "saleschannelUrl");
4154
+ __publicField$q(this, "headline");
4155
+ __publicField$q(this, "selectedSalesChannel");
4156
+ __publicField$q(this, "technicalUrl");
4157
+ __publicField$q(this, "saleschannelUrl");
4123
4158
  this.headline = page.locator(".smart-bar__header");
4124
4159
  this.selectedSalesChannel = page.locator(".sw-select-selection-list");
4125
4160
  this.technicalUrl = page.getByLabel("Technical URL");
@@ -4130,53 +4165,53 @@ class CustomerGroupDetail extends CustomerGroupCreate {
4130
4165
  }
4131
4166
  }
4132
4167
 
4133
- var __defProp$m = Object.defineProperty;
4134
- var __defNormalProp$m = (obj, key, value) => key in obj ? __defProp$m(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
4135
- var __publicField$m = (obj, key, value) => {
4136
- __defNormalProp$m(obj, typeof key !== "symbol" ? key + "" : key, value);
4168
+ var __defProp$p = Object.defineProperty;
4169
+ var __defNormalProp$p = (obj, key, value) => key in obj ? __defProp$p(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
4170
+ var __publicField$p = (obj, key, value) => {
4171
+ __defNormalProp$p(obj, typeof key !== "symbol" ? key + "" : key, value);
4137
4172
  return value;
4138
4173
  };
4139
4174
  class FirstRunWizard {
4140
4175
  constructor(page) {
4141
4176
  this.page = page;
4142
- __publicField$m(this, "nextButton");
4143
- __publicField$m(this, "configureLaterButton");
4144
- __publicField$m(this, "skipButton");
4145
- __publicField$m(this, "finishButton");
4146
- __publicField$m(this, "backButton");
4147
- __publicField$m(this, "smtpServerButton");
4148
- __publicField$m(this, "dataImportHeader");
4149
- __publicField$m(this, "installLanguagePackButton");
4150
- __publicField$m(this, "installDemoDataButton");
4151
- __publicField$m(this, "installMigrationAssistantButton");
4152
- __publicField$m(this, "defaultValuesHeader");
4153
- __publicField$m(this, "mailerConfigurationHeader");
4154
- __publicField$m(this, "payPalSetupHeader");
4155
- __publicField$m(this, "extensionsHeader");
4156
- __publicField$m(this, "shopwareAccountHeader");
4157
- __publicField$m(this, "shopwareStoreHeader");
4158
- __publicField$m(this, "doneHeader");
4159
- __publicField$m(this, "frwSuccessText");
4160
- __publicField$m(this, "welcomeText");
4161
- __publicField$m(this, "pluginCardInfo");
4162
- __publicField$m(this, "dataImportCard");
4163
- __publicField$m(this, "salesChannelSelectionList");
4164
- __publicField$m(this, "salesChannelSelectionMultiSelect");
4165
- __publicField$m(this, "smtpServerTitle");
4166
- __publicField$m(this, "smtpServerFields");
4167
- __publicField$m(this, "payPalPaymethods");
4168
- __publicField$m(this, "payPalInfoCard");
4169
- __publicField$m(this, "emailAddressInputField");
4170
- __publicField$m(this, "passwordInputField");
4171
- __publicField$m(this, "forgotPasswordLink");
4172
- __publicField$m(this, "extensionStoreHeading");
4173
- __publicField$m(this, "documentationLink");
4174
- __publicField$m(this, "forumLink");
4175
- __publicField$m(this, "roadmapLink");
4176
- __publicField$m(this, "germanRegionSelector");
4177
- __publicField$m(this, "toolsSelector");
4178
- __publicField$m(this, "recommendationHeader");
4179
- __publicField$m(this, "toolsRecommendedPlugin");
4177
+ __publicField$p(this, "nextButton");
4178
+ __publicField$p(this, "configureLaterButton");
4179
+ __publicField$p(this, "skipButton");
4180
+ __publicField$p(this, "finishButton");
4181
+ __publicField$p(this, "backButton");
4182
+ __publicField$p(this, "smtpServerButton");
4183
+ __publicField$p(this, "dataImportHeader");
4184
+ __publicField$p(this, "installLanguagePackButton");
4185
+ __publicField$p(this, "installDemoDataButton");
4186
+ __publicField$p(this, "installMigrationAssistantButton");
4187
+ __publicField$p(this, "defaultValuesHeader");
4188
+ __publicField$p(this, "mailerConfigurationHeader");
4189
+ __publicField$p(this, "payPalSetupHeader");
4190
+ __publicField$p(this, "extensionsHeader");
4191
+ __publicField$p(this, "shopwareAccountHeader");
4192
+ __publicField$p(this, "shopwareStoreHeader");
4193
+ __publicField$p(this, "doneHeader");
4194
+ __publicField$p(this, "frwSuccessText");
4195
+ __publicField$p(this, "welcomeText");
4196
+ __publicField$p(this, "pluginCardInfo");
4197
+ __publicField$p(this, "dataImportCard");
4198
+ __publicField$p(this, "salesChannelSelectionList");
4199
+ __publicField$p(this, "salesChannelSelectionMultiSelect");
4200
+ __publicField$p(this, "smtpServerTitle");
4201
+ __publicField$p(this, "smtpServerFields");
4202
+ __publicField$p(this, "payPalPaymethods");
4203
+ __publicField$p(this, "payPalInfoCard");
4204
+ __publicField$p(this, "emailAddressInputField");
4205
+ __publicField$p(this, "passwordInputField");
4206
+ __publicField$p(this, "forgotPasswordLink");
4207
+ __publicField$p(this, "extensionStoreHeading");
4208
+ __publicField$p(this, "documentationLink");
4209
+ __publicField$p(this, "forumLink");
4210
+ __publicField$p(this, "roadmapLink");
4211
+ __publicField$p(this, "germanRegionSelector");
4212
+ __publicField$p(this, "toolsSelector");
4213
+ __publicField$p(this, "recommendationHeader");
4214
+ __publicField$p(this, "toolsRecommendedPlugin");
4180
4215
  this.nextButton = page.getByText("Next", { exact: true });
4181
4216
  this.configureLaterButton = page.getByText("Configure later", { exact: true });
4182
4217
  this.skipButton = page.getByText("Skip", { exact: true });
@@ -4221,17 +4256,17 @@ class FirstRunWizard {
4221
4256
  }
4222
4257
  }
4223
4258
 
4224
- var __defProp$l = Object.defineProperty;
4225
- var __defNormalProp$l = (obj, key, value) => key in obj ? __defProp$l(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
4226
- var __publicField$l = (obj, key, value) => {
4227
- __defNormalProp$l(obj, typeof key !== "symbol" ? key + "" : key, value);
4259
+ var __defProp$o = Object.defineProperty;
4260
+ var __defNormalProp$o = (obj, key, value) => key in obj ? __defProp$o(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
4261
+ var __publicField$o = (obj, key, value) => {
4262
+ __defNormalProp$o(obj, typeof key !== "symbol" ? key + "" : key, value);
4228
4263
  return value;
4229
4264
  };
4230
4265
  class FlowBuilderCreate {
4231
4266
  constructor(page) {
4232
4267
  this.page = page;
4233
- __publicField$l(this, "saveButton");
4234
- __publicField$l(this, "header");
4268
+ __publicField$o(this, "saveButton");
4269
+ __publicField$o(this, "header");
4235
4270
  this.saveButton = page.locator(".sw-flow-detail__save");
4236
4271
  this.header = page.locator("h2");
4237
4272
  }
@@ -4240,28 +4275,28 @@ class FlowBuilderCreate {
4240
4275
  }
4241
4276
  }
4242
4277
 
4243
- var __defProp$k = Object.defineProperty;
4244
- var __defNormalProp$k = (obj, key, value) => key in obj ? __defProp$k(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
4245
- var __publicField$k = (obj, key, value) => {
4246
- __defNormalProp$k(obj, typeof key !== "symbol" ? key + "" : key, value);
4278
+ var __defProp$n = Object.defineProperty;
4279
+ var __defNormalProp$n = (obj, key, value) => key in obj ? __defProp$n(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
4280
+ var __publicField$n = (obj, key, value) => {
4281
+ __defNormalProp$n(obj, typeof key !== "symbol" ? key + "" : key, value);
4247
4282
  return value;
4248
4283
  };
4249
4284
  class FlowBuilderListing {
4250
4285
  constructor(page) {
4251
4286
  this.page = page;
4252
- __publicField$k(this, "createFlowButton");
4253
- __publicField$k(this, "firstFlowName");
4254
- __publicField$k(this, "firstFlowContextButton");
4255
- __publicField$k(this, "flowContextMenu");
4256
- __publicField$k(this, "contextMenuDownload");
4257
- __publicField$k(this, "contextMenuDuplicate");
4258
- __publicField$k(this, "contextMenuEdit");
4259
- __publicField$k(this, "contextMenuDelete");
4260
- __publicField$k(this, "flowDownloadModal");
4261
- __publicField$k(this, "downloadFlowButton");
4262
- __publicField$k(this, "flowDeleteButton");
4263
- __publicField$k(this, "successAlert");
4264
- __publicField$k(this, "successAlertMessage");
4287
+ __publicField$n(this, "createFlowButton");
4288
+ __publicField$n(this, "firstFlowName");
4289
+ __publicField$n(this, "firstFlowContextButton");
4290
+ __publicField$n(this, "flowContextMenu");
4291
+ __publicField$n(this, "contextMenuDownload");
4292
+ __publicField$n(this, "contextMenuDuplicate");
4293
+ __publicField$n(this, "contextMenuEdit");
4294
+ __publicField$n(this, "contextMenuDelete");
4295
+ __publicField$n(this, "flowDownloadModal");
4296
+ __publicField$n(this, "downloadFlowButton");
4297
+ __publicField$n(this, "flowDeleteButton");
4298
+ __publicField$n(this, "successAlert");
4299
+ __publicField$n(this, "successAlertMessage");
4265
4300
  this.createFlowButton = page.locator(".sw-flow-list__create");
4266
4301
  this.firstFlowName = page.locator(".sw-data-grid__cell--name a").first();
4267
4302
  this.firstFlowContextButton = page.locator(".sw-data-grid__actions-menu").first();
@@ -4298,18 +4333,18 @@ class FlowBuilderListing {
4298
4333
  }
4299
4334
  }
4300
4335
 
4301
- var __defProp$j = Object.defineProperty;
4302
- var __defNormalProp$j = (obj, key, value) => key in obj ? __defProp$j(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
4303
- var __publicField$j = (obj, key, value) => {
4304
- __defNormalProp$j(obj, typeof key !== "symbol" ? key + "" : key, value);
4336
+ var __defProp$m = Object.defineProperty;
4337
+ var __defNormalProp$m = (obj, key, value) => key in obj ? __defProp$m(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
4338
+ var __publicField$m = (obj, key, value) => {
4339
+ __defNormalProp$m(obj, typeof key !== "symbol" ? key + "" : key, value);
4305
4340
  return value;
4306
4341
  };
4307
4342
  class FlowBuilderDetail {
4308
4343
  constructor(page) {
4309
4344
  this.page = page;
4310
- __publicField$j(this, "saveButton");
4311
- __publicField$j(this, "generalTab");
4312
- __publicField$j(this, "flowTab");
4345
+ __publicField$m(this, "saveButton");
4346
+ __publicField$m(this, "generalTab");
4347
+ __publicField$m(this, "flowTab");
4313
4348
  this.saveButton = page.locator(".sw-flow-detail__save");
4314
4349
  this.generalTab = page.locator(".sw-flow-detail__tab-general");
4315
4350
  this.flowTab = page.locator(".sw-flow-detail__tab-flow");
@@ -4319,20 +4354,20 @@ class FlowBuilderDetail {
4319
4354
  }
4320
4355
  }
4321
4356
 
4322
- var __defProp$i = Object.defineProperty;
4323
- var __defNormalProp$i = (obj, key, value) => key in obj ? __defProp$i(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
4324
- var __publicField$i = (obj, key, value) => {
4325
- __defNormalProp$i(obj, typeof key !== "symbol" ? key + "" : key, value);
4357
+ var __defProp$l = Object.defineProperty;
4358
+ var __defNormalProp$l = (obj, key, value) => key in obj ? __defProp$l(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
4359
+ var __publicField$l = (obj, key, value) => {
4360
+ __defNormalProp$l(obj, typeof key !== "symbol" ? key + "" : key, value);
4326
4361
  return value;
4327
4362
  };
4328
4363
  class DataSharing {
4329
4364
  constructor(page) {
4330
4365
  this.page = page;
4331
- __publicField$i(this, "dataConsentHeadline");
4332
- __publicField$i(this, "dataSharingSuccessMessageLabel");
4333
- __publicField$i(this, "dataSharingAgreeButton");
4334
- __publicField$i(this, "dataSharingDisableButton");
4335
- __publicField$i(this, "dataSharingTermsAgreementLabel");
4366
+ __publicField$l(this, "dataConsentHeadline");
4367
+ __publicField$l(this, "dataSharingSuccessMessageLabel");
4368
+ __publicField$l(this, "dataSharingAgreeButton");
4369
+ __publicField$l(this, "dataSharingDisableButton");
4370
+ __publicField$l(this, "dataSharingTermsAgreementLabel");
4336
4371
  this.dataConsentHeadline = page.locator("h3.sw-usage-data-consent-banner__content-headline");
4337
4372
  this.dataSharingAgreeButton = page.getByRole("button", { name: "Agree" });
4338
4373
  this.dataSharingDisableButton = page.getByRole("button", { name: "Disable data sharing" });
@@ -4344,23 +4379,23 @@ class DataSharing {
4344
4379
  }
4345
4380
  }
4346
4381
 
4347
- var __defProp$h = Object.defineProperty;
4348
- var __defNormalProp$h = (obj, key, value) => key in obj ? __defProp$h(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
4349
- var __publicField$h = (obj, key, value) => {
4350
- __defNormalProp$h(obj, typeof key !== "symbol" ? key + "" : key, value);
4382
+ var __defProp$k = Object.defineProperty;
4383
+ var __defNormalProp$k = (obj, key, value) => key in obj ? __defProp$k(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
4384
+ var __publicField$k = (obj, key, value) => {
4385
+ __defNormalProp$k(obj, typeof key !== "symbol" ? key + "" : key, value);
4351
4386
  return value;
4352
4387
  };
4353
4388
  class Dashboard {
4354
4389
  constructor(page) {
4355
4390
  this.page = page;
4356
- __publicField$h(this, "welcomeHeadline");
4357
- __publicField$h(this, "dataSharingConsentBanner");
4358
- __publicField$h(this, "dataSharingAgreeButton");
4359
- __publicField$h(this, "dataSharingNotAtTheMomentButton");
4360
- __publicField$h(this, "dataSharingTermsAgreementLabel");
4361
- __publicField$h(this, "dataSharingSettingsLink");
4362
- __publicField$h(this, "dataSharingAcceptMessageText");
4363
- __publicField$h(this, "dataSharingNotAtTheMomentMessageText");
4391
+ __publicField$k(this, "welcomeHeadline");
4392
+ __publicField$k(this, "dataSharingConsentBanner");
4393
+ __publicField$k(this, "dataSharingAgreeButton");
4394
+ __publicField$k(this, "dataSharingNotAtTheMomentButton");
4395
+ __publicField$k(this, "dataSharingTermsAgreementLabel");
4396
+ __publicField$k(this, "dataSharingSettingsLink");
4397
+ __publicField$k(this, "dataSharingAcceptMessageText");
4398
+ __publicField$k(this, "dataSharingNotAtTheMomentMessageText");
4364
4399
  this.welcomeHeadline = page.locator("h1.sw-dashboard-index__welcome-title");
4365
4400
  this.dataSharingConsentBanner = page.locator(".sw-usage-data-consent-banner");
4366
4401
  this.dataSharingAgreeButton = page.getByRole("button", { name: "Agree" });
@@ -4375,25 +4410,25 @@ class Dashboard {
4375
4410
  }
4376
4411
  }
4377
4412
 
4378
- var __defProp$g = Object.defineProperty;
4379
- var __defNormalProp$g = (obj, key, value) => key in obj ? __defProp$g(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
4380
- var __publicField$g = (obj, key, value) => {
4381
- __defNormalProp$g(obj, typeof key !== "symbol" ? key + "" : key, value);
4413
+ var __defProp$j = Object.defineProperty;
4414
+ var __defNormalProp$j = (obj, key, value) => key in obj ? __defProp$j(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
4415
+ var __publicField$j = (obj, key, value) => {
4416
+ __defNormalProp$j(obj, typeof key !== "symbol" ? key + "" : key, value);
4382
4417
  return value;
4383
4418
  };
4384
4419
  class ShippingListing {
4385
4420
  constructor(page) {
4386
4421
  this.page = page;
4387
- __publicField$g(this, "header");
4388
- __publicField$g(this, "addShippingMethod");
4389
- __publicField$g(this, "contextMenu");
4390
- __publicField$g(this, "editButton");
4391
- __publicField$g(this, "deleteButton");
4422
+ __publicField$j(this, "header");
4423
+ __publicField$j(this, "addShippingMethod");
4424
+ __publicField$j(this, "contextMenu");
4425
+ __publicField$j(this, "editButton");
4426
+ __publicField$j(this, "deleteButton");
4392
4427
  //warning modal
4393
- __publicField$g(this, "modal");
4394
- __publicField$g(this, "modalHeader");
4395
- __publicField$g(this, "modalCancelButton");
4396
- __publicField$g(this, "modalDeleteButton");
4428
+ __publicField$j(this, "modal");
4429
+ __publicField$j(this, "modalHeader");
4430
+ __publicField$j(this, "modalCancelButton");
4431
+ __publicField$j(this, "modalDeleteButton");
4397
4432
  this.header = page.locator(".smart-bar__header");
4398
4433
  this.addShippingMethod = page.getByText("Add shipping method", { exact: true });
4399
4434
  this.contextMenu = page.locator(".sw-data-grid-settings__trigger");
@@ -4409,10 +4444,62 @@ class ShippingListing {
4409
4444
  }
4410
4445
  }
4411
4446
 
4412
- var __defProp$f = Object.defineProperty;
4413
- var __defNormalProp$f = (obj, key, value) => key in obj ? __defProp$f(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
4414
- var __publicField$f = (obj, key, value) => {
4415
- __defNormalProp$f(obj, typeof key !== "symbol" ? key + "" : key, value);
4447
+ var __defProp$i = Object.defineProperty;
4448
+ var __defNormalProp$i = (obj, key, value) => key in obj ? __defProp$i(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
4449
+ var __publicField$i = (obj, key, value) => {
4450
+ __defNormalProp$i(obj, typeof key !== "symbol" ? key + "" : key, value);
4451
+ return value;
4452
+ };
4453
+ class ShippingDetail {
4454
+ constructor(page) {
4455
+ this.page = page;
4456
+ __publicField$i(this, "header");
4457
+ __publicField$i(this, "nameField");
4458
+ __publicField$i(this, "availabilityRuleField");
4459
+ __publicField$i(this, "availabilityRuleListItem");
4460
+ this.header = page.locator(".smart-bar__header");
4461
+ this.nameField = page.getByLabel("Name", { exact: true });
4462
+ this.availabilityRuleField = page.locator(".sw-settings-shipping-detail__top-rule").locator(".sw-entity-single-select__selection-text");
4463
+ this.availabilityRuleListItem = page.locator(".sw-select-result-list__content").getByRole("listitem");
4464
+ }
4465
+ url(shippingId) {
4466
+ return `#/sw/settings/shipping/detail/${shippingId}`;
4467
+ }
4468
+ getRuleSelectionCheckmark(ruleName) {
4469
+ return this.availabilityRuleListItem.filter({ hasText: ruleName }).getByTestId("sw-icon__regular-checkmark-xs");
4470
+ }
4471
+ }
4472
+
4473
+ var __defProp$h = Object.defineProperty;
4474
+ var __defNormalProp$h = (obj, key, value) => key in obj ? __defProp$h(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
4475
+ var __publicField$h = (obj, key, value) => {
4476
+ __defNormalProp$h(obj, typeof key !== "symbol" ? key + "" : key, value);
4477
+ return value;
4478
+ };
4479
+ class PaymentDetail {
4480
+ constructor(page) {
4481
+ this.page = page;
4482
+ __publicField$h(this, "header");
4483
+ __publicField$h(this, "nameField");
4484
+ __publicField$h(this, "availabilityRuleField");
4485
+ __publicField$h(this, "availabilityRuleListItem");
4486
+ this.header = page.locator(".smart-bar__header");
4487
+ this.nameField = page.getByLabel("Name", { exact: true });
4488
+ this.availabilityRuleField = page.locator(".sw-settings-payment-detail__field-availability-rule").locator(".sw-entity-single-select__selection-text");
4489
+ this.availabilityRuleListItem = page.locator(".sw-select-result-list__content").getByRole("listitem");
4490
+ }
4491
+ url(paymentId) {
4492
+ return `#/sw/settings/payment/detail/${paymentId}`;
4493
+ }
4494
+ getRuleSelectionCheckmark(ruleName) {
4495
+ return this.availabilityRuleListItem.filter({ hasText: ruleName }).getByTestId("sw-icon__regular-checkmark-xs");
4496
+ }
4497
+ }
4498
+
4499
+ var __defProp$g = Object.defineProperty;
4500
+ var __defNormalProp$g = (obj, key, value) => key in obj ? __defProp$g(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
4501
+ var __publicField$g = (obj, key, value) => {
4502
+ __defNormalProp$g(obj, typeof key !== "symbol" ? key + "" : key, value);
4416
4503
  return value;
4417
4504
  };
4418
4505
  class LandingPageCreate {
@@ -4421,24 +4508,24 @@ class LandingPageCreate {
4421
4508
  /**
4422
4509
  * General
4423
4510
  */
4424
- __publicField$f(this, "nameInput");
4425
- __publicField$f(this, "landingPageStatus");
4426
- __publicField$f(this, "salesChannelSelectionList");
4427
- __publicField$f(this, "filtersResultPopoverItemList");
4428
- __publicField$f(this, "saveLandingPageButton");
4429
- __publicField$f(this, "loadingSpinner");
4430
- __publicField$f(this, "seoUrlInput");
4511
+ __publicField$g(this, "nameInput");
4512
+ __publicField$g(this, "landingPageStatus");
4513
+ __publicField$g(this, "salesChannelSelectionList");
4514
+ __publicField$g(this, "filtersResultPopoverItemList");
4515
+ __publicField$g(this, "saveLandingPageButton");
4516
+ __publicField$g(this, "loadingSpinner");
4517
+ __publicField$g(this, "seoUrlInput");
4431
4518
  /**
4432
4519
  * Layout
4433
4520
  */
4434
- __publicField$f(this, "layoutTab");
4435
- __publicField$f(this, "assignLayoutButton");
4436
- __publicField$f(this, "searchLayoutInput");
4437
- __publicField$f(this, "layoutItems");
4438
- __publicField$f(this, "layoutSaveButton");
4439
- __publicField$f(this, "layoutEmptyState");
4440
- __publicField$f(this, "createNewLayoutButton");
4441
- __publicField$f(this, "layoutCheckboxes");
4521
+ __publicField$g(this, "layoutTab");
4522
+ __publicField$g(this, "assignLayoutButton");
4523
+ __publicField$g(this, "searchLayoutInput");
4524
+ __publicField$g(this, "layoutItems");
4525
+ __publicField$g(this, "layoutSaveButton");
4526
+ __publicField$g(this, "layoutEmptyState");
4527
+ __publicField$g(this, "createNewLayoutButton");
4528
+ __publicField$g(this, "layoutCheckboxes");
4442
4529
  this.loadingSpinner = page.locator(".sw-loader");
4443
4530
  this.saveLandingPageButton = page.getByRole("button", { name: "Save" });
4444
4531
  this.nameInput = page.getByLabel("Name");
@@ -4463,10 +4550,10 @@ class LandingPageCreate {
4463
4550
  }
4464
4551
  }
4465
4552
 
4466
- var __defProp$e = Object.defineProperty;
4467
- var __defNormalProp$e = (obj, key, value) => key in obj ? __defProp$e(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
4468
- var __publicField$e = (obj, key, value) => {
4469
- __defNormalProp$e(obj, typeof key !== "symbol" ? key + "" : key, value);
4553
+ var __defProp$f = Object.defineProperty;
4554
+ var __defNormalProp$f = (obj, key, value) => key in obj ? __defProp$f(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
4555
+ var __publicField$f = (obj, key, value) => {
4556
+ __defNormalProp$f(obj, typeof key !== "symbol" ? key + "" : key, value);
4470
4557
  return value;
4471
4558
  };
4472
4559
  class LandingPageDetail {
@@ -4475,24 +4562,24 @@ class LandingPageDetail {
4475
4562
  /**
4476
4563
  * General
4477
4564
  */
4478
- __publicField$e(this, "nameInput");
4479
- __publicField$e(this, "landingPageStatus");
4480
- __publicField$e(this, "salesChannelSelectionList");
4481
- __publicField$e(this, "filtersResultPopoverItemList");
4482
- __publicField$e(this, "saveLandingPageButton");
4483
- __publicField$e(this, "loadingSpinner");
4484
- __publicField$e(this, "seoUrlInput");
4565
+ __publicField$f(this, "nameInput");
4566
+ __publicField$f(this, "landingPageStatus");
4567
+ __publicField$f(this, "salesChannelSelectionList");
4568
+ __publicField$f(this, "filtersResultPopoverItemList");
4569
+ __publicField$f(this, "saveLandingPageButton");
4570
+ __publicField$f(this, "loadingSpinner");
4571
+ __publicField$f(this, "seoUrlInput");
4485
4572
  /**
4486
4573
  * Layout
4487
4574
  */
4488
- __publicField$e(this, "layoutTab");
4489
- __publicField$e(this, "layoutAssignmentCardTitle");
4490
- __publicField$e(this, "layoutAssignmentCardHeadline");
4491
- __publicField$e(this, "changeLayoutButton");
4492
- __publicField$e(this, "editInDesignerButton");
4493
- __publicField$e(this, "layoutResetButton");
4494
- __publicField$e(this, "layoutAssignmentStatus");
4495
- __publicField$e(this, "layoutAssignmentContentSection");
4575
+ __publicField$f(this, "layoutTab");
4576
+ __publicField$f(this, "layoutAssignmentCardTitle");
4577
+ __publicField$f(this, "layoutAssignmentCardHeadline");
4578
+ __publicField$f(this, "changeLayoutButton");
4579
+ __publicField$f(this, "editInDesignerButton");
4580
+ __publicField$f(this, "layoutResetButton");
4581
+ __publicField$f(this, "layoutAssignmentStatus");
4582
+ __publicField$f(this, "layoutAssignmentContentSection");
4496
4583
  this.loadingSpinner = page.locator(".sw-loader");
4497
4584
  this.saveLandingPageButton = page.getByRole("button", { name: "Save" });
4498
4585
  this.nameInput = page.getByLabel("Name");
@@ -4516,10 +4603,10 @@ class LandingPageDetail {
4516
4603
  }
4517
4604
  }
4518
4605
 
4519
- var __defProp$d = Object.defineProperty;
4520
- var __defNormalProp$d = (obj, key, value) => key in obj ? __defProp$d(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
4521
- var __publicField$d = (obj, key, value) => {
4522
- __defNormalProp$d(obj, typeof key !== "symbol" ? key + "" : key, value);
4606
+ var __defProp$e = Object.defineProperty;
4607
+ var __defNormalProp$e = (obj, key, value) => key in obj ? __defProp$e(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
4608
+ var __publicField$e = (obj, key, value) => {
4609
+ __defNormalProp$e(obj, typeof key !== "symbol" ? key + "" : key, value);
4523
4610
  return value;
4524
4611
  };
4525
4612
  class Categories {
@@ -4528,40 +4615,40 @@ class Categories {
4528
4615
  /**
4529
4616
  * Landing pages
4530
4617
  */
4531
- __publicField$d(this, "landingPageArea");
4532
- __publicField$d(this, "landingPageHeadline");
4533
- __publicField$d(this, "addLandingPageButton");
4534
- __publicField$d(this, "landingPageItems");
4618
+ __publicField$e(this, "landingPageArea");
4619
+ __publicField$e(this, "landingPageHeadline");
4620
+ __publicField$e(this, "addLandingPageButton");
4621
+ __publicField$e(this, "landingPageItems");
4535
4622
  /**
4536
4623
  * Category tree
4537
4624
  */
4538
- __publicField$d(this, "categoryTree");
4539
- __publicField$d(this, "categoryMenuItemList");
4540
- __publicField$d(this, "createCategoryInput");
4541
- __publicField$d(this, "confirmCategoryCreationButton");
4542
- __publicField$d(this, "confirmCategoryCancelButton");
4543
- __publicField$d(this, "categoryItems");
4625
+ __publicField$e(this, "categoryTree");
4626
+ __publicField$e(this, "categoryMenuItemList");
4627
+ __publicField$e(this, "createCategoryInput");
4628
+ __publicField$e(this, "confirmCategoryCreationButton");
4629
+ __publicField$e(this, "confirmCategoryCancelButton");
4630
+ __publicField$e(this, "categoryItems");
4544
4631
  /**
4545
4632
  * General
4546
4633
  */
4547
- __publicField$d(this, "nameInput");
4548
- __publicField$d(this, "activeCheckbox");
4549
- __publicField$d(this, "categoryTypeSelectionList");
4550
- __publicField$d(this, "filtersResultPopoverItemList");
4551
- __publicField$d(this, "saveButton");
4552
- __publicField$d(this, "loadingSpinner");
4553
- __publicField$d(this, "fadingBar");
4634
+ __publicField$e(this, "nameInput");
4635
+ __publicField$e(this, "activeCheckbox");
4636
+ __publicField$e(this, "categoryTypeSelectionList");
4637
+ __publicField$e(this, "filtersResultPopoverItemList");
4638
+ __publicField$e(this, "saveButton");
4639
+ __publicField$e(this, "loadingSpinner");
4640
+ __publicField$e(this, "fadingBar");
4554
4641
  /**
4555
4642
  * Customisable link
4556
4643
  */
4557
- __publicField$d(this, "entitySelectionList");
4558
- __publicField$d(this, "linkTypeSelectionList");
4559
- __publicField$d(this, "categorySelectionList");
4560
- __publicField$d(this, "productSelectionList");
4561
- __publicField$d(this, "landingPageSelectionList");
4562
- __publicField$d(this, "filterResultPopoverTreeCheckboxItemList");
4563
- __publicField$d(this, "openInNewTabCheckbox");
4564
- __publicField$d(this, "popoverCategoryTree");
4644
+ __publicField$e(this, "entitySelectionList");
4645
+ __publicField$e(this, "linkTypeSelectionList");
4646
+ __publicField$e(this, "categorySelectionList");
4647
+ __publicField$e(this, "productSelectionList");
4648
+ __publicField$e(this, "landingPageSelectionList");
4649
+ __publicField$e(this, "filterResultPopoverTreeCheckboxItemList");
4650
+ __publicField$e(this, "openInNewTabCheckbox");
4651
+ __publicField$e(this, "popoverCategoryTree");
4565
4652
  this.landingPageArea = page.locator(".sw-category-detail__landing-page-collapse");
4566
4653
  this.landingPageHeadline = this.landingPageArea.getByRole("heading", { name: "Landing pages" });
4567
4654
  this.addLandingPageButton = this.landingPageArea.getByText("Add landing page");
@@ -4602,42 +4689,17 @@ class Categories {
4602
4689
  }
4603
4690
  }
4604
4691
 
4605
- var __defProp$c = Object.defineProperty;
4606
- var __defNormalProp$c = (obj, key, value) => key in obj ? __defProp$c(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
4607
- var __publicField$c = (obj, key, value) => {
4608
- __defNormalProp$c(obj, typeof key !== "symbol" ? key + "" : key, value);
4609
- return value;
4610
- };
4611
- class RuleDetail {
4612
- constructor(page) {
4613
- this.page = page;
4614
- __publicField$c(this, "nameInput");
4615
- __publicField$c(this, "priorityInput");
4616
- __publicField$c(this, "conditionTypeSelectionInput");
4617
- __publicField$c(this, "conditionValueSelectionInput");
4618
- __publicField$c(this, "filtersResultPopoverSelectionList");
4619
- this.nameInput = page.getByLabel("Name");
4620
- this.priorityInput = page.getByLabel("Priority");
4621
- this.conditionTypeSelectionInput = page.locator(".sw-condition-type-select").locator(".sw-single-select__selection");
4622
- this.conditionValueSelectionInput = page.locator(".sw-condition__value-content").locator(".sw-entity-single-select__selection");
4623
- this.filtersResultPopoverSelectionList = page.locator(".sw-select-result-list__content").getByRole("listitem");
4624
- }
4625
- url(ruleId, tabName = "base") {
4626
- return `#/sw/settings/rule/detail/${ruleId}/${tabName}`;
4627
- }
4628
- }
4629
-
4630
- var __defProp$b = Object.defineProperty;
4631
- var __defNormalProp$b = (obj, key, value) => key in obj ? __defProp$b(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
4632
- var __publicField$b = (obj, key, value) => {
4633
- __defNormalProp$b(obj, typeof key !== "symbol" ? key + "" : key, value);
4692
+ var __defProp$d = Object.defineProperty;
4693
+ var __defNormalProp$d = (obj, key, value) => key in obj ? __defProp$d(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
4694
+ var __publicField$d = (obj, key, value) => {
4695
+ __defNormalProp$d(obj, typeof key !== "symbol" ? key + "" : key, value);
4634
4696
  return value;
4635
4697
  };
4636
4698
  class CustomFieldListing {
4637
4699
  constructor(page) {
4638
4700
  this.page = page;
4639
- __publicField$b(this, "addNewSetButton");
4640
- __publicField$b(this, "customFieldRows");
4701
+ __publicField$d(this, "addNewSetButton");
4702
+ __publicField$d(this, "customFieldRows");
4641
4703
  this.addNewSetButton = page.getByText("Add new set");
4642
4704
  this.customFieldRows = page.getByRole("row");
4643
4705
  }
@@ -4665,22 +4727,22 @@ class CustomFieldListing {
4665
4727
  }
4666
4728
  }
4667
4729
 
4668
- var __defProp$a = Object.defineProperty;
4669
- var __defNormalProp$a = (obj, key, value) => key in obj ? __defProp$a(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
4670
- var __publicField$a = (obj, key, value) => {
4671
- __defNormalProp$a(obj, typeof key !== "symbol" ? key + "" : key, value);
4730
+ var __defProp$c = Object.defineProperty;
4731
+ var __defNormalProp$c = (obj, key, value) => key in obj ? __defProp$c(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
4732
+ var __publicField$c = (obj, key, value) => {
4733
+ __defNormalProp$c(obj, typeof key !== "symbol" ? key + "" : key, value);
4672
4734
  return value;
4673
4735
  };
4674
4736
  class CustomFieldCreate {
4675
4737
  constructor(page) {
4676
4738
  this.page = page;
4677
- __publicField$a(this, "saveButton");
4678
- __publicField$a(this, "cancelButton");
4679
- __publicField$a(this, "technicalNameInput");
4680
- __publicField$a(this, "positionInput");
4681
- __publicField$a(this, "labelEnglishGBInput");
4682
- __publicField$a(this, "assignToSelectionList");
4683
- __publicField$a(this, "resultAssignToPopoverItemList");
4739
+ __publicField$c(this, "saveButton");
4740
+ __publicField$c(this, "cancelButton");
4741
+ __publicField$c(this, "technicalNameInput");
4742
+ __publicField$c(this, "positionInput");
4743
+ __publicField$c(this, "labelEnglishGBInput");
4744
+ __publicField$c(this, "assignToSelectionList");
4745
+ __publicField$c(this, "resultAssignToPopoverItemList");
4684
4746
  this.saveButton = page.getByRole("button", { name: "Save" });
4685
4747
  this.cancelButton = page.getByRole("button", { name: "Cancel" });
4686
4748
  this.technicalNameInput = page.getByLabel("Technical name");
@@ -4694,33 +4756,33 @@ class CustomFieldCreate {
4694
4756
  }
4695
4757
  }
4696
4758
 
4697
- var __defProp$9 = Object.defineProperty;
4698
- var __defNormalProp$9 = (obj, key, value) => key in obj ? __defProp$9(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
4699
- var __publicField$9 = (obj, key, value) => {
4700
- __defNormalProp$9(obj, typeof key !== "symbol" ? key + "" : key, value);
4759
+ var __defProp$b = Object.defineProperty;
4760
+ var __defNormalProp$b = (obj, key, value) => key in obj ? __defProp$b(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
4761
+ var __publicField$b = (obj, key, value) => {
4762
+ __defNormalProp$b(obj, typeof key !== "symbol" ? key + "" : key, value);
4701
4763
  return value;
4702
4764
  };
4703
4765
  class CustomFieldDetail extends CustomFieldCreate {
4704
4766
  constructor(page) {
4705
4767
  super(page);
4706
4768
  this.page = page;
4707
- __publicField$9(this, "newCustomFieldButton");
4708
- __publicField$9(this, "customFieldEditDialog");
4709
- __publicField$9(this, "newCustomFieldDialog");
4710
- __publicField$9(this, "customFieldTechnicalNameInput");
4711
- __publicField$9(this, "customFieldPositionInput");
4712
- __publicField$9(this, "customFieldTypeSelectionList");
4713
- __publicField$9(this, "customFieldModifyByStoreApiCheckbox");
4714
- __publicField$9(this, "customFieldCancelButton");
4715
- __publicField$9(this, "customFieldAddButton");
4716
- __publicField$9(this, "customFieldEditApplyButton");
4717
- __publicField$9(this, "customFieldLabelEnglishGBInput");
4718
- __publicField$9(this, "customFieldPlaceholderEnglishGBInput");
4719
- __publicField$9(this, "customFieldHelpTextEnglishGBInput");
4720
- __publicField$9(this, "customFieldDeleteListButton");
4721
- __publicField$9(this, "customFieldDeleteDialog");
4722
- __publicField$9(this, "customFieldDeleteCancelButton");
4723
- __publicField$9(this, "customFieldDeleteButton");
4769
+ __publicField$b(this, "newCustomFieldButton");
4770
+ __publicField$b(this, "customFieldEditDialog");
4771
+ __publicField$b(this, "newCustomFieldDialog");
4772
+ __publicField$b(this, "customFieldTechnicalNameInput");
4773
+ __publicField$b(this, "customFieldPositionInput");
4774
+ __publicField$b(this, "customFieldTypeSelectionList");
4775
+ __publicField$b(this, "customFieldModifyByStoreApiCheckbox");
4776
+ __publicField$b(this, "customFieldCancelButton");
4777
+ __publicField$b(this, "customFieldAddButton");
4778
+ __publicField$b(this, "customFieldEditApplyButton");
4779
+ __publicField$b(this, "customFieldLabelEnglishGBInput");
4780
+ __publicField$b(this, "customFieldPlaceholderEnglishGBInput");
4781
+ __publicField$b(this, "customFieldHelpTextEnglishGBInput");
4782
+ __publicField$b(this, "customFieldDeleteListButton");
4783
+ __publicField$b(this, "customFieldDeleteDialog");
4784
+ __publicField$b(this, "customFieldDeleteCancelButton");
4785
+ __publicField$b(this, "customFieldDeleteButton");
4724
4786
  this.newCustomFieldButton = page.getByRole("button", { name: "New custom field" });
4725
4787
  this.customFieldDeleteListButton = page.locator(".sw-custom-field-list__delete-button");
4726
4788
  this.newCustomFieldDialog = page.getByRole("dialog", { name: "New custom field" });
@@ -4765,20 +4827,20 @@ class CustomFieldDetail extends CustomFieldCreate {
4765
4827
  }
4766
4828
  }
4767
4829
 
4768
- var __defProp$8 = Object.defineProperty;
4769
- var __defNormalProp$8 = (obj, key, value) => key in obj ? __defProp$8(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
4770
- var __publicField$8 = (obj, key, value) => {
4771
- __defNormalProp$8(obj, typeof key !== "symbol" ? key + "" : key, value);
4830
+ var __defProp$a = Object.defineProperty;
4831
+ var __defNormalProp$a = (obj, key, value) => key in obj ? __defProp$a(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
4832
+ var __publicField$a = (obj, key, value) => {
4833
+ __defNormalProp$a(obj, typeof key !== "symbol" ? key + "" : key, value);
4772
4834
  return value;
4773
4835
  };
4774
4836
  class CategoryDetail {
4775
4837
  constructor(page) {
4776
4838
  this.page = page;
4777
- __publicField$8(this, "saveButton");
4778
- __publicField$8(this, "cancelButton");
4779
- __publicField$8(this, "customFieldCard");
4780
- __publicField$8(this, "customFieldSetTabs");
4781
- __publicField$8(this, "customFieldSetTabCustomContent");
4839
+ __publicField$a(this, "saveButton");
4840
+ __publicField$a(this, "cancelButton");
4841
+ __publicField$a(this, "customFieldCard");
4842
+ __publicField$a(this, "customFieldSetTabs");
4843
+ __publicField$a(this, "customFieldSetTabCustomContent");
4782
4844
  this.saveButton = page.getByRole("button", { name: "Save" });
4783
4845
  this.cancelButton = page.getByRole("button", { name: "Cancel" });
4784
4846
  this.customFieldCard = page.locator(".sw-card").getByText("Custom fields");
@@ -4799,22 +4861,22 @@ class CategoryDetail {
4799
4861
  }
4800
4862
  }
4801
4863
 
4802
- var __defProp$7 = Object.defineProperty;
4803
- var __defNormalProp$7 = (obj, key, value) => key in obj ? __defProp$7(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
4804
- var __publicField$7 = (obj, key, value) => {
4805
- __defNormalProp$7(obj, typeof key !== "symbol" ? key + "" : key, value);
4864
+ var __defProp$9 = Object.defineProperty;
4865
+ var __defNormalProp$9 = (obj, key, value) => key in obj ? __defProp$9(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
4866
+ var __publicField$9 = (obj, key, value) => {
4867
+ __defNormalProp$9(obj, typeof key !== "symbol" ? key + "" : key, value);
4806
4868
  return value;
4807
4869
  };
4808
4870
  class RuleCreate {
4809
4871
  constructor(page) {
4810
4872
  this.page = page;
4811
- __publicField$7(this, "nameInput");
4812
- __publicField$7(this, "priorityInput");
4813
- __publicField$7(this, "conditionTypeSelectionInput");
4814
- __publicField$7(this, "conditionValueSelectionInput");
4815
- __publicField$7(this, "filtersResultPopoverSelectionList");
4816
- __publicField$7(this, "saveButton");
4817
- __publicField$7(this, "cancelButton");
4873
+ __publicField$9(this, "nameInput");
4874
+ __publicField$9(this, "priorityInput");
4875
+ __publicField$9(this, "conditionTypeSelectionInput");
4876
+ __publicField$9(this, "conditionValueSelectionInput");
4877
+ __publicField$9(this, "filtersResultPopoverSelectionList");
4878
+ __publicField$9(this, "saveButton");
4879
+ __publicField$9(this, "cancelButton");
4818
4880
  this.nameInput = page.getByLabel("Name");
4819
4881
  this.priorityInput = page.getByLabel("Priority");
4820
4882
  this.conditionTypeSelectionInput = page.locator(".sw-condition-type-select").locator(".sw-single-select__selection");
@@ -4828,6 +4890,76 @@ class RuleCreate {
4828
4890
  }
4829
4891
  }
4830
4892
 
4893
+ var __defProp$8 = Object.defineProperty;
4894
+ var __defNormalProp$8 = (obj, key, value) => key in obj ? __defProp$8(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
4895
+ var __publicField$8 = (obj, key, value) => {
4896
+ __defNormalProp$8(obj, typeof key !== "symbol" ? key + "" : key, value);
4897
+ return value;
4898
+ };
4899
+ class RuleDetail extends RuleCreate {
4900
+ constructor(page) {
4901
+ super(page);
4902
+ this.page = page;
4903
+ __publicField$8(this, "shippingMethodAvailabilityRulesCard");
4904
+ __publicField$8(this, "shippingMethodAvailabilityRulesCardLink");
4905
+ __publicField$8(this, "shippingMethodAvailabilityRulesCardTable");
4906
+ __publicField$8(this, "shippingMethodAvailabilityRulesCardEmptyState");
4907
+ __publicField$8(this, "shippingMethodAvailabilityRulesCardSearchField");
4908
+ __publicField$8(this, "taxProviderRulesCard");
4909
+ __publicField$8(this, "taxProviderRulesCardEmptyState");
4910
+ __publicField$8(this, "paymentMethodsAvailabilityRulesCard");
4911
+ __publicField$8(this, "paymentMethodsAvailabilityRulesCardEmptyState");
4912
+ __publicField$8(this, "paymentMethodsAvailabilityRulesCardLink");
4913
+ __publicField$8(this, "promotionOrderRulesCard");
4914
+ __publicField$8(this, "promotionOrderRulesCardEmptyState");
4915
+ __publicField$8(this, "promotionCustomerRulesCard");
4916
+ __publicField$8(this, "promotionCustomerRulesCardEmptyState");
4917
+ __publicField$8(this, "promotionCartRulesCard");
4918
+ __publicField$8(this, "promotionCartRulesCardEmptyState");
4919
+ this.shippingMethodAvailabilityRulesCard = page.locator(".sw-settings-rule-detail-assignments__card-shipping_method_availability_rule");
4920
+ this.shippingMethodAvailabilityRulesCardLink = this.shippingMethodAvailabilityRulesCard.getByRole("link");
4921
+ this.shippingMethodAvailabilityRulesCardTable = page.locator(".sw-settings-rule-detail-assignments__entity-listing-shipping_method_availability_rule");
4922
+ this.shippingMethodAvailabilityRulesCardEmptyState = this.shippingMethodAvailabilityRulesCard.getByRole("alert");
4923
+ this.shippingMethodAvailabilityRulesCardSearchField = this.shippingMethodAvailabilityRulesCard.getByPlaceholder("Search...");
4924
+ this.taxProviderRulesCard = page.locator(".sw-settings-rule-detail-assignments__card-tax_provider");
4925
+ this.taxProviderRulesCardEmptyState = this.taxProviderRulesCard.getByRole("alert");
4926
+ this.paymentMethodsAvailabilityRulesCard = page.locator(".sw-settings-rule-detail-assignments__card-payment_method");
4927
+ this.paymentMethodsAvailabilityRulesCardEmptyState = this.paymentMethodsAvailabilityRulesCard.getByRole("alert");
4928
+ this.paymentMethodsAvailabilityRulesCardLink = page.locator(".sw-settings-rule-detail-assignments__card-payment_method").getByRole("link");
4929
+ this.promotionOrderRulesCard = page.locator(".sw-settings-rule-detail-assignments__card-promotion_order_rule");
4930
+ this.promotionOrderRulesCardEmptyState = this.promotionOrderRulesCard.getByRole("alert");
4931
+ this.promotionCustomerRulesCard = page.locator(".sw-settings-rule-detail-assignments__card-promotion_customer_rule");
4932
+ this.promotionCustomerRulesCardEmptyState = this.promotionCustomerRulesCard.getByRole("alert");
4933
+ this.promotionCartRulesCard = page.locator(".sw-settings-rule-detail-assignments__card-promotion_cart_rule");
4934
+ this.promotionCartRulesCardEmptyState = this.promotionCartRulesCard.getByRole("alert");
4935
+ }
4936
+ async getEntityCard(cardLocator) {
4937
+ return {
4938
+ addAssignmentButton: cardLocator.getByText("Add assignment")
4939
+ };
4940
+ }
4941
+ url(ruleId, tabName = "base") {
4942
+ return `#/sw/settings/rule/detail/${ruleId}/${tabName}`;
4943
+ }
4944
+ }
4945
+
4946
+ var __defProp$7 = Object.defineProperty;
4947
+ var __defNormalProp$7 = (obj, key, value) => key in obj ? __defProp$7(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
4948
+ var __publicField$7 = (obj, key, value) => {
4949
+ __defNormalProp$7(obj, typeof key !== "symbol" ? key + "" : key, value);
4950
+ return value;
4951
+ };
4952
+ class RuleListing {
4953
+ constructor(page) {
4954
+ this.page = page;
4955
+ __publicField$7(this, "createRuleButton");
4956
+ this.createRuleButton = page.getByText("Create rule");
4957
+ }
4958
+ url() {
4959
+ return `#/sw/settings/rule/index`;
4960
+ }
4961
+ }
4962
+
4831
4963
  var __defProp$6 = Object.defineProperty;
4832
4964
  var __defNormalProp$6 = (obj, key, value) => key in obj ? __defProp$6(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
4833
4965
  var __publicField$6 = (obj, key, value) => {
@@ -5190,15 +5322,18 @@ const AdminPageObjects = {
5190
5322
  Dashboard,
5191
5323
  DataSharing,
5192
5324
  ShippingListing,
5325
+ ShippingDetail,
5326
+ PaymentDetail,
5193
5327
  Categories,
5194
5328
  CategoryDetail,
5195
5329
  LandingPageCreate,
5196
5330
  LandingPageDetail,
5197
- RuleDetail,
5198
- RuleCreate,
5199
5331
  CustomFieldListing,
5200
5332
  CustomFieldCreate,
5201
5333
  CustomFieldDetail,
5334
+ RuleCreate,
5335
+ RuleDetail,
5336
+ RuleListing,
5202
5337
  ManufacturerCreate,
5203
5338
  ManufacturerDetail,
5204
5339
  ManufacturerListing,
@@ -5249,6 +5384,12 @@ const test$5 = test$e.extend({
5249
5384
  AdminShippingListing: async ({ AdminPage }, use) => {
5250
5385
  await use(new ShippingListing(AdminPage));
5251
5386
  },
5387
+ AdminShippingDetail: async ({ AdminPage }, use) => {
5388
+ await use(new ShippingDetail(AdminPage));
5389
+ },
5390
+ AdminPaymentDetail: async ({ AdminPage }, use) => {
5391
+ await use(new PaymentDetail(AdminPage));
5392
+ },
5252
5393
  AdminCategories: async ({ AdminPage }, use) => {
5253
5394
  await use(new Categories(AdminPage));
5254
5395
  },
@@ -5261,12 +5402,6 @@ const test$5 = test$e.extend({
5261
5402
  AdminLandingPageCreate: async ({ AdminPage }, use) => {
5262
5403
  await use(new LandingPageCreate(AdminPage));
5263
5404
  },
5264
- AdminRuleDetail: async ({ AdminPage }, use) => {
5265
- await use(new RuleDetail(AdminPage));
5266
- },
5267
- AdminRuleCreate: async ({ AdminPage }, use) => {
5268
- await use(new RuleCreate(AdminPage));
5269
- },
5270
5405
  AdminCustomFieldListing: async ({ AdminPage }, use) => {
5271
5406
  await use(new CustomFieldListing(AdminPage));
5272
5407
  },
@@ -5276,6 +5411,15 @@ const test$5 = test$e.extend({
5276
5411
  AdminCustomFieldDetail: async ({ AdminPage }, use) => {
5277
5412
  await use(new CustomFieldDetail(AdminPage));
5278
5413
  },
5414
+ AdminRuleCreate: async ({ AdminPage }, use) => {
5415
+ await use(new RuleCreate(AdminPage));
5416
+ },
5417
+ AdminRuleDetail: async ({ AdminPage }, use) => {
5418
+ await use(new RuleDetail(AdminPage));
5419
+ },
5420
+ AdminRuleListing: async ({ AdminPage }, use) => {
5421
+ await use(new RuleListing(AdminPage));
5422
+ },
5279
5423
  AdminManufacturerListing: async ({ AdminPage }, use) => {
5280
5424
  await use(new ManufacturerListing(AdminPage));
5281
5425
  },
@@ -6117,13 +6261,65 @@ const BulkEditCustomers = test$e.extend({
6117
6261
  }
6118
6262
  });
6119
6263
 
6264
+ var RuleType = /* @__PURE__ */ ((RuleType2) => {
6265
+ RuleType2["shippingAvailability"] = "shippingMethodAvailabilityRule";
6266
+ RuleType2["taxAvailability"] = "taxProviderAvailabilityRule";
6267
+ RuleType2["paymentAvailability"] = "paymentMethodAvailabilityRule";
6268
+ RuleType2["promotionOrder"] = "promotionOrderRule";
6269
+ RuleType2["promotionCustomer"] = "promotionCustomerRule";
6270
+ RuleType2["promotionCart"] = "promotionCartRule";
6271
+ return RuleType2;
6272
+ })(RuleType || {});
6273
+
6274
+ const AssignEntitiesToRule = test$e.extend({
6275
+ AssignEntitiesToRule: async ({ AdminRuleDetail }, use) => {
6276
+ const task = (assignableEntities) => {
6277
+ return async function AssignEntitiesToRule2() {
6278
+ async function entityAssignment(entityName, card) {
6279
+ const entityCard = await AdminRuleDetail.getEntityCard(card);
6280
+ await entityCard.addAssignmentButton.click();
6281
+ await AdminRuleDetail.page.locator(".sw-settings-rule-add-assignment-modal").getByPlaceholder("Search...").fill(entityName);
6282
+ await AdminRuleDetail.page.locator(".sw-data-grid__row").filter({ hasText: entityName }).getByRole("checkbox").click();
6283
+ await AdminRuleDetail.page.locator(".sw-button--primary").getByText("Add").click();
6284
+ }
6285
+ for (const entity of assignableEntities) {
6286
+ switch (entity.ruleType) {
6287
+ case RuleType.shippingAvailability:
6288
+ await entityAssignment(entity.name, AdminRuleDetail.shippingMethodAvailabilityRulesCard);
6289
+ break;
6290
+ case RuleType.taxAvailability:
6291
+ await entityAssignment(entity.name, AdminRuleDetail.taxProviderRulesCard);
6292
+ break;
6293
+ case RuleType.paymentAvailability:
6294
+ await entityAssignment(entity.name, AdminRuleDetail.paymentMethodsAvailabilityRulesCard);
6295
+ break;
6296
+ case RuleType.promotionOrder:
6297
+ await entityAssignment(entity.name, AdminRuleDetail.promotionOrderRulesCard);
6298
+ break;
6299
+ case RuleType.promotionCustomer:
6300
+ await entityAssignment(entity.name, AdminRuleDetail.promotionCustomerRulesCard);
6301
+ break;
6302
+ case RuleType.promotionCart:
6303
+ await entityAssignment(entity.name, AdminRuleDetail.promotionCartRulesCard);
6304
+ break;
6305
+ default:
6306
+ throw new Error(`Unknown rule type "${entity.ruleType}". Valid rule types: "${Object.values(RuleType).join('", "')}".`);
6307
+ }
6308
+ }
6309
+ };
6310
+ };
6311
+ await use(task);
6312
+ }
6313
+ });
6314
+
6120
6315
  const test$3 = mergeTests(
6121
6316
  SaveProduct,
6122
6317
  ExpectNotification,
6123
6318
  CreateLinkTypeCategory,
6124
6319
  SetSystemConfigValues,
6125
6320
  BulkEditProducts,
6126
- BulkEditCustomers
6321
+ BulkEditCustomers,
6322
+ AssignEntitiesToRule
6127
6323
  );
6128
6324
 
6129
6325
  const Login = test$e.extend({
@@ -6613,4 +6809,4 @@ const test = mergeTests(
6613
6809
  test$2
6614
6810
  );
6615
6811
 
6616
- 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 };
6812
+ 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 };