@shopware-ag/acceptance-test-suite 10.0.1 → 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.d.mts +78 -16
- package/dist/index.d.ts +78 -16
- package/dist/index.mjs +792 -631
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -385,16 +385,16 @@ const test$c = test$e.extend({
|
|
|
385
385
|
]
|
|
386
386
|
});
|
|
387
387
|
|
|
388
|
-
var __defProp$
|
|
389
|
-
var __defNormalProp$
|
|
390
|
-
var __publicField$
|
|
391
|
-
__defNormalProp$
|
|
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$
|
|
397
|
-
__publicField$
|
|
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$
|
|
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$
|
|
500
|
-
var __defNormalProp$
|
|
501
|
-
var __publicField$
|
|
502
|
-
__defNormalProp$
|
|
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$
|
|
508
|
-
__publicField$
|
|
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$
|
|
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$
|
|
574
|
-
var __defNormalProp$
|
|
575
|
-
var __publicField$
|
|
576
|
-
__defNormalProp$
|
|
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$
|
|
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$
|
|
879
|
-
var __defNormalProp$
|
|
880
|
-
var __publicField$
|
|
881
|
-
__defNormalProp$
|
|
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$
|
|
887
|
-
__publicField$
|
|
888
|
-
__publicField$
|
|
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$
|
|
938
|
-
var __defNormalProp$
|
|
939
|
-
var __publicField$
|
|
940
|
-
__defNormalProp$
|
|
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$
|
|
946
|
-
__publicField$
|
|
947
|
-
__publicField$
|
|
948
|
-
__publicField$
|
|
949
|
-
__publicField$
|
|
950
|
-
__publicField$
|
|
951
|
-
__publicField$
|
|
952
|
-
__publicField$
|
|
953
|
-
__publicField$
|
|
954
|
-
__publicField$
|
|
955
|
-
__publicField$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
987
|
+
__publicField$P(this, "combineAll", (array) => {
|
|
988
988
|
const result = [];
|
|
989
989
|
const max = array.length - 1;
|
|
990
990
|
const helper = (tmpArray, i) => {
|
|
@@ -1596,7 +1596,7 @@ class TestDataService {
|
|
|
1596
1596
|
}
|
|
1597
1597
|
/**
|
|
1598
1598
|
* Creates a new domain for a sales channel.
|
|
1599
|
-
*
|
|
1599
|
+
*
|
|
1600
1600
|
* @param overrides - Specific data overrides that will be applied to the sales channel domain data struct.
|
|
1601
1601
|
*/
|
|
1602
1602
|
async createSalesChannelDomain(overrides = {}) {
|
|
@@ -2926,16 +2926,16 @@ const test$8 = test$e.extend({
|
|
|
2926
2926
|
}
|
|
2927
2927
|
});
|
|
2928
2928
|
|
|
2929
|
-
var __defProp$
|
|
2930
|
-
var __defNormalProp$
|
|
2931
|
-
var __publicField$
|
|
2932
|
-
__defNormalProp$
|
|
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);
|
|
2933
2933
|
return value;
|
|
2934
2934
|
};
|
|
2935
2935
|
class IdProvider {
|
|
2936
2936
|
constructor(workerIndex, seed) {
|
|
2937
|
-
__publicField$
|
|
2938
|
-
__publicField$
|
|
2937
|
+
__publicField$O(this, "workerIndex");
|
|
2938
|
+
__publicField$O(this, "seed");
|
|
2939
2939
|
this.workerIndex = workerIndex;
|
|
2940
2940
|
this.seed = seed;
|
|
2941
2941
|
}
|
|
@@ -3009,34 +3009,34 @@ const test$7 = test$e.extend({
|
|
|
3009
3009
|
]
|
|
3010
3010
|
});
|
|
3011
3011
|
|
|
3012
|
-
var __defProp$
|
|
3013
|
-
var __defNormalProp$
|
|
3014
|
-
var __publicField$
|
|
3015
|
-
__defNormalProp$
|
|
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);
|
|
3016
3016
|
return value;
|
|
3017
3017
|
};
|
|
3018
3018
|
class Home {
|
|
3019
3019
|
constructor(page) {
|
|
3020
3020
|
this.page = page;
|
|
3021
|
-
__publicField$
|
|
3022
|
-
__publicField$
|
|
3023
|
-
__publicField$
|
|
3024
|
-
__publicField$
|
|
3025
|
-
__publicField$
|
|
3026
|
-
__publicField$
|
|
3027
|
-
__publicField$
|
|
3028
|
-
__publicField$
|
|
3029
|
-
__publicField$
|
|
3030
|
-
__publicField$
|
|
3031
|
-
__publicField$
|
|
3032
|
-
__publicField$
|
|
3033
|
-
__publicField$
|
|
3034
|
-
__publicField$
|
|
3035
|
-
__publicField$
|
|
3036
|
-
__publicField$
|
|
3037
|
-
__publicField$
|
|
3038
|
-
__publicField$
|
|
3039
|
-
__publicField$
|
|
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");
|
|
3040
3040
|
this.productImages = page.locator(".product-image-link");
|
|
3041
3041
|
this.productListItems = page.getByRole("listitem");
|
|
3042
3042
|
this.languagesDropdown = page.locator(".top-bar-language").filter({ has: page.getByRole("button") });
|
|
@@ -3085,26 +3085,26 @@ class Home {
|
|
|
3085
3085
|
}
|
|
3086
3086
|
}
|
|
3087
3087
|
|
|
3088
|
-
var __defProp$
|
|
3089
|
-
var __defNormalProp$
|
|
3090
|
-
var __publicField$
|
|
3091
|
-
__defNormalProp$
|
|
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);
|
|
3092
3092
|
return value;
|
|
3093
3093
|
};
|
|
3094
3094
|
let ProductDetail$1 = class ProductDetail {
|
|
3095
3095
|
constructor(page) {
|
|
3096
3096
|
this.page = page;
|
|
3097
|
-
__publicField$
|
|
3098
|
-
__publicField$
|
|
3099
|
-
__publicField$
|
|
3100
|
-
__publicField$
|
|
3101
|
-
__publicField$
|
|
3102
|
-
__publicField$
|
|
3103
|
-
__publicField$
|
|
3104
|
-
__publicField$
|
|
3105
|
-
__publicField$
|
|
3106
|
-
__publicField$
|
|
3107
|
-
__publicField$
|
|
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");
|
|
3108
3108
|
this.addToCartButton = page.getByRole("button", { name: "Add to shopping cart" });
|
|
3109
3109
|
this.quantitySelect = page.getByLabel("Quantity", { exact: true });
|
|
3110
3110
|
this.productSingleImage = page.locator(".gallery-slider-single-image");
|
|
@@ -3126,18 +3126,18 @@ let ProductDetail$1 = class ProductDetail {
|
|
|
3126
3126
|
}
|
|
3127
3127
|
};
|
|
3128
3128
|
|
|
3129
|
-
var __defProp$
|
|
3130
|
-
var __defNormalProp$
|
|
3131
|
-
var __publicField$
|
|
3132
|
-
__defNormalProp$
|
|
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);
|
|
3133
3133
|
return value;
|
|
3134
3134
|
};
|
|
3135
3135
|
class Category {
|
|
3136
3136
|
constructor(page) {
|
|
3137
3137
|
this.page = page;
|
|
3138
|
-
__publicField$
|
|
3139
|
-
__publicField$
|
|
3140
|
-
__publicField$
|
|
3138
|
+
__publicField$L(this, "sortingSelect");
|
|
3139
|
+
__publicField$L(this, "firstProductBuyButton");
|
|
3140
|
+
__publicField$L(this, "noProductsFoundAlert");
|
|
3141
3141
|
this.sortingSelect = page.getByLabel("Sorting");
|
|
3142
3142
|
this.firstProductBuyButton = page.getByRole("button", { name: "Add to shopping cart" }).first();
|
|
3143
3143
|
this.noProductsFoundAlert = page.getByText("No products found.");
|
|
@@ -3147,24 +3147,24 @@ class Category {
|
|
|
3147
3147
|
}
|
|
3148
3148
|
}
|
|
3149
3149
|
|
|
3150
|
-
var __defProp$
|
|
3151
|
-
var __defNormalProp$
|
|
3152
|
-
var __publicField$
|
|
3153
|
-
__defNormalProp$
|
|
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);
|
|
3154
3154
|
return value;
|
|
3155
3155
|
};
|
|
3156
3156
|
class CheckoutCart {
|
|
3157
3157
|
constructor(page) {
|
|
3158
3158
|
this.page = page;
|
|
3159
|
-
__publicField$
|
|
3160
|
-
__publicField$
|
|
3161
|
-
__publicField$
|
|
3162
|
-
__publicField$
|
|
3163
|
-
__publicField$
|
|
3164
|
-
__publicField$
|
|
3165
|
-
__publicField$
|
|
3166
|
-
__publicField$
|
|
3167
|
-
__publicField$
|
|
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");
|
|
3168
3168
|
this.headline = page.getByRole("heading", { name: "Shopping cart" });
|
|
3169
3169
|
this.goToCheckoutButton = page.getByRole("link", { name: "Go to checkout" });
|
|
3170
3170
|
this.enterPromoInput = page.getByLabel("Promo code");
|
|
@@ -3205,25 +3205,25 @@ class CheckoutCart {
|
|
|
3205
3205
|
}
|
|
3206
3206
|
}
|
|
3207
3207
|
|
|
3208
|
-
var __defProp$
|
|
3209
|
-
var __defNormalProp$
|
|
3210
|
-
var __publicField$
|
|
3211
|
-
__defNormalProp$
|
|
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);
|
|
3212
3212
|
return value;
|
|
3213
3213
|
};
|
|
3214
3214
|
class OffCanvasCart {
|
|
3215
3215
|
constructor(page) {
|
|
3216
3216
|
this.page = page;
|
|
3217
|
-
__publicField$
|
|
3218
|
-
__publicField$
|
|
3219
|
-
__publicField$
|
|
3220
|
-
__publicField$
|
|
3221
|
-
__publicField$
|
|
3222
|
-
__publicField$
|
|
3223
|
-
__publicField$
|
|
3224
|
-
__publicField$
|
|
3225
|
-
__publicField$
|
|
3226
|
-
__publicField$
|
|
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");
|
|
3227
3227
|
this.headline = page.getByRole("heading", { name: "Shopping cart" });
|
|
3228
3228
|
this.itemCount = page.locator(".offcanvas-cart-header-count");
|
|
3229
3229
|
this.goToCheckoutButton = page.getByRole("link", { name: "Go to checkout" });
|
|
@@ -3265,36 +3265,36 @@ class OffCanvasCart {
|
|
|
3265
3265
|
}
|
|
3266
3266
|
}
|
|
3267
3267
|
|
|
3268
|
-
var __defProp$
|
|
3269
|
-
var __defNormalProp$
|
|
3270
|
-
var __publicField$
|
|
3271
|
-
__defNormalProp$
|
|
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);
|
|
3272
3272
|
return value;
|
|
3273
3273
|
};
|
|
3274
3274
|
class CheckoutConfirm {
|
|
3275
3275
|
constructor(page) {
|
|
3276
3276
|
this.page = page;
|
|
3277
|
-
__publicField$
|
|
3278
|
-
__publicField$
|
|
3279
|
-
__publicField$
|
|
3280
|
-
__publicField$
|
|
3281
|
-
__publicField$
|
|
3282
|
-
__publicField$
|
|
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");
|
|
3283
3283
|
/**
|
|
3284
3284
|
* Payment options
|
|
3285
3285
|
*/
|
|
3286
|
-
__publicField$
|
|
3287
|
-
__publicField$
|
|
3288
|
-
__publicField$
|
|
3286
|
+
__publicField$I(this, "paymentCashOnDelivery");
|
|
3287
|
+
__publicField$I(this, "paymentPaidInAdvance");
|
|
3288
|
+
__publicField$I(this, "paymentInvoice");
|
|
3289
3289
|
/**
|
|
3290
3290
|
* Shipping options
|
|
3291
3291
|
*/
|
|
3292
|
-
__publicField$
|
|
3293
|
-
__publicField$
|
|
3292
|
+
__publicField$I(this, "shippingStandard");
|
|
3293
|
+
__publicField$I(this, "shippingExpress");
|
|
3294
3294
|
/**
|
|
3295
3295
|
* Product details
|
|
3296
3296
|
*/
|
|
3297
|
-
__publicField$
|
|
3297
|
+
__publicField$I(this, "cartLineItemImages");
|
|
3298
3298
|
this.headline = page.getByRole("heading", { name: "Complete order" });
|
|
3299
3299
|
this.termsAndConditionsCheckbox = page.getByLabel("I have read and accepted the general terms and conditions.");
|
|
3300
3300
|
this.immediateAccessToDigitalProductCheckbox = page.getByLabel("I want immediate access to the digital content and I acknowledge that thereby I waive my right to cancel.");
|
|
@@ -3313,21 +3313,21 @@ class CheckoutConfirm {
|
|
|
3313
3313
|
}
|
|
3314
3314
|
}
|
|
3315
3315
|
|
|
3316
|
-
var __defProp$
|
|
3317
|
-
var __defNormalProp$
|
|
3318
|
-
var __publicField$
|
|
3319
|
-
__defNormalProp$
|
|
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);
|
|
3320
3320
|
return value;
|
|
3321
3321
|
};
|
|
3322
3322
|
class CheckoutFinish {
|
|
3323
3323
|
constructor(page) {
|
|
3324
3324
|
this.page = page;
|
|
3325
|
-
__publicField$
|
|
3326
|
-
__publicField$
|
|
3327
|
-
__publicField$
|
|
3328
|
-
__publicField$
|
|
3329
|
-
__publicField$
|
|
3330
|
-
__publicField$
|
|
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+)/);
|
|
3331
3331
|
this.headline = page.getByRole("heading", { name: "Thank you for your order" });
|
|
3332
3332
|
this.orderNumberText = page.getByText(this.orderNumberRegex);
|
|
3333
3333
|
this.grandTotalPrice = page.locator('dt:has-text("Grand total") + dd');
|
|
@@ -3356,16 +3356,16 @@ class CheckoutFinish {
|
|
|
3356
3356
|
}
|
|
3357
3357
|
}
|
|
3358
3358
|
|
|
3359
|
-
var __defProp$
|
|
3360
|
-
var __defNormalProp$
|
|
3361
|
-
var __publicField$
|
|
3362
|
-
__defNormalProp$
|
|
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);
|
|
3363
3363
|
return value;
|
|
3364
3364
|
};
|
|
3365
3365
|
class CheckoutRegister {
|
|
3366
3366
|
constructor(page) {
|
|
3367
3367
|
this.page = page;
|
|
3368
|
-
__publicField$
|
|
3368
|
+
__publicField$G(this, "cartLineItemImages");
|
|
3369
3369
|
this.cartLineItemImages = page.locator(".line-item-img-link");
|
|
3370
3370
|
}
|
|
3371
3371
|
url() {
|
|
@@ -3373,23 +3373,23 @@ class CheckoutRegister {
|
|
|
3373
3373
|
}
|
|
3374
3374
|
}
|
|
3375
3375
|
|
|
3376
|
-
var __defProp$
|
|
3377
|
-
var __defNormalProp$
|
|
3378
|
-
var __publicField$
|
|
3379
|
-
__defNormalProp$
|
|
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);
|
|
3380
3380
|
return value;
|
|
3381
3381
|
};
|
|
3382
3382
|
class Account {
|
|
3383
3383
|
constructor(page) {
|
|
3384
3384
|
this.page = page;
|
|
3385
|
-
__publicField$
|
|
3386
|
-
__publicField$
|
|
3387
|
-
__publicField$
|
|
3388
|
-
__publicField$
|
|
3389
|
-
__publicField$
|
|
3390
|
-
__publicField$
|
|
3391
|
-
__publicField$
|
|
3392
|
-
__publicField$
|
|
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");
|
|
3393
3393
|
this.headline = page.getByRole("heading", { name: "Overview" });
|
|
3394
3394
|
this.personalDataCardTitle = page.getByRole("heading", { name: "Personal data" });
|
|
3395
3395
|
this.paymentMethodCardTitle = page.getByRole("heading", { name: "Default payment method" });
|
|
@@ -3407,37 +3407,37 @@ class Account {
|
|
|
3407
3407
|
}
|
|
3408
3408
|
}
|
|
3409
3409
|
|
|
3410
|
-
var __defProp$
|
|
3411
|
-
var __defNormalProp$
|
|
3412
|
-
var __publicField$
|
|
3413
|
-
__defNormalProp$
|
|
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);
|
|
3414
3414
|
return value;
|
|
3415
3415
|
};
|
|
3416
3416
|
class AccountLogin {
|
|
3417
3417
|
constructor(page) {
|
|
3418
3418
|
this.page = page;
|
|
3419
|
-
__publicField$
|
|
3420
|
-
__publicField$
|
|
3421
|
-
__publicField$
|
|
3422
|
-
__publicField$
|
|
3423
|
-
__publicField$
|
|
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");
|
|
3424
3424
|
// Inputs for registration
|
|
3425
|
-
__publicField$
|
|
3426
|
-
__publicField$
|
|
3427
|
-
__publicField$
|
|
3428
|
-
__publicField$
|
|
3429
|
-
__publicField$
|
|
3430
|
-
__publicField$
|
|
3431
|
-
__publicField$
|
|
3432
|
-
__publicField$
|
|
3433
|
-
__publicField$
|
|
3434
|
-
__publicField$
|
|
3435
|
-
__publicField$
|
|
3436
|
-
__publicField$
|
|
3437
|
-
__publicField$
|
|
3438
|
-
__publicField$
|
|
3439
|
-
__publicField$
|
|
3440
|
-
__publicField$
|
|
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");
|
|
3441
3441
|
this.emailInput = page.getByLabel("Your email address");
|
|
3442
3442
|
this.passwordInput = page.getByLabel("Your password");
|
|
3443
3443
|
this.loginButton = page.getByRole("button", { name: "Log in" });
|
|
@@ -3466,29 +3466,29 @@ class AccountLogin {
|
|
|
3466
3466
|
}
|
|
3467
3467
|
}
|
|
3468
3468
|
|
|
3469
|
-
var __defProp$
|
|
3470
|
-
var __defNormalProp$
|
|
3471
|
-
var __publicField$
|
|
3472
|
-
__defNormalProp$
|
|
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);
|
|
3473
3473
|
return value;
|
|
3474
3474
|
};
|
|
3475
3475
|
class AccountProfile {
|
|
3476
3476
|
constructor(page) {
|
|
3477
3477
|
this.page = page;
|
|
3478
|
-
__publicField$
|
|
3479
|
-
__publicField$
|
|
3480
|
-
__publicField$
|
|
3481
|
-
__publicField$
|
|
3482
|
-
__publicField$
|
|
3483
|
-
__publicField$
|
|
3484
|
-
__publicField$
|
|
3485
|
-
__publicField$
|
|
3486
|
-
__publicField$
|
|
3487
|
-
__publicField$
|
|
3488
|
-
__publicField$
|
|
3489
|
-
__publicField$
|
|
3490
|
-
__publicField$
|
|
3491
|
-
__publicField$
|
|
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");
|
|
3492
3492
|
this.salutationSelect = page.getByLabel("Salutation");
|
|
3493
3493
|
this.firstNameInput = page.getByPlaceholder("Enter first name...");
|
|
3494
3494
|
this.lastNameInput = page.getByPlaceholder("Enter last name...");
|
|
@@ -3509,22 +3509,22 @@ class AccountProfile {
|
|
|
3509
3509
|
}
|
|
3510
3510
|
}
|
|
3511
3511
|
|
|
3512
|
-
var __defProp$
|
|
3513
|
-
var __defNormalProp$
|
|
3514
|
-
var __publicField$
|
|
3515
|
-
__defNormalProp$
|
|
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);
|
|
3516
3516
|
return value;
|
|
3517
3517
|
};
|
|
3518
3518
|
class AccountOrder {
|
|
3519
3519
|
constructor(page) {
|
|
3520
3520
|
this.page = page;
|
|
3521
|
-
__publicField$
|
|
3522
|
-
__publicField$
|
|
3523
|
-
__publicField$
|
|
3524
|
-
__publicField$
|
|
3525
|
-
__publicField$
|
|
3526
|
-
__publicField$
|
|
3527
|
-
__publicField$
|
|
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) => {
|
|
3528
3528
|
const orderContainer = this.page.locator(".order-item-header", { hasText: `Order Number: ${orderNumber}` });
|
|
3529
3529
|
return orderContainer.getByText("View Subscription");
|
|
3530
3530
|
});
|
|
@@ -3569,20 +3569,20 @@ class AccountOrder {
|
|
|
3569
3569
|
}
|
|
3570
3570
|
}
|
|
3571
3571
|
|
|
3572
|
-
var __defProp$
|
|
3573
|
-
var __defNormalProp$
|
|
3574
|
-
var __publicField$
|
|
3575
|
-
__defNormalProp$
|
|
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);
|
|
3576
3576
|
return value;
|
|
3577
3577
|
};
|
|
3578
3578
|
class AccountAddresses {
|
|
3579
3579
|
constructor(page) {
|
|
3580
3580
|
this.page = page;
|
|
3581
|
-
__publicField$
|
|
3582
|
-
__publicField$
|
|
3583
|
-
__publicField$
|
|
3584
|
-
__publicField$
|
|
3585
|
-
__publicField$
|
|
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");
|
|
3586
3586
|
this.addNewAddressButton = page.getByRole("link", { name: /Add (new )?address/ });
|
|
3587
3587
|
this.editBillingAddressButton = page.getByRole("link", { name: "Edit address" }).first();
|
|
3588
3588
|
this.editShippingAddressButton = page.getByRole("link", { name: "Edit address" }).nth(1);
|
|
@@ -3594,19 +3594,19 @@ class AccountAddresses {
|
|
|
3594
3594
|
}
|
|
3595
3595
|
}
|
|
3596
3596
|
|
|
3597
|
-
var __defProp$
|
|
3598
|
-
var __defNormalProp$
|
|
3599
|
-
var __publicField$
|
|
3600
|
-
__defNormalProp$
|
|
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);
|
|
3601
3601
|
return value;
|
|
3602
3602
|
};
|
|
3603
3603
|
class AccountPayment {
|
|
3604
3604
|
constructor(page) {
|
|
3605
3605
|
this.page = page;
|
|
3606
|
-
__publicField$
|
|
3607
|
-
__publicField$
|
|
3608
|
-
__publicField$
|
|
3609
|
-
__publicField$
|
|
3606
|
+
__publicField$A(this, "cashOnDeliveryOption");
|
|
3607
|
+
__publicField$A(this, "paidInAdvanceOption");
|
|
3608
|
+
__publicField$A(this, "invoiceOption");
|
|
3609
|
+
__publicField$A(this, "changeDefaultPaymentButton");
|
|
3610
3610
|
this.cashOnDeliveryOption = page.getByLabel("Cash on delivery");
|
|
3611
3611
|
this.paidInAdvanceOption = page.getByLabel("Paid in advance");
|
|
3612
3612
|
this.invoiceOption = page.getByLabel("Invoice");
|
|
@@ -3617,17 +3617,17 @@ class AccountPayment {
|
|
|
3617
3617
|
}
|
|
3618
3618
|
}
|
|
3619
3619
|
|
|
3620
|
-
var __defProp$
|
|
3621
|
-
var __defNormalProp$
|
|
3622
|
-
var __publicField$
|
|
3623
|
-
__defNormalProp$
|
|
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);
|
|
3624
3624
|
return value;
|
|
3625
3625
|
};
|
|
3626
3626
|
class Search {
|
|
3627
3627
|
constructor(page) {
|
|
3628
3628
|
this.page = page;
|
|
3629
|
-
__publicField$
|
|
3630
|
-
__publicField$
|
|
3629
|
+
__publicField$z(this, "headline");
|
|
3630
|
+
__publicField$z(this, "productImages");
|
|
3631
3631
|
this.headline = page.locator("h1.search-headline");
|
|
3632
3632
|
this.productImages = page.locator(".product-image-link");
|
|
3633
3633
|
}
|
|
@@ -3636,16 +3636,16 @@ class Search {
|
|
|
3636
3636
|
}
|
|
3637
3637
|
}
|
|
3638
3638
|
|
|
3639
|
-
var __defProp$
|
|
3640
|
-
var __defNormalProp$
|
|
3641
|
-
var __publicField$
|
|
3642
|
-
__defNormalProp$
|
|
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);
|
|
3643
3643
|
return value;
|
|
3644
3644
|
};
|
|
3645
3645
|
class SearchSuggest {
|
|
3646
3646
|
constructor(page) {
|
|
3647
3647
|
this.page = page;
|
|
3648
|
-
__publicField$
|
|
3648
|
+
__publicField$y(this, "searchSuggestLineItemImages");
|
|
3649
3649
|
this.searchSuggestLineItemImages = page.locator(".search-suggest-product-image-container");
|
|
3650
3650
|
}
|
|
3651
3651
|
url(searchTerm) {
|
|
@@ -3663,31 +3663,31 @@ class CustomRegister extends AccountLogin {
|
|
|
3663
3663
|
}
|
|
3664
3664
|
}
|
|
3665
3665
|
|
|
3666
|
-
var __defProp$
|
|
3667
|
-
var __defNormalProp$
|
|
3668
|
-
var __publicField$
|
|
3669
|
-
__defNormalProp$
|
|
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);
|
|
3670
3670
|
return value;
|
|
3671
3671
|
};
|
|
3672
3672
|
class CheckoutOrderEdit {
|
|
3673
3673
|
constructor(page) {
|
|
3674
3674
|
this.page = page;
|
|
3675
|
-
__publicField$
|
|
3676
|
-
__publicField$
|
|
3677
|
-
__publicField$
|
|
3678
|
-
__publicField$
|
|
3679
|
-
__publicField$
|
|
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");
|
|
3680
3680
|
/**
|
|
3681
3681
|
* Payment options
|
|
3682
3682
|
*/
|
|
3683
|
-
__publicField$
|
|
3684
|
-
__publicField$
|
|
3685
|
-
__publicField$
|
|
3683
|
+
__publicField$x(this, "paymentCashOnDelivery");
|
|
3684
|
+
__publicField$x(this, "paymentPaidInAdvance");
|
|
3685
|
+
__publicField$x(this, "paymentInvoice");
|
|
3686
3686
|
/**
|
|
3687
3687
|
* Shipping options
|
|
3688
3688
|
*/
|
|
3689
|
-
__publicField$
|
|
3690
|
-
__publicField$
|
|
3689
|
+
__publicField$x(this, "shippingStandard");
|
|
3690
|
+
__publicField$x(this, "shippingExpress");
|
|
3691
3691
|
this.completePaymentButton = page.getByRole("button", { name: "Complete payment" });
|
|
3692
3692
|
this.orderCancelButton = page.getByRole("button", { name: "Cancel order" });
|
|
3693
3693
|
this.dialogOrderCancel = page.getByRole("dialog", { name: "Cancel order" });
|
|
@@ -3781,10 +3781,10 @@ const test$6 = test$e.extend({
|
|
|
3781
3781
|
}
|
|
3782
3782
|
});
|
|
3783
3783
|
|
|
3784
|
-
var __defProp$
|
|
3785
|
-
var __defNormalProp$
|
|
3786
|
-
var __publicField$
|
|
3787
|
-
__defNormalProp$
|
|
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);
|
|
3788
3788
|
return value;
|
|
3789
3789
|
};
|
|
3790
3790
|
class ProductDetail {
|
|
@@ -3793,67 +3793,67 @@ class ProductDetail {
|
|
|
3793
3793
|
/**
|
|
3794
3794
|
* Save interactions
|
|
3795
3795
|
*/
|
|
3796
|
-
__publicField$
|
|
3797
|
-
__publicField$
|
|
3798
|
-
__publicField$
|
|
3796
|
+
__publicField$w(this, "savePhysicalProductButton");
|
|
3797
|
+
__publicField$w(this, "saveButtonLoadingSpinner");
|
|
3798
|
+
__publicField$w(this, "saveButtonCheckMark");
|
|
3799
3799
|
/**
|
|
3800
3800
|
* General Info
|
|
3801
3801
|
*/
|
|
3802
|
-
__publicField$
|
|
3802
|
+
__publicField$w(this, "manufacturerDropdownText");
|
|
3803
3803
|
/**
|
|
3804
3804
|
* Prices
|
|
3805
3805
|
*/
|
|
3806
|
-
__publicField$
|
|
3806
|
+
__publicField$w(this, "priceGrossInput");
|
|
3807
3807
|
/**
|
|
3808
3808
|
* Deliverability
|
|
3809
3809
|
*/
|
|
3810
|
-
__publicField$
|
|
3811
|
-
__publicField$
|
|
3810
|
+
__publicField$w(this, "stockInput");
|
|
3811
|
+
__publicField$w(this, "restockTimeInput");
|
|
3812
3812
|
/**
|
|
3813
3813
|
* Visibility
|
|
3814
3814
|
*/
|
|
3815
|
-
__publicField$
|
|
3816
|
-
__publicField$
|
|
3817
|
-
__publicField$
|
|
3815
|
+
__publicField$w(this, "activeForAllSalesChannelsToggle");
|
|
3816
|
+
__publicField$w(this, "tagsInput");
|
|
3817
|
+
__publicField$w(this, "saleChannelsInput");
|
|
3818
3818
|
/**
|
|
3819
3819
|
* Labelling
|
|
3820
3820
|
*/
|
|
3821
|
-
__publicField$
|
|
3821
|
+
__publicField$w(this, "releaseDateInput");
|
|
3822
3822
|
/**
|
|
3823
3823
|
* Media Upload interactions
|
|
3824
3824
|
*/
|
|
3825
|
-
__publicField$
|
|
3826
|
-
__publicField$
|
|
3827
|
-
__publicField$
|
|
3825
|
+
__publicField$w(this, "uploadMediaButton");
|
|
3826
|
+
__publicField$w(this, "coverImage");
|
|
3827
|
+
__publicField$w(this, "productImage");
|
|
3828
3828
|
/**
|
|
3829
3829
|
* Tabs
|
|
3830
3830
|
*/
|
|
3831
|
-
__publicField$
|
|
3832
|
-
__publicField$
|
|
3831
|
+
__publicField$w(this, "variantsTabLink");
|
|
3832
|
+
__publicField$w(this, "specificationsTabLink");
|
|
3833
3833
|
/**
|
|
3834
3834
|
* Variants Generation
|
|
3835
3835
|
*/
|
|
3836
|
-
__publicField$
|
|
3837
|
-
__publicField$
|
|
3838
|
-
__publicField$
|
|
3839
|
-
__publicField$
|
|
3840
|
-
__publicField$
|
|
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");
|
|
3841
3841
|
/**
|
|
3842
3842
|
* Property Selection
|
|
3843
3843
|
*/
|
|
3844
|
-
__publicField$
|
|
3845
|
-
__publicField$
|
|
3846
|
-
__publicField$
|
|
3847
|
-
__publicField$
|
|
3848
|
-
__publicField$
|
|
3849
|
-
__publicField$
|
|
3850
|
-
__publicField$
|
|
3851
|
-
__publicField$
|
|
3852
|
-
__publicField$
|
|
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");
|
|
3853
3853
|
/**
|
|
3854
3854
|
* Cards
|
|
3855
3855
|
*/
|
|
3856
|
-
__publicField$
|
|
3856
|
+
__publicField$w(this, "customFieldCard");
|
|
3857
3857
|
this.savePhysicalProductButton = page.getByRole("button", { name: "Save" });
|
|
3858
3858
|
this.saveButtonCheckMark = page.locator(".icon--regular-checkmark-xs");
|
|
3859
3859
|
this.saveButtonLoadingSpinner = page.locator("sw-loader");
|
|
@@ -3900,18 +3900,18 @@ class ProductDetail {
|
|
|
3900
3900
|
}
|
|
3901
3901
|
}
|
|
3902
3902
|
|
|
3903
|
-
var __defProp$
|
|
3904
|
-
var __defNormalProp$
|
|
3905
|
-
var __publicField$
|
|
3906
|
-
__defNormalProp$
|
|
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);
|
|
3907
3907
|
return value;
|
|
3908
3908
|
};
|
|
3909
3909
|
class OrderDetail {
|
|
3910
3910
|
constructor(page) {
|
|
3911
3911
|
this.page = page;
|
|
3912
|
-
__publicField$
|
|
3913
|
-
__publicField$
|
|
3914
|
-
__publicField$
|
|
3912
|
+
__publicField$v(this, "saveButton");
|
|
3913
|
+
__publicField$v(this, "dataGridContextButton");
|
|
3914
|
+
__publicField$v(this, "orderTag");
|
|
3915
3915
|
this.saveButton = page.locator(".sw-order-detail__smart-bar-save-button");
|
|
3916
3916
|
this.dataGridContextButton = page.locator(".sw-data-grid__actions-menu").and(page.getByRole("button"));
|
|
3917
3917
|
this.orderTag = page.locator(".sw-select-selection-list__item");
|
|
@@ -3921,24 +3921,24 @@ class OrderDetail {
|
|
|
3921
3921
|
}
|
|
3922
3922
|
}
|
|
3923
3923
|
|
|
3924
|
-
var __defProp$
|
|
3925
|
-
var __defNormalProp$
|
|
3926
|
-
var __publicField$
|
|
3927
|
-
__defNormalProp$
|
|
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);
|
|
3928
3928
|
return value;
|
|
3929
3929
|
};
|
|
3930
3930
|
class CustomerListing {
|
|
3931
3931
|
constructor(page) {
|
|
3932
3932
|
this.page = page;
|
|
3933
|
-
__publicField$
|
|
3934
|
-
__publicField$
|
|
3935
|
-
__publicField$
|
|
3936
|
-
__publicField$
|
|
3933
|
+
__publicField$u(this, "headline");
|
|
3934
|
+
__publicField$u(this, "addCustomerButton");
|
|
3935
|
+
__publicField$u(this, "bulkEditButton");
|
|
3936
|
+
__publicField$u(this, "deleteButton");
|
|
3937
3937
|
//Customer Bulk Edit Modal
|
|
3938
|
-
__publicField$
|
|
3939
|
-
__publicField$
|
|
3940
|
-
__publicField$
|
|
3941
|
-
__publicField$
|
|
3938
|
+
__publicField$u(this, "bulkEditModal");
|
|
3939
|
+
__publicField$u(this, "startBulkEditButton");
|
|
3940
|
+
__publicField$u(this, "cancelButton");
|
|
3941
|
+
__publicField$u(this, "modalHeaderCheckbox");
|
|
3942
3942
|
this.headline = page.getByRole("heading", { name: "Customers" });
|
|
3943
3943
|
this.addCustomerButton = page.locator(".sw-customer-list__button-create");
|
|
3944
3944
|
this.bulkEditButton = page.getByRole("button", { name: "Bulk edit" });
|
|
@@ -3999,26 +3999,26 @@ class CustomerListing {
|
|
|
3999
3999
|
}
|
|
4000
4000
|
}
|
|
4001
4001
|
|
|
4002
|
-
var __defProp$
|
|
4003
|
-
var __defNormalProp$
|
|
4004
|
-
var __publicField$
|
|
4005
|
-
__defNormalProp$
|
|
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);
|
|
4006
4006
|
return value;
|
|
4007
4007
|
};
|
|
4008
4008
|
class CustomerDetail {
|
|
4009
4009
|
constructor(page) {
|
|
4010
4010
|
this.page = page;
|
|
4011
|
-
__publicField$
|
|
4012
|
-
__publicField$
|
|
4013
|
-
__publicField$
|
|
4014
|
-
__publicField$
|
|
4015
|
-
__publicField$
|
|
4016
|
-
__publicField$
|
|
4017
|
-
__publicField$
|
|
4018
|
-
__publicField$
|
|
4019
|
-
__publicField$
|
|
4020
|
-
__publicField$
|
|
4021
|
-
__publicField$
|
|
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");
|
|
4022
4022
|
this.editButton = page.getByRole("button", { name: "Edit" });
|
|
4023
4023
|
this.generalTab = page.getByRole("link", { name: "General" });
|
|
4024
4024
|
this.accountCard = page.locator(".sw-customer-card");
|
|
@@ -4066,17 +4066,17 @@ class CustomerDetail {
|
|
|
4066
4066
|
}
|
|
4067
4067
|
}
|
|
4068
4068
|
|
|
4069
|
-
var __defProp$
|
|
4070
|
-
var __defNormalProp$
|
|
4071
|
-
var __publicField$
|
|
4072
|
-
__defNormalProp$
|
|
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);
|
|
4073
4073
|
return value;
|
|
4074
4074
|
};
|
|
4075
4075
|
class CustomerGroupListing {
|
|
4076
4076
|
constructor(page) {
|
|
4077
4077
|
this.page = page;
|
|
4078
|
-
__publicField$
|
|
4079
|
-
__publicField$
|
|
4078
|
+
__publicField$s(this, "headline");
|
|
4079
|
+
__publicField$s(this, "addCustomerGroupButton");
|
|
4080
4080
|
this.headline = page.getByRole("heading", { name: "Customer groups" });
|
|
4081
4081
|
this.addCustomerGroupButton = page.locator(".sw-settings-customer-group-list__create");
|
|
4082
4082
|
}
|
|
@@ -4098,29 +4098,29 @@ class CustomerGroupListing {
|
|
|
4098
4098
|
}
|
|
4099
4099
|
}
|
|
4100
4100
|
|
|
4101
|
-
var __defProp$
|
|
4102
|
-
var __defNormalProp$
|
|
4103
|
-
var __publicField$
|
|
4104
|
-
__defNormalProp$
|
|
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);
|
|
4105
4105
|
return value;
|
|
4106
4106
|
};
|
|
4107
4107
|
class CustomerGroupCreate {
|
|
4108
4108
|
constructor(page) {
|
|
4109
4109
|
this.page = page;
|
|
4110
|
-
__publicField$
|
|
4111
|
-
__publicField$
|
|
4112
|
-
__publicField$
|
|
4113
|
-
__publicField$
|
|
4114
|
-
__publicField$
|
|
4115
|
-
__publicField$
|
|
4116
|
-
__publicField$
|
|
4117
|
-
__publicField$
|
|
4118
|
-
__publicField$
|
|
4119
|
-
__publicField$
|
|
4120
|
-
__publicField$
|
|
4121
|
-
__publicField$
|
|
4122
|
-
__publicField$
|
|
4123
|
-
__publicField$
|
|
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");
|
|
4124
4124
|
this.headline = page.getByRole("heading", { name: "New customer group" });
|
|
4125
4125
|
this.saveButton = page.getByRole("button", { name: "Save" });
|
|
4126
4126
|
this.cancelButton = page.getByRole("button", { name: "Cancel" });
|
|
@@ -4141,20 +4141,20 @@ class CustomerGroupCreate {
|
|
|
4141
4141
|
}
|
|
4142
4142
|
}
|
|
4143
4143
|
|
|
4144
|
-
var __defProp$
|
|
4145
|
-
var __defNormalProp$
|
|
4146
|
-
var __publicField$
|
|
4147
|
-
__defNormalProp$
|
|
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);
|
|
4148
4148
|
return value;
|
|
4149
4149
|
};
|
|
4150
4150
|
class CustomerGroupDetail extends CustomerGroupCreate {
|
|
4151
4151
|
constructor(page) {
|
|
4152
4152
|
super(page);
|
|
4153
4153
|
this.page = page;
|
|
4154
|
-
__publicField$
|
|
4155
|
-
__publicField$
|
|
4156
|
-
__publicField$
|
|
4157
|
-
__publicField$
|
|
4154
|
+
__publicField$q(this, "headline");
|
|
4155
|
+
__publicField$q(this, "selectedSalesChannel");
|
|
4156
|
+
__publicField$q(this, "technicalUrl");
|
|
4157
|
+
__publicField$q(this, "saleschannelUrl");
|
|
4158
4158
|
this.headline = page.locator(".smart-bar__header");
|
|
4159
4159
|
this.selectedSalesChannel = page.locator(".sw-select-selection-list");
|
|
4160
4160
|
this.technicalUrl = page.getByLabel("Technical URL");
|
|
@@ -4165,53 +4165,53 @@ class CustomerGroupDetail extends CustomerGroupCreate {
|
|
|
4165
4165
|
}
|
|
4166
4166
|
}
|
|
4167
4167
|
|
|
4168
|
-
var __defProp$
|
|
4169
|
-
var __defNormalProp$
|
|
4170
|
-
var __publicField$
|
|
4171
|
-
__defNormalProp$
|
|
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);
|
|
4172
4172
|
return value;
|
|
4173
4173
|
};
|
|
4174
4174
|
class FirstRunWizard {
|
|
4175
4175
|
constructor(page) {
|
|
4176
4176
|
this.page = page;
|
|
4177
|
-
__publicField$
|
|
4178
|
-
__publicField$
|
|
4179
|
-
__publicField$
|
|
4180
|
-
__publicField$
|
|
4181
|
-
__publicField$
|
|
4182
|
-
__publicField$
|
|
4183
|
-
__publicField$
|
|
4184
|
-
__publicField$
|
|
4185
|
-
__publicField$
|
|
4186
|
-
__publicField$
|
|
4187
|
-
__publicField$
|
|
4188
|
-
__publicField$
|
|
4189
|
-
__publicField$
|
|
4190
|
-
__publicField$
|
|
4191
|
-
__publicField$
|
|
4192
|
-
__publicField$
|
|
4193
|
-
__publicField$
|
|
4194
|
-
__publicField$
|
|
4195
|
-
__publicField$
|
|
4196
|
-
__publicField$
|
|
4197
|
-
__publicField$
|
|
4198
|
-
__publicField$
|
|
4199
|
-
__publicField$
|
|
4200
|
-
__publicField$
|
|
4201
|
-
__publicField$
|
|
4202
|
-
__publicField$
|
|
4203
|
-
__publicField$
|
|
4204
|
-
__publicField$
|
|
4205
|
-
__publicField$
|
|
4206
|
-
__publicField$
|
|
4207
|
-
__publicField$
|
|
4208
|
-
__publicField$
|
|
4209
|
-
__publicField$
|
|
4210
|
-
__publicField$
|
|
4211
|
-
__publicField$
|
|
4212
|
-
__publicField$
|
|
4213
|
-
__publicField$
|
|
4214
|
-
__publicField$
|
|
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");
|
|
4215
4215
|
this.nextButton = page.getByText("Next", { exact: true });
|
|
4216
4216
|
this.configureLaterButton = page.getByText("Configure later", { exact: true });
|
|
4217
4217
|
this.skipButton = page.getByText("Skip", { exact: true });
|
|
@@ -4256,17 +4256,17 @@ class FirstRunWizard {
|
|
|
4256
4256
|
}
|
|
4257
4257
|
}
|
|
4258
4258
|
|
|
4259
|
-
var __defProp$
|
|
4260
|
-
var __defNormalProp$
|
|
4261
|
-
var __publicField$
|
|
4262
|
-
__defNormalProp$
|
|
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);
|
|
4263
4263
|
return value;
|
|
4264
4264
|
};
|
|
4265
4265
|
class FlowBuilderCreate {
|
|
4266
4266
|
constructor(page) {
|
|
4267
4267
|
this.page = page;
|
|
4268
|
-
__publicField$
|
|
4269
|
-
__publicField$
|
|
4268
|
+
__publicField$o(this, "saveButton");
|
|
4269
|
+
__publicField$o(this, "header");
|
|
4270
4270
|
this.saveButton = page.locator(".sw-flow-detail__save");
|
|
4271
4271
|
this.header = page.locator("h2");
|
|
4272
4272
|
}
|
|
@@ -4275,28 +4275,28 @@ class FlowBuilderCreate {
|
|
|
4275
4275
|
}
|
|
4276
4276
|
}
|
|
4277
4277
|
|
|
4278
|
-
var __defProp$
|
|
4279
|
-
var __defNormalProp$
|
|
4280
|
-
var __publicField$
|
|
4281
|
-
__defNormalProp$
|
|
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);
|
|
4282
4282
|
return value;
|
|
4283
4283
|
};
|
|
4284
4284
|
class FlowBuilderListing {
|
|
4285
4285
|
constructor(page) {
|
|
4286
4286
|
this.page = page;
|
|
4287
|
-
__publicField$
|
|
4288
|
-
__publicField$
|
|
4289
|
-
__publicField$
|
|
4290
|
-
__publicField$
|
|
4291
|
-
__publicField$
|
|
4292
|
-
__publicField$
|
|
4293
|
-
__publicField$
|
|
4294
|
-
__publicField$
|
|
4295
|
-
__publicField$
|
|
4296
|
-
__publicField$
|
|
4297
|
-
__publicField$
|
|
4298
|
-
__publicField$
|
|
4299
|
-
__publicField$
|
|
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");
|
|
4300
4300
|
this.createFlowButton = page.locator(".sw-flow-list__create");
|
|
4301
4301
|
this.firstFlowName = page.locator(".sw-data-grid__cell--name a").first();
|
|
4302
4302
|
this.firstFlowContextButton = page.locator(".sw-data-grid__actions-menu").first();
|
|
@@ -4333,18 +4333,18 @@ class FlowBuilderListing {
|
|
|
4333
4333
|
}
|
|
4334
4334
|
}
|
|
4335
4335
|
|
|
4336
|
-
var __defProp$
|
|
4337
|
-
var __defNormalProp$
|
|
4338
|
-
var __publicField$
|
|
4339
|
-
__defNormalProp$
|
|
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);
|
|
4340
4340
|
return value;
|
|
4341
4341
|
};
|
|
4342
4342
|
class FlowBuilderDetail {
|
|
4343
4343
|
constructor(page) {
|
|
4344
4344
|
this.page = page;
|
|
4345
|
-
__publicField$
|
|
4346
|
-
__publicField$
|
|
4347
|
-
__publicField$
|
|
4345
|
+
__publicField$m(this, "saveButton");
|
|
4346
|
+
__publicField$m(this, "generalTab");
|
|
4347
|
+
__publicField$m(this, "flowTab");
|
|
4348
4348
|
this.saveButton = page.locator(".sw-flow-detail__save");
|
|
4349
4349
|
this.generalTab = page.locator(".sw-flow-detail__tab-general");
|
|
4350
4350
|
this.flowTab = page.locator(".sw-flow-detail__tab-flow");
|
|
@@ -4354,20 +4354,20 @@ class FlowBuilderDetail {
|
|
|
4354
4354
|
}
|
|
4355
4355
|
}
|
|
4356
4356
|
|
|
4357
|
-
var __defProp$
|
|
4358
|
-
var __defNormalProp$
|
|
4359
|
-
var __publicField$
|
|
4360
|
-
__defNormalProp$
|
|
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);
|
|
4361
4361
|
return value;
|
|
4362
4362
|
};
|
|
4363
4363
|
class DataSharing {
|
|
4364
4364
|
constructor(page) {
|
|
4365
4365
|
this.page = page;
|
|
4366
|
-
__publicField$
|
|
4367
|
-
__publicField$
|
|
4368
|
-
__publicField$
|
|
4369
|
-
__publicField$
|
|
4370
|
-
__publicField$
|
|
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");
|
|
4371
4371
|
this.dataConsentHeadline = page.locator("h3.sw-usage-data-consent-banner__content-headline");
|
|
4372
4372
|
this.dataSharingAgreeButton = page.getByRole("button", { name: "Agree" });
|
|
4373
4373
|
this.dataSharingDisableButton = page.getByRole("button", { name: "Disable data sharing" });
|
|
@@ -4379,23 +4379,23 @@ class DataSharing {
|
|
|
4379
4379
|
}
|
|
4380
4380
|
}
|
|
4381
4381
|
|
|
4382
|
-
var __defProp$
|
|
4383
|
-
var __defNormalProp$
|
|
4384
|
-
var __publicField$
|
|
4385
|
-
__defNormalProp$
|
|
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);
|
|
4386
4386
|
return value;
|
|
4387
4387
|
};
|
|
4388
4388
|
class Dashboard {
|
|
4389
4389
|
constructor(page) {
|
|
4390
4390
|
this.page = page;
|
|
4391
|
-
__publicField$
|
|
4392
|
-
__publicField$
|
|
4393
|
-
__publicField$
|
|
4394
|
-
__publicField$
|
|
4395
|
-
__publicField$
|
|
4396
|
-
__publicField$
|
|
4397
|
-
__publicField$
|
|
4398
|
-
__publicField$
|
|
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");
|
|
4399
4399
|
this.welcomeHeadline = page.locator("h1.sw-dashboard-index__welcome-title");
|
|
4400
4400
|
this.dataSharingConsentBanner = page.locator(".sw-usage-data-consent-banner");
|
|
4401
4401
|
this.dataSharingAgreeButton = page.getByRole("button", { name: "Agree" });
|
|
@@ -4410,25 +4410,25 @@ class Dashboard {
|
|
|
4410
4410
|
}
|
|
4411
4411
|
}
|
|
4412
4412
|
|
|
4413
|
-
var __defProp$
|
|
4414
|
-
var __defNormalProp$
|
|
4415
|
-
var __publicField$
|
|
4416
|
-
__defNormalProp$
|
|
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);
|
|
4417
4417
|
return value;
|
|
4418
4418
|
};
|
|
4419
4419
|
class ShippingListing {
|
|
4420
4420
|
constructor(page) {
|
|
4421
4421
|
this.page = page;
|
|
4422
|
-
__publicField$
|
|
4423
|
-
__publicField$
|
|
4424
|
-
__publicField$
|
|
4425
|
-
__publicField$
|
|
4426
|
-
__publicField$
|
|
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");
|
|
4427
4427
|
//warning modal
|
|
4428
|
-
__publicField$
|
|
4429
|
-
__publicField$
|
|
4430
|
-
__publicField$
|
|
4431
|
-
__publicField$
|
|
4428
|
+
__publicField$j(this, "modal");
|
|
4429
|
+
__publicField$j(this, "modalHeader");
|
|
4430
|
+
__publicField$j(this, "modalCancelButton");
|
|
4431
|
+
__publicField$j(this, "modalDeleteButton");
|
|
4432
4432
|
this.header = page.locator(".smart-bar__header");
|
|
4433
4433
|
this.addShippingMethod = page.getByText("Add shipping method", { exact: true });
|
|
4434
4434
|
this.contextMenu = page.locator(".sw-data-grid-settings__trigger");
|
|
@@ -4444,10 +4444,62 @@ class ShippingListing {
|
|
|
4444
4444
|
}
|
|
4445
4445
|
}
|
|
4446
4446
|
|
|
4447
|
-
var __defProp$
|
|
4448
|
-
var __defNormalProp$
|
|
4449
|
-
var __publicField$
|
|
4450
|
-
__defNormalProp$
|
|
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);
|
|
4451
4503
|
return value;
|
|
4452
4504
|
};
|
|
4453
4505
|
class LandingPageCreate {
|
|
@@ -4456,24 +4508,24 @@ class LandingPageCreate {
|
|
|
4456
4508
|
/**
|
|
4457
4509
|
* General
|
|
4458
4510
|
*/
|
|
4459
|
-
__publicField$
|
|
4460
|
-
__publicField$
|
|
4461
|
-
__publicField$
|
|
4462
|
-
__publicField$
|
|
4463
|
-
__publicField$
|
|
4464
|
-
__publicField$
|
|
4465
|
-
__publicField$
|
|
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");
|
|
4466
4518
|
/**
|
|
4467
4519
|
* Layout
|
|
4468
4520
|
*/
|
|
4469
|
-
__publicField$
|
|
4470
|
-
__publicField$
|
|
4471
|
-
__publicField$
|
|
4472
|
-
__publicField$
|
|
4473
|
-
__publicField$
|
|
4474
|
-
__publicField$
|
|
4475
|
-
__publicField$
|
|
4476
|
-
__publicField$
|
|
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");
|
|
4477
4529
|
this.loadingSpinner = page.locator(".sw-loader");
|
|
4478
4530
|
this.saveLandingPageButton = page.getByRole("button", { name: "Save" });
|
|
4479
4531
|
this.nameInput = page.getByLabel("Name");
|
|
@@ -4498,10 +4550,10 @@ class LandingPageCreate {
|
|
|
4498
4550
|
}
|
|
4499
4551
|
}
|
|
4500
4552
|
|
|
4501
|
-
var __defProp$
|
|
4502
|
-
var __defNormalProp$
|
|
4503
|
-
var __publicField$
|
|
4504
|
-
__defNormalProp$
|
|
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);
|
|
4505
4557
|
return value;
|
|
4506
4558
|
};
|
|
4507
4559
|
class LandingPageDetail {
|
|
@@ -4510,24 +4562,24 @@ class LandingPageDetail {
|
|
|
4510
4562
|
/**
|
|
4511
4563
|
* General
|
|
4512
4564
|
*/
|
|
4513
|
-
__publicField$
|
|
4514
|
-
__publicField$
|
|
4515
|
-
__publicField$
|
|
4516
|
-
__publicField$
|
|
4517
|
-
__publicField$
|
|
4518
|
-
__publicField$
|
|
4519
|
-
__publicField$
|
|
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");
|
|
4520
4572
|
/**
|
|
4521
4573
|
* Layout
|
|
4522
4574
|
*/
|
|
4523
|
-
__publicField$
|
|
4524
|
-
__publicField$
|
|
4525
|
-
__publicField$
|
|
4526
|
-
__publicField$
|
|
4527
|
-
__publicField$
|
|
4528
|
-
__publicField$
|
|
4529
|
-
__publicField$
|
|
4530
|
-
__publicField$
|
|
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");
|
|
4531
4583
|
this.loadingSpinner = page.locator(".sw-loader");
|
|
4532
4584
|
this.saveLandingPageButton = page.getByRole("button", { name: "Save" });
|
|
4533
4585
|
this.nameInput = page.getByLabel("Name");
|
|
@@ -4551,10 +4603,10 @@ class LandingPageDetail {
|
|
|
4551
4603
|
}
|
|
4552
4604
|
}
|
|
4553
4605
|
|
|
4554
|
-
var __defProp$
|
|
4555
|
-
var __defNormalProp$
|
|
4556
|
-
var __publicField$
|
|
4557
|
-
__defNormalProp$
|
|
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);
|
|
4558
4610
|
return value;
|
|
4559
4611
|
};
|
|
4560
4612
|
class Categories {
|
|
@@ -4563,40 +4615,40 @@ class Categories {
|
|
|
4563
4615
|
/**
|
|
4564
4616
|
* Landing pages
|
|
4565
4617
|
*/
|
|
4566
|
-
__publicField$
|
|
4567
|
-
__publicField$
|
|
4568
|
-
__publicField$
|
|
4569
|
-
__publicField$
|
|
4618
|
+
__publicField$e(this, "landingPageArea");
|
|
4619
|
+
__publicField$e(this, "landingPageHeadline");
|
|
4620
|
+
__publicField$e(this, "addLandingPageButton");
|
|
4621
|
+
__publicField$e(this, "landingPageItems");
|
|
4570
4622
|
/**
|
|
4571
4623
|
* Category tree
|
|
4572
4624
|
*/
|
|
4573
|
-
__publicField$
|
|
4574
|
-
__publicField$
|
|
4575
|
-
__publicField$
|
|
4576
|
-
__publicField$
|
|
4577
|
-
__publicField$
|
|
4578
|
-
__publicField$
|
|
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");
|
|
4579
4631
|
/**
|
|
4580
4632
|
* General
|
|
4581
4633
|
*/
|
|
4582
|
-
__publicField$
|
|
4583
|
-
__publicField$
|
|
4584
|
-
__publicField$
|
|
4585
|
-
__publicField$
|
|
4586
|
-
__publicField$
|
|
4587
|
-
__publicField$
|
|
4588
|
-
__publicField$
|
|
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");
|
|
4589
4641
|
/**
|
|
4590
4642
|
* Customisable link
|
|
4591
4643
|
*/
|
|
4592
|
-
__publicField$
|
|
4593
|
-
__publicField$
|
|
4594
|
-
__publicField$
|
|
4595
|
-
__publicField$
|
|
4596
|
-
__publicField$
|
|
4597
|
-
__publicField$
|
|
4598
|
-
__publicField$
|
|
4599
|
-
__publicField$
|
|
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");
|
|
4600
4652
|
this.landingPageArea = page.locator(".sw-category-detail__landing-page-collapse");
|
|
4601
4653
|
this.landingPageHeadline = this.landingPageArea.getByRole("heading", { name: "Landing pages" });
|
|
4602
4654
|
this.addLandingPageButton = this.landingPageArea.getByText("Add landing page");
|
|
@@ -4637,42 +4689,17 @@ class Categories {
|
|
|
4637
4689
|
}
|
|
4638
4690
|
}
|
|
4639
4691
|
|
|
4640
|
-
var __defProp$
|
|
4641
|
-
var __defNormalProp$
|
|
4642
|
-
var __publicField$
|
|
4643
|
-
__defNormalProp$
|
|
4644
|
-
return value;
|
|
4645
|
-
};
|
|
4646
|
-
class RuleDetail {
|
|
4647
|
-
constructor(page) {
|
|
4648
|
-
this.page = page;
|
|
4649
|
-
__publicField$c(this, "nameInput");
|
|
4650
|
-
__publicField$c(this, "priorityInput");
|
|
4651
|
-
__publicField$c(this, "conditionTypeSelectionInput");
|
|
4652
|
-
__publicField$c(this, "conditionValueSelectionInput");
|
|
4653
|
-
__publicField$c(this, "filtersResultPopoverSelectionList");
|
|
4654
|
-
this.nameInput = page.getByLabel("Name");
|
|
4655
|
-
this.priorityInput = page.getByLabel("Priority");
|
|
4656
|
-
this.conditionTypeSelectionInput = page.locator(".sw-condition-type-select").locator(".sw-single-select__selection");
|
|
4657
|
-
this.conditionValueSelectionInput = page.locator(".sw-condition__value-content").locator(".sw-entity-single-select__selection");
|
|
4658
|
-
this.filtersResultPopoverSelectionList = page.locator(".sw-select-result-list__content").getByRole("listitem");
|
|
4659
|
-
}
|
|
4660
|
-
url(ruleId, tabName = "base") {
|
|
4661
|
-
return `#/sw/settings/rule/detail/${ruleId}/${tabName}`;
|
|
4662
|
-
}
|
|
4663
|
-
}
|
|
4664
|
-
|
|
4665
|
-
var __defProp$b = Object.defineProperty;
|
|
4666
|
-
var __defNormalProp$b = (obj, key, value) => key in obj ? __defProp$b(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
4667
|
-
var __publicField$b = (obj, key, value) => {
|
|
4668
|
-
__defNormalProp$b(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
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);
|
|
4669
4696
|
return value;
|
|
4670
4697
|
};
|
|
4671
4698
|
class CustomFieldListing {
|
|
4672
4699
|
constructor(page) {
|
|
4673
4700
|
this.page = page;
|
|
4674
|
-
__publicField$
|
|
4675
|
-
__publicField$
|
|
4701
|
+
__publicField$d(this, "addNewSetButton");
|
|
4702
|
+
__publicField$d(this, "customFieldRows");
|
|
4676
4703
|
this.addNewSetButton = page.getByText("Add new set");
|
|
4677
4704
|
this.customFieldRows = page.getByRole("row");
|
|
4678
4705
|
}
|
|
@@ -4700,22 +4727,22 @@ class CustomFieldListing {
|
|
|
4700
4727
|
}
|
|
4701
4728
|
}
|
|
4702
4729
|
|
|
4703
|
-
var __defProp$
|
|
4704
|
-
var __defNormalProp$
|
|
4705
|
-
var __publicField$
|
|
4706
|
-
__defNormalProp$
|
|
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);
|
|
4707
4734
|
return value;
|
|
4708
4735
|
};
|
|
4709
4736
|
class CustomFieldCreate {
|
|
4710
4737
|
constructor(page) {
|
|
4711
4738
|
this.page = page;
|
|
4712
|
-
__publicField$
|
|
4713
|
-
__publicField$
|
|
4714
|
-
__publicField$
|
|
4715
|
-
__publicField$
|
|
4716
|
-
__publicField$
|
|
4717
|
-
__publicField$
|
|
4718
|
-
__publicField$
|
|
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");
|
|
4719
4746
|
this.saveButton = page.getByRole("button", { name: "Save" });
|
|
4720
4747
|
this.cancelButton = page.getByRole("button", { name: "Cancel" });
|
|
4721
4748
|
this.technicalNameInput = page.getByLabel("Technical name");
|
|
@@ -4729,33 +4756,33 @@ class CustomFieldCreate {
|
|
|
4729
4756
|
}
|
|
4730
4757
|
}
|
|
4731
4758
|
|
|
4732
|
-
var __defProp$
|
|
4733
|
-
var __defNormalProp$
|
|
4734
|
-
var __publicField$
|
|
4735
|
-
__defNormalProp$
|
|
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);
|
|
4736
4763
|
return value;
|
|
4737
4764
|
};
|
|
4738
4765
|
class CustomFieldDetail extends CustomFieldCreate {
|
|
4739
4766
|
constructor(page) {
|
|
4740
4767
|
super(page);
|
|
4741
4768
|
this.page = page;
|
|
4742
|
-
__publicField$
|
|
4743
|
-
__publicField$
|
|
4744
|
-
__publicField$
|
|
4745
|
-
__publicField$
|
|
4746
|
-
__publicField$
|
|
4747
|
-
__publicField$
|
|
4748
|
-
__publicField$
|
|
4749
|
-
__publicField$
|
|
4750
|
-
__publicField$
|
|
4751
|
-
__publicField$
|
|
4752
|
-
__publicField$
|
|
4753
|
-
__publicField$
|
|
4754
|
-
__publicField$
|
|
4755
|
-
__publicField$
|
|
4756
|
-
__publicField$
|
|
4757
|
-
__publicField$
|
|
4758
|
-
__publicField$
|
|
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");
|
|
4759
4786
|
this.newCustomFieldButton = page.getByRole("button", { name: "New custom field" });
|
|
4760
4787
|
this.customFieldDeleteListButton = page.locator(".sw-custom-field-list__delete-button");
|
|
4761
4788
|
this.newCustomFieldDialog = page.getByRole("dialog", { name: "New custom field" });
|
|
@@ -4800,20 +4827,20 @@ class CustomFieldDetail extends CustomFieldCreate {
|
|
|
4800
4827
|
}
|
|
4801
4828
|
}
|
|
4802
4829
|
|
|
4803
|
-
var __defProp$
|
|
4804
|
-
var __defNormalProp$
|
|
4805
|
-
var __publicField$
|
|
4806
|
-
__defNormalProp$
|
|
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);
|
|
4807
4834
|
return value;
|
|
4808
4835
|
};
|
|
4809
4836
|
class CategoryDetail {
|
|
4810
4837
|
constructor(page) {
|
|
4811
4838
|
this.page = page;
|
|
4812
|
-
__publicField$
|
|
4813
|
-
__publicField$
|
|
4814
|
-
__publicField$
|
|
4815
|
-
__publicField$
|
|
4816
|
-
__publicField$
|
|
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");
|
|
4817
4844
|
this.saveButton = page.getByRole("button", { name: "Save" });
|
|
4818
4845
|
this.cancelButton = page.getByRole("button", { name: "Cancel" });
|
|
4819
4846
|
this.customFieldCard = page.locator(".sw-card").getByText("Custom fields");
|
|
@@ -4834,22 +4861,22 @@ class CategoryDetail {
|
|
|
4834
4861
|
}
|
|
4835
4862
|
}
|
|
4836
4863
|
|
|
4837
|
-
var __defProp$
|
|
4838
|
-
var __defNormalProp$
|
|
4839
|
-
var __publicField$
|
|
4840
|
-
__defNormalProp$
|
|
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);
|
|
4841
4868
|
return value;
|
|
4842
4869
|
};
|
|
4843
4870
|
class RuleCreate {
|
|
4844
4871
|
constructor(page) {
|
|
4845
4872
|
this.page = page;
|
|
4846
|
-
__publicField$
|
|
4847
|
-
__publicField$
|
|
4848
|
-
__publicField$
|
|
4849
|
-
__publicField$
|
|
4850
|
-
__publicField$
|
|
4851
|
-
__publicField$
|
|
4852
|
-
__publicField$
|
|
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");
|
|
4853
4880
|
this.nameInput = page.getByLabel("Name");
|
|
4854
4881
|
this.priorityInput = page.getByLabel("Priority");
|
|
4855
4882
|
this.conditionTypeSelectionInput = page.locator(".sw-condition-type-select").locator(".sw-single-select__selection");
|
|
@@ -4863,6 +4890,76 @@ class RuleCreate {
|
|
|
4863
4890
|
}
|
|
4864
4891
|
}
|
|
4865
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
|
+
|
|
4866
4963
|
var __defProp$6 = Object.defineProperty;
|
|
4867
4964
|
var __defNormalProp$6 = (obj, key, value) => key in obj ? __defProp$6(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
4868
4965
|
var __publicField$6 = (obj, key, value) => {
|
|
@@ -5225,15 +5322,18 @@ const AdminPageObjects = {
|
|
|
5225
5322
|
Dashboard,
|
|
5226
5323
|
DataSharing,
|
|
5227
5324
|
ShippingListing,
|
|
5325
|
+
ShippingDetail,
|
|
5326
|
+
PaymentDetail,
|
|
5228
5327
|
Categories,
|
|
5229
5328
|
CategoryDetail,
|
|
5230
5329
|
LandingPageCreate,
|
|
5231
5330
|
LandingPageDetail,
|
|
5232
|
-
RuleDetail,
|
|
5233
|
-
RuleCreate,
|
|
5234
5331
|
CustomFieldListing,
|
|
5235
5332
|
CustomFieldCreate,
|
|
5236
5333
|
CustomFieldDetail,
|
|
5334
|
+
RuleCreate,
|
|
5335
|
+
RuleDetail,
|
|
5336
|
+
RuleListing,
|
|
5237
5337
|
ManufacturerCreate,
|
|
5238
5338
|
ManufacturerDetail,
|
|
5239
5339
|
ManufacturerListing,
|
|
@@ -5284,6 +5384,12 @@ const test$5 = test$e.extend({
|
|
|
5284
5384
|
AdminShippingListing: async ({ AdminPage }, use) => {
|
|
5285
5385
|
await use(new ShippingListing(AdminPage));
|
|
5286
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
|
+
},
|
|
5287
5393
|
AdminCategories: async ({ AdminPage }, use) => {
|
|
5288
5394
|
await use(new Categories(AdminPage));
|
|
5289
5395
|
},
|
|
@@ -5296,12 +5402,6 @@ const test$5 = test$e.extend({
|
|
|
5296
5402
|
AdminLandingPageCreate: async ({ AdminPage }, use) => {
|
|
5297
5403
|
await use(new LandingPageCreate(AdminPage));
|
|
5298
5404
|
},
|
|
5299
|
-
AdminRuleDetail: async ({ AdminPage }, use) => {
|
|
5300
|
-
await use(new RuleDetail(AdminPage));
|
|
5301
|
-
},
|
|
5302
|
-
AdminRuleCreate: async ({ AdminPage }, use) => {
|
|
5303
|
-
await use(new RuleCreate(AdminPage));
|
|
5304
|
-
},
|
|
5305
5405
|
AdminCustomFieldListing: async ({ AdminPage }, use) => {
|
|
5306
5406
|
await use(new CustomFieldListing(AdminPage));
|
|
5307
5407
|
},
|
|
@@ -5311,6 +5411,15 @@ const test$5 = test$e.extend({
|
|
|
5311
5411
|
AdminCustomFieldDetail: async ({ AdminPage }, use) => {
|
|
5312
5412
|
await use(new CustomFieldDetail(AdminPage));
|
|
5313
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
|
+
},
|
|
5314
5423
|
AdminManufacturerListing: async ({ AdminPage }, use) => {
|
|
5315
5424
|
await use(new ManufacturerListing(AdminPage));
|
|
5316
5425
|
},
|
|
@@ -6152,13 +6261,65 @@ const BulkEditCustomers = test$e.extend({
|
|
|
6152
6261
|
}
|
|
6153
6262
|
});
|
|
6154
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
|
+
|
|
6155
6315
|
const test$3 = mergeTests(
|
|
6156
6316
|
SaveProduct,
|
|
6157
6317
|
ExpectNotification,
|
|
6158
6318
|
CreateLinkTypeCategory,
|
|
6159
6319
|
SetSystemConfigValues,
|
|
6160
6320
|
BulkEditProducts,
|
|
6161
|
-
BulkEditCustomers
|
|
6321
|
+
BulkEditCustomers,
|
|
6322
|
+
AssignEntitiesToRule
|
|
6162
6323
|
);
|
|
6163
6324
|
|
|
6164
6325
|
const Login = test$e.extend({
|
|
@@ -6648,4 +6809,4 @@ const test = mergeTests(
|
|
|
6648
6809
|
test$2
|
|
6649
6810
|
);
|
|
6650
6811
|
|
|
6651
|
-
export { AdminPageObjects, StorefrontPageObjects, TestDataService, createRandomImage, extractIdFromUrl, getCountryId, getCurrency, getDefaultShippingMethodId, getFlowId, getLanguageData, getMediaId, getOrderTransactionId, getPaymentMethodId, getPromotionWithDiscount, getSalutationId, getSnippetSetId, getStateMachineId, getStateMachineStateId, getTaxId, getThemeId, isSaaSInstance, isThemeCompiled, setOrderStatus, test };
|
|
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 };
|