@shopware-ag/acceptance-test-suite 8.0.0 → 8.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 +114 -1
- package/dist/index.d.ts +114 -1
- package/dist/index.mjs +925 -610
- 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$P = Object.defineProperty;
|
|
389
|
+
var __defNormalProp$P = (obj, key, value) => key in obj ? __defProp$P(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
390
|
+
var __publicField$P = (obj, key, value) => {
|
|
391
|
+
__defNormalProp$P(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$P(this, "context");
|
|
397
|
+
__publicField$P(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$P(_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$N(_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$O = Object.defineProperty;
|
|
500
|
+
var __defNormalProp$O = (obj, key, value) => key in obj ? __defProp$O(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
501
|
+
var __publicField$O = (obj, key, value) => {
|
|
502
|
+
__defNormalProp$O(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$O(this, "context");
|
|
508
|
+
__publicField$O(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$O(_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$N = Object.defineProperty;
|
|
574
|
+
var __defNormalProp$N = (obj, key, value) => key in obj ? __defProp$N(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
575
|
+
var __publicField$N = (obj, key, value) => {
|
|
576
|
+
__defNormalProp$N(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$N(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$M = Object.defineProperty;
|
|
879
|
+
var __defNormalProp$M = (obj, key, value) => key in obj ? __defProp$M(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
880
|
+
var __publicField$M = (obj, key, value) => {
|
|
881
|
+
__defNormalProp$M(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$M(this, "page");
|
|
887
|
+
__publicField$M(this, "name");
|
|
888
|
+
__publicField$M(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$L = Object.defineProperty;
|
|
938
|
+
var __defNormalProp$L = (obj, key, value) => key in obj ? __defProp$L(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
939
|
+
var __publicField$L = (obj, key, value) => {
|
|
940
|
+
__defNormalProp$L(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$L(this, "AdminApiClient");
|
|
946
|
+
__publicField$L(this, "IdProvider");
|
|
947
|
+
__publicField$L(this, "namePrefix", "Test-");
|
|
948
|
+
__publicField$L(this, "nameSuffix", "");
|
|
949
|
+
__publicField$L(this, "defaultSalesChannel");
|
|
950
|
+
__publicField$L(this, "defaultTaxId");
|
|
951
|
+
__publicField$L(this, "defaultCurrencyId");
|
|
952
|
+
__publicField$L(this, "defaultCategoryId");
|
|
953
|
+
__publicField$L(this, "defaultLanguageId");
|
|
954
|
+
__publicField$L(this, "defaultCountryId");
|
|
955
|
+
__publicField$L(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$L(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,19 +966,19 @@ class TestDataService {
|
|
|
966
966
|
*
|
|
967
967
|
* @private
|
|
968
968
|
*/
|
|
969
|
-
__publicField$
|
|
969
|
+
__publicField$L(this, "highPriorityEntities", ["order", "product", "landing_page"]);
|
|
970
970
|
/**
|
|
971
971
|
* A registry of all created records.
|
|
972
972
|
*
|
|
973
973
|
* @private
|
|
974
974
|
*/
|
|
975
|
-
__publicField$
|
|
975
|
+
__publicField$L(this, "createdRecords", []);
|
|
976
976
|
/**
|
|
977
977
|
* Function that generates combinations from n number of arrays
|
|
978
978
|
* with m number of elements in them.
|
|
979
979
|
* @param array
|
|
980
980
|
*/
|
|
981
|
-
__publicField$
|
|
981
|
+
__publicField$L(this, "combineAll", (array) => {
|
|
982
982
|
const result = [];
|
|
983
983
|
const max = array.length - 1;
|
|
984
984
|
const helper = (tmpArray, i) => {
|
|
@@ -2673,16 +2673,16 @@ const test$8 = test$e.extend({
|
|
|
2673
2673
|
}
|
|
2674
2674
|
});
|
|
2675
2675
|
|
|
2676
|
-
var __defProp$
|
|
2677
|
-
var __defNormalProp$
|
|
2678
|
-
var __publicField$
|
|
2679
|
-
__defNormalProp$
|
|
2676
|
+
var __defProp$K = Object.defineProperty;
|
|
2677
|
+
var __defNormalProp$K = (obj, key, value) => key in obj ? __defProp$K(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
2678
|
+
var __publicField$K = (obj, key, value) => {
|
|
2679
|
+
__defNormalProp$K(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
2680
2680
|
return value;
|
|
2681
2681
|
};
|
|
2682
2682
|
class IdProvider {
|
|
2683
2683
|
constructor(workerIndex, seed) {
|
|
2684
|
-
__publicField$
|
|
2685
|
-
__publicField$
|
|
2684
|
+
__publicField$K(this, "workerIndex");
|
|
2685
|
+
__publicField$K(this, "seed");
|
|
2686
2686
|
this.workerIndex = workerIndex;
|
|
2687
2687
|
this.seed = seed;
|
|
2688
2688
|
}
|
|
@@ -2756,30 +2756,32 @@ const test$7 = test$e.extend({
|
|
|
2756
2756
|
]
|
|
2757
2757
|
});
|
|
2758
2758
|
|
|
2759
|
-
var __defProp$
|
|
2760
|
-
var __defNormalProp$
|
|
2761
|
-
var __publicField$
|
|
2762
|
-
__defNormalProp$
|
|
2759
|
+
var __defProp$J = Object.defineProperty;
|
|
2760
|
+
var __defNormalProp$J = (obj, key, value) => key in obj ? __defProp$J(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
2761
|
+
var __publicField$J = (obj, key, value) => {
|
|
2762
|
+
__defNormalProp$J(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
2763
2763
|
return value;
|
|
2764
2764
|
};
|
|
2765
2765
|
class Home {
|
|
2766
2766
|
constructor(page) {
|
|
2767
2767
|
this.page = page;
|
|
2768
|
-
__publicField$
|
|
2769
|
-
__publicField$
|
|
2770
|
-
__publicField$
|
|
2771
|
-
__publicField$
|
|
2772
|
-
__publicField$
|
|
2773
|
-
__publicField$
|
|
2774
|
-
__publicField$
|
|
2775
|
-
__publicField$
|
|
2776
|
-
__publicField$
|
|
2777
|
-
__publicField$
|
|
2778
|
-
__publicField$
|
|
2779
|
-
__publicField$
|
|
2780
|
-
__publicField$
|
|
2781
|
-
__publicField$
|
|
2782
|
-
__publicField$
|
|
2768
|
+
__publicField$J(this, "productImages");
|
|
2769
|
+
__publicField$J(this, "productListItems");
|
|
2770
|
+
__publicField$J(this, "languagesDropdown");
|
|
2771
|
+
__publicField$J(this, "currenciesDropdown");
|
|
2772
|
+
__publicField$J(this, "consentOnlyTechnicallyRequiredButton");
|
|
2773
|
+
__publicField$J(this, "consentConfigureButton");
|
|
2774
|
+
__publicField$J(this, "consentAcceptAllCookiesButton");
|
|
2775
|
+
__publicField$J(this, "consentCookiePreferences");
|
|
2776
|
+
__publicField$J(this, "consentCookiePermissionContent");
|
|
2777
|
+
__publicField$J(this, "consentDialog");
|
|
2778
|
+
__publicField$J(this, "consentDialogTechnicallyRequiredCheckbox");
|
|
2779
|
+
__publicField$J(this, "consentDialogStatisticsCheckbox");
|
|
2780
|
+
__publicField$J(this, "consentDialogMarketingdCheckbox");
|
|
2781
|
+
__publicField$J(this, "consentDialogAcceptAllCookiesButton");
|
|
2782
|
+
__publicField$J(this, "consentDialogSaveButton");
|
|
2783
|
+
__publicField$J(this, "consentCookieBannerContainer");
|
|
2784
|
+
__publicField$J(this, "offcanvasBackdrop");
|
|
2783
2785
|
this.productImages = page.locator(".product-image-link");
|
|
2784
2786
|
this.productListItems = page.getByRole("listitem");
|
|
2785
2787
|
this.languagesDropdown = page.getByLabel("Shop settings").locator(".languages-menu");
|
|
@@ -2792,6 +2794,8 @@ class Home {
|
|
|
2792
2794
|
this.consentCookiePermissionContent = page.locator(".cookie-permission-content");
|
|
2793
2795
|
this.consentDialog = page.getByRole("dialog").filter({ hasText: "Cookie preferences" });
|
|
2794
2796
|
this.consentDialogTechnicallyRequiredCheckbox = this.consentDialog.getByRole("checkbox", { name: "Technically required" });
|
|
2797
|
+
this.consentDialogStatisticsCheckbox = this.consentDialog.getByRole("checkbox", { name: "Statistics" });
|
|
2798
|
+
this.consentDialogMarketingdCheckbox = this.consentDialog.getByRole("checkbox", { name: "Marketing" });
|
|
2795
2799
|
this.consentDialogSaveButton = this.consentDialog.getByRole("button", { name: "Save" });
|
|
2796
2800
|
this.consentDialogAcceptAllCookiesButton = this.consentDialog.getByRole("button", { name: "Accept all cookies" });
|
|
2797
2801
|
this.offcanvasBackdrop = page.locator(".offcanvas-backdrop");
|
|
@@ -2824,26 +2828,26 @@ class Home {
|
|
|
2824
2828
|
}
|
|
2825
2829
|
}
|
|
2826
2830
|
|
|
2827
|
-
var __defProp$
|
|
2828
|
-
var __defNormalProp$
|
|
2829
|
-
var __publicField$
|
|
2830
|
-
__defNormalProp$
|
|
2831
|
+
var __defProp$I = Object.defineProperty;
|
|
2832
|
+
var __defNormalProp$I = (obj, key, value) => key in obj ? __defProp$I(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
2833
|
+
var __publicField$I = (obj, key, value) => {
|
|
2834
|
+
__defNormalProp$I(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
2831
2835
|
return value;
|
|
2832
2836
|
};
|
|
2833
2837
|
let ProductDetail$1 = class ProductDetail {
|
|
2834
2838
|
constructor(page) {
|
|
2835
2839
|
this.page = page;
|
|
2836
|
-
__publicField$
|
|
2837
|
-
__publicField$
|
|
2838
|
-
__publicField$
|
|
2839
|
-
__publicField$
|
|
2840
|
-
__publicField$
|
|
2841
|
-
__publicField$
|
|
2842
|
-
__publicField$
|
|
2843
|
-
__publicField$
|
|
2844
|
-
__publicField$
|
|
2845
|
-
__publicField$
|
|
2846
|
-
__publicField$
|
|
2840
|
+
__publicField$I(this, "addToCartButton");
|
|
2841
|
+
__publicField$I(this, "quantitySelect");
|
|
2842
|
+
__publicField$I(this, "productSingleImage");
|
|
2843
|
+
__publicField$I(this, "productSinglePrice");
|
|
2844
|
+
__publicField$I(this, "productPriceRangesRow");
|
|
2845
|
+
__publicField$I(this, "offCanvasCartTitle");
|
|
2846
|
+
__publicField$I(this, "offCanvasCart");
|
|
2847
|
+
__publicField$I(this, "offCanvasCartGoToCheckoutButton");
|
|
2848
|
+
__publicField$I(this, "offCanvasLineItemImages");
|
|
2849
|
+
__publicField$I(this, "offCanvasSummaryTotalPrice");
|
|
2850
|
+
__publicField$I(this, "offCanvas");
|
|
2847
2851
|
this.addToCartButton = page.getByRole("button", { name: "Add to shopping cart" });
|
|
2848
2852
|
this.quantitySelect = page.getByLabel("Quantity", { exact: true });
|
|
2849
2853
|
this.productSingleImage = page.locator(".gallery-slider-single-image");
|
|
@@ -2865,18 +2869,18 @@ let ProductDetail$1 = class ProductDetail {
|
|
|
2865
2869
|
}
|
|
2866
2870
|
};
|
|
2867
2871
|
|
|
2868
|
-
var __defProp$
|
|
2869
|
-
var __defNormalProp$
|
|
2870
|
-
var __publicField$
|
|
2871
|
-
__defNormalProp$
|
|
2872
|
+
var __defProp$H = Object.defineProperty;
|
|
2873
|
+
var __defNormalProp$H = (obj, key, value) => key in obj ? __defProp$H(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
2874
|
+
var __publicField$H = (obj, key, value) => {
|
|
2875
|
+
__defNormalProp$H(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
2872
2876
|
return value;
|
|
2873
2877
|
};
|
|
2874
2878
|
class Category {
|
|
2875
2879
|
constructor(page) {
|
|
2876
2880
|
this.page = page;
|
|
2877
|
-
__publicField$
|
|
2878
|
-
__publicField$
|
|
2879
|
-
__publicField$
|
|
2881
|
+
__publicField$H(this, "sortingSelect");
|
|
2882
|
+
__publicField$H(this, "firstProductBuyButton");
|
|
2883
|
+
__publicField$H(this, "noProductsFoundAlert");
|
|
2880
2884
|
this.sortingSelect = page.getByLabel("Sorting");
|
|
2881
2885
|
this.firstProductBuyButton = page.getByRole("button", { name: "Add to shopping cart" }).first();
|
|
2882
2886
|
this.noProductsFoundAlert = page.getByText("No products found.");
|
|
@@ -2886,24 +2890,24 @@ class Category {
|
|
|
2886
2890
|
}
|
|
2887
2891
|
}
|
|
2888
2892
|
|
|
2889
|
-
var __defProp$
|
|
2890
|
-
var __defNormalProp$
|
|
2891
|
-
var __publicField$
|
|
2892
|
-
__defNormalProp$
|
|
2893
|
+
var __defProp$G = Object.defineProperty;
|
|
2894
|
+
var __defNormalProp$G = (obj, key, value) => key in obj ? __defProp$G(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
2895
|
+
var __publicField$G = (obj, key, value) => {
|
|
2896
|
+
__defNormalProp$G(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
2893
2897
|
return value;
|
|
2894
2898
|
};
|
|
2895
2899
|
class CheckoutCart {
|
|
2896
2900
|
constructor(page) {
|
|
2897
2901
|
this.page = page;
|
|
2898
|
-
__publicField$
|
|
2899
|
-
__publicField$
|
|
2900
|
-
__publicField$
|
|
2901
|
-
__publicField$
|
|
2902
|
-
__publicField$
|
|
2903
|
-
__publicField$
|
|
2904
|
-
__publicField$
|
|
2905
|
-
__publicField$
|
|
2906
|
-
__publicField$
|
|
2902
|
+
__publicField$G(this, "headline");
|
|
2903
|
+
__publicField$G(this, "goToCheckoutButton");
|
|
2904
|
+
__publicField$G(this, "enterPromoInput");
|
|
2905
|
+
__publicField$G(this, "grandTotalPrice");
|
|
2906
|
+
__publicField$G(this, "emptyCartAlert");
|
|
2907
|
+
__publicField$G(this, "stockReachedAlert");
|
|
2908
|
+
__publicField$G(this, "cartLineItemImages");
|
|
2909
|
+
__publicField$G(this, "unitPriceInfo");
|
|
2910
|
+
__publicField$G(this, "cartQuantityNumber");
|
|
2907
2911
|
this.headline = page.getByRole("heading", { name: "Shopping cart" });
|
|
2908
2912
|
this.goToCheckoutButton = page.getByRole("link", { name: "Go to checkout" });
|
|
2909
2913
|
this.enterPromoInput = page.getByLabel("Promo code");
|
|
@@ -2944,25 +2948,25 @@ class CheckoutCart {
|
|
|
2944
2948
|
}
|
|
2945
2949
|
}
|
|
2946
2950
|
|
|
2947
|
-
var __defProp$
|
|
2948
|
-
var __defNormalProp$
|
|
2949
|
-
var __publicField$
|
|
2950
|
-
__defNormalProp$
|
|
2951
|
+
var __defProp$F = Object.defineProperty;
|
|
2952
|
+
var __defNormalProp$F = (obj, key, value) => key in obj ? __defProp$F(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
2953
|
+
var __publicField$F = (obj, key, value) => {
|
|
2954
|
+
__defNormalProp$F(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
2951
2955
|
return value;
|
|
2952
2956
|
};
|
|
2953
2957
|
class OffCanvasCart {
|
|
2954
2958
|
constructor(page) {
|
|
2955
2959
|
this.page = page;
|
|
2956
|
-
__publicField$
|
|
2957
|
-
__publicField$
|
|
2958
|
-
__publicField$
|
|
2959
|
-
__publicField$
|
|
2960
|
-
__publicField$
|
|
2961
|
-
__publicField$
|
|
2962
|
-
__publicField$
|
|
2963
|
-
__publicField$
|
|
2964
|
-
__publicField$
|
|
2965
|
-
__publicField$
|
|
2960
|
+
__publicField$F(this, "headline");
|
|
2961
|
+
__publicField$F(this, "itemCount");
|
|
2962
|
+
__publicField$F(this, "goToCheckoutButton");
|
|
2963
|
+
__publicField$F(this, "goToCartButton");
|
|
2964
|
+
__publicField$F(this, "continueShoppingButton");
|
|
2965
|
+
__publicField$F(this, "enterPromoInput");
|
|
2966
|
+
__publicField$F(this, "submitDiscountButton");
|
|
2967
|
+
__publicField$F(this, "subTotalPrice");
|
|
2968
|
+
__publicField$F(this, "shippingCosts");
|
|
2969
|
+
__publicField$F(this, "cartQuantityNumber");
|
|
2966
2970
|
this.headline = page.getByRole("heading", { name: "Shopping cart" });
|
|
2967
2971
|
this.itemCount = page.locator(".offcanvas-cart-header-count");
|
|
2968
2972
|
this.goToCheckoutButton = page.getByRole("link", { name: "Go to checkout" });
|
|
@@ -3004,36 +3008,36 @@ class OffCanvasCart {
|
|
|
3004
3008
|
}
|
|
3005
3009
|
}
|
|
3006
3010
|
|
|
3007
|
-
var __defProp$
|
|
3008
|
-
var __defNormalProp$
|
|
3009
|
-
var __publicField$
|
|
3010
|
-
__defNormalProp$
|
|
3011
|
+
var __defProp$E = Object.defineProperty;
|
|
3012
|
+
var __defNormalProp$E = (obj, key, value) => key in obj ? __defProp$E(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3013
|
+
var __publicField$E = (obj, key, value) => {
|
|
3014
|
+
__defNormalProp$E(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
3011
3015
|
return value;
|
|
3012
3016
|
};
|
|
3013
3017
|
class CheckoutConfirm {
|
|
3014
3018
|
constructor(page) {
|
|
3015
3019
|
this.page = page;
|
|
3016
|
-
__publicField$
|
|
3017
|
-
__publicField$
|
|
3018
|
-
__publicField$
|
|
3019
|
-
__publicField$
|
|
3020
|
-
__publicField$
|
|
3021
|
-
__publicField$
|
|
3020
|
+
__publicField$E(this, "headline");
|
|
3021
|
+
__publicField$E(this, "termsAndConditionsCheckbox");
|
|
3022
|
+
__publicField$E(this, "immediateAccessToDigitalProductCheckbox");
|
|
3023
|
+
__publicField$E(this, "grandTotalPrice");
|
|
3024
|
+
__publicField$E(this, "taxPrice");
|
|
3025
|
+
__publicField$E(this, "submitOrderButton");
|
|
3022
3026
|
/**
|
|
3023
3027
|
* Payment options
|
|
3024
3028
|
*/
|
|
3025
|
-
__publicField$
|
|
3026
|
-
__publicField$
|
|
3027
|
-
__publicField$
|
|
3029
|
+
__publicField$E(this, "paymentCashOnDelivery");
|
|
3030
|
+
__publicField$E(this, "paymentPaidInAdvance");
|
|
3031
|
+
__publicField$E(this, "paymentInvoice");
|
|
3028
3032
|
/**
|
|
3029
3033
|
* Shipping options
|
|
3030
3034
|
*/
|
|
3031
|
-
__publicField$
|
|
3032
|
-
__publicField$
|
|
3035
|
+
__publicField$E(this, "shippingStandard");
|
|
3036
|
+
__publicField$E(this, "shippingExpress");
|
|
3033
3037
|
/**
|
|
3034
3038
|
* Product details
|
|
3035
3039
|
*/
|
|
3036
|
-
__publicField$
|
|
3040
|
+
__publicField$E(this, "cartLineItemImages");
|
|
3037
3041
|
this.headline = page.getByRole("heading", { name: "Complete order" });
|
|
3038
3042
|
this.termsAndConditionsCheckbox = page.getByLabel("I have read and accepted the general terms and conditions.");
|
|
3039
3043
|
this.immediateAccessToDigitalProductCheckbox = page.getByLabel("I want immediate access to the digital content and I acknowledge that thereby I waive my right to cancel.");
|
|
@@ -3052,21 +3056,21 @@ class CheckoutConfirm {
|
|
|
3052
3056
|
}
|
|
3053
3057
|
}
|
|
3054
3058
|
|
|
3055
|
-
var __defProp$
|
|
3056
|
-
var __defNormalProp$
|
|
3057
|
-
var __publicField$
|
|
3058
|
-
__defNormalProp$
|
|
3059
|
+
var __defProp$D = Object.defineProperty;
|
|
3060
|
+
var __defNormalProp$D = (obj, key, value) => key in obj ? __defProp$D(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3061
|
+
var __publicField$D = (obj, key, value) => {
|
|
3062
|
+
__defNormalProp$D(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
3059
3063
|
return value;
|
|
3060
3064
|
};
|
|
3061
3065
|
class CheckoutFinish {
|
|
3062
3066
|
constructor(page) {
|
|
3063
3067
|
this.page = page;
|
|
3064
|
-
__publicField$
|
|
3065
|
-
__publicField$
|
|
3066
|
-
__publicField$
|
|
3067
|
-
__publicField$
|
|
3068
|
-
__publicField$
|
|
3069
|
-
__publicField$
|
|
3068
|
+
__publicField$D(this, "headline");
|
|
3069
|
+
__publicField$D(this, "orderNumberText");
|
|
3070
|
+
__publicField$D(this, "grandTotalPrice");
|
|
3071
|
+
__publicField$D(this, "taxPrice");
|
|
3072
|
+
__publicField$D(this, "cartLineItemImages");
|
|
3073
|
+
__publicField$D(this, "orderNumberRegex", /Your order number: #(\d+)/);
|
|
3070
3074
|
this.headline = page.getByRole("heading", { name: "Thank you for your order" });
|
|
3071
3075
|
this.orderNumberText = page.getByText(this.orderNumberRegex);
|
|
3072
3076
|
this.grandTotalPrice = page.locator('dt:has-text("Grand total") + dd');
|
|
@@ -3095,16 +3099,16 @@ class CheckoutFinish {
|
|
|
3095
3099
|
}
|
|
3096
3100
|
}
|
|
3097
3101
|
|
|
3098
|
-
var __defProp$
|
|
3099
|
-
var __defNormalProp$
|
|
3100
|
-
var __publicField$
|
|
3101
|
-
__defNormalProp$
|
|
3102
|
+
var __defProp$C = Object.defineProperty;
|
|
3103
|
+
var __defNormalProp$C = (obj, key, value) => key in obj ? __defProp$C(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3104
|
+
var __publicField$C = (obj, key, value) => {
|
|
3105
|
+
__defNormalProp$C(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
3102
3106
|
return value;
|
|
3103
3107
|
};
|
|
3104
3108
|
class CheckoutRegister {
|
|
3105
3109
|
constructor(page) {
|
|
3106
3110
|
this.page = page;
|
|
3107
|
-
__publicField$
|
|
3111
|
+
__publicField$C(this, "cartLineItemImages");
|
|
3108
3112
|
this.cartLineItemImages = page.locator(".line-item-img-link");
|
|
3109
3113
|
}
|
|
3110
3114
|
url() {
|
|
@@ -3112,23 +3116,23 @@ class CheckoutRegister {
|
|
|
3112
3116
|
}
|
|
3113
3117
|
}
|
|
3114
3118
|
|
|
3115
|
-
var __defProp$
|
|
3116
|
-
var __defNormalProp$
|
|
3117
|
-
var __publicField$
|
|
3118
|
-
__defNormalProp$
|
|
3119
|
+
var __defProp$B = Object.defineProperty;
|
|
3120
|
+
var __defNormalProp$B = (obj, key, value) => key in obj ? __defProp$B(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3121
|
+
var __publicField$B = (obj, key, value) => {
|
|
3122
|
+
__defNormalProp$B(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
3119
3123
|
return value;
|
|
3120
3124
|
};
|
|
3121
3125
|
class Account {
|
|
3122
3126
|
constructor(page) {
|
|
3123
3127
|
this.page = page;
|
|
3124
|
-
__publicField$
|
|
3125
|
-
__publicField$
|
|
3126
|
-
__publicField$
|
|
3127
|
-
__publicField$
|
|
3128
|
-
__publicField$
|
|
3129
|
-
__publicField$
|
|
3130
|
-
__publicField$
|
|
3131
|
-
__publicField$
|
|
3128
|
+
__publicField$B(this, "headline");
|
|
3129
|
+
__publicField$B(this, "personalDataCardTitle");
|
|
3130
|
+
__publicField$B(this, "paymentMethodCardTitle");
|
|
3131
|
+
__publicField$B(this, "billingAddressCardTitle");
|
|
3132
|
+
__publicField$B(this, "shippingAddressCardTitle");
|
|
3133
|
+
__publicField$B(this, "newsletterCheckbox");
|
|
3134
|
+
__publicField$B(this, "newsletterRegistrationSuccessMessage");
|
|
3135
|
+
__publicField$B(this, "customerGroupRequestMessage");
|
|
3132
3136
|
this.headline = page.getByRole("heading", { name: "Overview" });
|
|
3133
3137
|
this.personalDataCardTitle = page.getByRole("heading", { name: "Personal data" });
|
|
3134
3138
|
this.paymentMethodCardTitle = page.getByRole("heading", { name: "Default payment method" });
|
|
@@ -3146,37 +3150,37 @@ class Account {
|
|
|
3146
3150
|
}
|
|
3147
3151
|
}
|
|
3148
3152
|
|
|
3149
|
-
var __defProp$
|
|
3150
|
-
var __defNormalProp$
|
|
3151
|
-
var __publicField$
|
|
3152
|
-
__defNormalProp$
|
|
3153
|
+
var __defProp$A = Object.defineProperty;
|
|
3154
|
+
var __defNormalProp$A = (obj, key, value) => key in obj ? __defProp$A(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3155
|
+
var __publicField$A = (obj, key, value) => {
|
|
3156
|
+
__defNormalProp$A(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
3153
3157
|
return value;
|
|
3154
3158
|
};
|
|
3155
3159
|
class AccountLogin {
|
|
3156
3160
|
constructor(page) {
|
|
3157
3161
|
this.page = page;
|
|
3158
|
-
__publicField$
|
|
3159
|
-
__publicField$
|
|
3160
|
-
__publicField$
|
|
3161
|
-
__publicField$
|
|
3162
|
-
__publicField$
|
|
3162
|
+
__publicField$A(this, "emailInput");
|
|
3163
|
+
__publicField$A(this, "passwordInput");
|
|
3164
|
+
__publicField$A(this, "loginButton");
|
|
3165
|
+
__publicField$A(this, "logoutLink");
|
|
3166
|
+
__publicField$A(this, "successAlert");
|
|
3163
3167
|
// Inputs for registration
|
|
3164
|
-
__publicField$
|
|
3165
|
-
__publicField$
|
|
3166
|
-
__publicField$
|
|
3167
|
-
__publicField$
|
|
3168
|
-
__publicField$
|
|
3169
|
-
__publicField$
|
|
3170
|
-
__publicField$
|
|
3171
|
-
__publicField$
|
|
3172
|
-
__publicField$
|
|
3173
|
-
__publicField$
|
|
3174
|
-
__publicField$
|
|
3175
|
-
__publicField$
|
|
3176
|
-
__publicField$
|
|
3177
|
-
__publicField$
|
|
3178
|
-
__publicField$
|
|
3179
|
-
__publicField$
|
|
3168
|
+
__publicField$A(this, "personalFormArea");
|
|
3169
|
+
__publicField$A(this, "billingAddressFormArea");
|
|
3170
|
+
__publicField$A(this, "accountTypeSelect");
|
|
3171
|
+
__publicField$A(this, "salutationSelect");
|
|
3172
|
+
__publicField$A(this, "firstNameInput");
|
|
3173
|
+
__publicField$A(this, "lastNameInput");
|
|
3174
|
+
__publicField$A(this, "companyInput");
|
|
3175
|
+
__publicField$A(this, "departmentInput");
|
|
3176
|
+
__publicField$A(this, "vatRegNoInput");
|
|
3177
|
+
__publicField$A(this, "registerEmailInput");
|
|
3178
|
+
__publicField$A(this, "registerPasswordInput");
|
|
3179
|
+
__publicField$A(this, "streetAddressInput");
|
|
3180
|
+
__publicField$A(this, "cityInput");
|
|
3181
|
+
__publicField$A(this, "countryInput");
|
|
3182
|
+
__publicField$A(this, "postalCodeInput");
|
|
3183
|
+
__publicField$A(this, "registerButton");
|
|
3180
3184
|
this.emailInput = page.getByLabel("Your email address");
|
|
3181
3185
|
this.passwordInput = page.getByLabel("Your password");
|
|
3182
3186
|
this.loginButton = page.getByRole("button", { name: "Log in" });
|
|
@@ -3205,29 +3209,29 @@ class AccountLogin {
|
|
|
3205
3209
|
}
|
|
3206
3210
|
}
|
|
3207
3211
|
|
|
3208
|
-
var __defProp$
|
|
3209
|
-
var __defNormalProp$
|
|
3210
|
-
var __publicField$
|
|
3211
|
-
__defNormalProp$
|
|
3212
|
+
var __defProp$z = Object.defineProperty;
|
|
3213
|
+
var __defNormalProp$z = (obj, key, value) => key in obj ? __defProp$z(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3214
|
+
var __publicField$z = (obj, key, value) => {
|
|
3215
|
+
__defNormalProp$z(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
3212
3216
|
return value;
|
|
3213
3217
|
};
|
|
3214
3218
|
class AccountProfile {
|
|
3215
3219
|
constructor(page) {
|
|
3216
3220
|
this.page = page;
|
|
3217
|
-
__publicField$
|
|
3218
|
-
__publicField$
|
|
3219
|
-
__publicField$
|
|
3220
|
-
__publicField$
|
|
3221
|
-
__publicField$
|
|
3222
|
-
__publicField$
|
|
3223
|
-
__publicField$
|
|
3224
|
-
__publicField$
|
|
3225
|
-
__publicField$
|
|
3226
|
-
__publicField$
|
|
3227
|
-
__publicField$
|
|
3228
|
-
__publicField$
|
|
3229
|
-
__publicField$
|
|
3230
|
-
__publicField$
|
|
3221
|
+
__publicField$z(this, "salutationSelect");
|
|
3222
|
+
__publicField$z(this, "firstNameInput");
|
|
3223
|
+
__publicField$z(this, "lastNameInput");
|
|
3224
|
+
__publicField$z(this, "saveProfileButton");
|
|
3225
|
+
__publicField$z(this, "changeEmailButton");
|
|
3226
|
+
__publicField$z(this, "emailAddressInput");
|
|
3227
|
+
__publicField$z(this, "emailAddressConfirmInput");
|
|
3228
|
+
__publicField$z(this, "emailConfirmPasswordInput");
|
|
3229
|
+
__publicField$z(this, "saveEmailAddressButton");
|
|
3230
|
+
__publicField$z(this, "changePasswordButton");
|
|
3231
|
+
__publicField$z(this, "newPasswordInput");
|
|
3232
|
+
__publicField$z(this, "newPasswordConfirmInput");
|
|
3233
|
+
__publicField$z(this, "currentPasswordInput");
|
|
3234
|
+
__publicField$z(this, "saveNewPasswordButton");
|
|
3231
3235
|
this.salutationSelect = page.getByLabel("Salutation");
|
|
3232
3236
|
this.firstNameInput = page.getByPlaceholder("Enter first name...");
|
|
3233
3237
|
this.lastNameInput = page.getByPlaceholder("Enter last name...");
|
|
@@ -3248,22 +3252,22 @@ class AccountProfile {
|
|
|
3248
3252
|
}
|
|
3249
3253
|
}
|
|
3250
3254
|
|
|
3251
|
-
var __defProp$
|
|
3252
|
-
var __defNormalProp$
|
|
3253
|
-
var __publicField$
|
|
3254
|
-
__defNormalProp$
|
|
3255
|
+
var __defProp$y = Object.defineProperty;
|
|
3256
|
+
var __defNormalProp$y = (obj, key, value) => key in obj ? __defProp$y(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3257
|
+
var __publicField$y = (obj, key, value) => {
|
|
3258
|
+
__defNormalProp$y(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
3255
3259
|
return value;
|
|
3256
3260
|
};
|
|
3257
3261
|
class AccountOrder {
|
|
3258
3262
|
constructor(page) {
|
|
3259
3263
|
this.page = page;
|
|
3260
|
-
__publicField$
|
|
3261
|
-
__publicField$
|
|
3262
|
-
__publicField$
|
|
3263
|
-
__publicField$
|
|
3264
|
-
__publicField$
|
|
3265
|
-
__publicField$
|
|
3266
|
-
__publicField$
|
|
3264
|
+
__publicField$y(this, "cartLineItemImages");
|
|
3265
|
+
__publicField$y(this, "orderExpandButton");
|
|
3266
|
+
__publicField$y(this, "digitalProductDownloadButton");
|
|
3267
|
+
__publicField$y(this, "dialogOrderCancel");
|
|
3268
|
+
__publicField$y(this, "dialogOrderCancelButton");
|
|
3269
|
+
__publicField$y(this, "dialogBackButton");
|
|
3270
|
+
__publicField$y(this, "getViewSubscriptionLink", (orderNumber) => {
|
|
3267
3271
|
const orderContainer = this.page.locator(".order-item-header", { hasText: `Order Number: ${orderNumber}` });
|
|
3268
3272
|
return orderContainer.getByText("View Subscription");
|
|
3269
3273
|
});
|
|
@@ -3308,20 +3312,20 @@ class AccountOrder {
|
|
|
3308
3312
|
}
|
|
3309
3313
|
}
|
|
3310
3314
|
|
|
3311
|
-
var __defProp$
|
|
3312
|
-
var __defNormalProp$
|
|
3313
|
-
var __publicField$
|
|
3314
|
-
__defNormalProp$
|
|
3315
|
+
var __defProp$x = Object.defineProperty;
|
|
3316
|
+
var __defNormalProp$x = (obj, key, value) => key in obj ? __defProp$x(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3317
|
+
var __publicField$x = (obj, key, value) => {
|
|
3318
|
+
__defNormalProp$x(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
3315
3319
|
return value;
|
|
3316
3320
|
};
|
|
3317
3321
|
class AccountAddresses {
|
|
3318
3322
|
constructor(page) {
|
|
3319
3323
|
this.page = page;
|
|
3320
|
-
__publicField$
|
|
3321
|
-
__publicField$
|
|
3322
|
-
__publicField$
|
|
3323
|
-
__publicField$
|
|
3324
|
-
__publicField$
|
|
3324
|
+
__publicField$x(this, "addNewAddressButton");
|
|
3325
|
+
__publicField$x(this, "editBillingAddressButton");
|
|
3326
|
+
__publicField$x(this, "editShippingAddressButton");
|
|
3327
|
+
__publicField$x(this, "useDefaultBillingAddressButton");
|
|
3328
|
+
__publicField$x(this, "useDefaultShippingAddressButton");
|
|
3325
3329
|
this.addNewAddressButton = page.getByRole("link", { name: /Add (new )?address/ });
|
|
3326
3330
|
this.editBillingAddressButton = page.getByRole("link", { name: "Edit address" }).first();
|
|
3327
3331
|
this.editShippingAddressButton = page.getByRole("link", { name: "Edit address" }).nth(1);
|
|
@@ -3333,19 +3337,19 @@ class AccountAddresses {
|
|
|
3333
3337
|
}
|
|
3334
3338
|
}
|
|
3335
3339
|
|
|
3336
|
-
var __defProp$
|
|
3337
|
-
var __defNormalProp$
|
|
3338
|
-
var __publicField$
|
|
3339
|
-
__defNormalProp$
|
|
3340
|
+
var __defProp$w = Object.defineProperty;
|
|
3341
|
+
var __defNormalProp$w = (obj, key, value) => key in obj ? __defProp$w(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3342
|
+
var __publicField$w = (obj, key, value) => {
|
|
3343
|
+
__defNormalProp$w(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
3340
3344
|
return value;
|
|
3341
3345
|
};
|
|
3342
3346
|
class AccountPayment {
|
|
3343
3347
|
constructor(page) {
|
|
3344
3348
|
this.page = page;
|
|
3345
|
-
__publicField$
|
|
3346
|
-
__publicField$
|
|
3347
|
-
__publicField$
|
|
3348
|
-
__publicField$
|
|
3349
|
+
__publicField$w(this, "cashOnDeliveryOption");
|
|
3350
|
+
__publicField$w(this, "paidInAdvanceOption");
|
|
3351
|
+
__publicField$w(this, "invoiceOption");
|
|
3352
|
+
__publicField$w(this, "changeDefaultPaymentButton");
|
|
3349
3353
|
this.cashOnDeliveryOption = page.getByLabel("Cash on delivery");
|
|
3350
3354
|
this.paidInAdvanceOption = page.getByLabel("Paid in advance");
|
|
3351
3355
|
this.invoiceOption = page.getByLabel("Invoice");
|
|
@@ -3356,17 +3360,17 @@ class AccountPayment {
|
|
|
3356
3360
|
}
|
|
3357
3361
|
}
|
|
3358
3362
|
|
|
3359
|
-
var __defProp$
|
|
3360
|
-
var __defNormalProp$
|
|
3361
|
-
var __publicField$
|
|
3362
|
-
__defNormalProp$
|
|
3363
|
+
var __defProp$v = Object.defineProperty;
|
|
3364
|
+
var __defNormalProp$v = (obj, key, value) => key in obj ? __defProp$v(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3365
|
+
var __publicField$v = (obj, key, value) => {
|
|
3366
|
+
__defNormalProp$v(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
3363
3367
|
return value;
|
|
3364
3368
|
};
|
|
3365
3369
|
class Search {
|
|
3366
3370
|
constructor(page) {
|
|
3367
3371
|
this.page = page;
|
|
3368
|
-
__publicField$
|
|
3369
|
-
__publicField$
|
|
3372
|
+
__publicField$v(this, "headline");
|
|
3373
|
+
__publicField$v(this, "productImages");
|
|
3370
3374
|
this.headline = page.locator("h1.search-headline");
|
|
3371
3375
|
this.productImages = page.locator(".product-image-link");
|
|
3372
3376
|
}
|
|
@@ -3375,16 +3379,16 @@ class Search {
|
|
|
3375
3379
|
}
|
|
3376
3380
|
}
|
|
3377
3381
|
|
|
3378
|
-
var __defProp$
|
|
3379
|
-
var __defNormalProp$
|
|
3380
|
-
var __publicField$
|
|
3381
|
-
__defNormalProp$
|
|
3382
|
+
var __defProp$u = Object.defineProperty;
|
|
3383
|
+
var __defNormalProp$u = (obj, key, value) => key in obj ? __defProp$u(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3384
|
+
var __publicField$u = (obj, key, value) => {
|
|
3385
|
+
__defNormalProp$u(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
3382
3386
|
return value;
|
|
3383
3387
|
};
|
|
3384
3388
|
class SearchSuggest {
|
|
3385
3389
|
constructor(page) {
|
|
3386
3390
|
this.page = page;
|
|
3387
|
-
__publicField$
|
|
3391
|
+
__publicField$u(this, "searchSuggestLineItemImages");
|
|
3388
3392
|
this.searchSuggestLineItemImages = page.locator(".search-suggest-product-image-container");
|
|
3389
3393
|
}
|
|
3390
3394
|
url(searchTerm) {
|
|
@@ -3402,31 +3406,31 @@ class CustomRegister extends AccountLogin {
|
|
|
3402
3406
|
}
|
|
3403
3407
|
}
|
|
3404
3408
|
|
|
3405
|
-
var __defProp$
|
|
3406
|
-
var __defNormalProp$
|
|
3407
|
-
var __publicField$
|
|
3408
|
-
__defNormalProp$
|
|
3409
|
+
var __defProp$t = Object.defineProperty;
|
|
3410
|
+
var __defNormalProp$t = (obj, key, value) => key in obj ? __defProp$t(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3411
|
+
var __publicField$t = (obj, key, value) => {
|
|
3412
|
+
__defNormalProp$t(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
3409
3413
|
return value;
|
|
3410
3414
|
};
|
|
3411
3415
|
class CheckoutOrderEdit {
|
|
3412
3416
|
constructor(page) {
|
|
3413
3417
|
this.page = page;
|
|
3414
|
-
__publicField$
|
|
3415
|
-
__publicField$
|
|
3416
|
-
__publicField$
|
|
3417
|
-
__publicField$
|
|
3418
|
-
__publicField$
|
|
3418
|
+
__publicField$t(this, "completePaymentButton");
|
|
3419
|
+
__publicField$t(this, "orderCancelButton");
|
|
3420
|
+
__publicField$t(this, "dialogOrderCancel");
|
|
3421
|
+
__publicField$t(this, "dialogOrderCancelButton");
|
|
3422
|
+
__publicField$t(this, "dialogBackButton");
|
|
3419
3423
|
/**
|
|
3420
3424
|
* Payment options
|
|
3421
3425
|
*/
|
|
3422
|
-
__publicField$
|
|
3423
|
-
__publicField$
|
|
3424
|
-
__publicField$
|
|
3426
|
+
__publicField$t(this, "paymentCashOnDelivery");
|
|
3427
|
+
__publicField$t(this, "paymentPaidInAdvance");
|
|
3428
|
+
__publicField$t(this, "paymentInvoice");
|
|
3425
3429
|
/**
|
|
3426
3430
|
* Shipping options
|
|
3427
3431
|
*/
|
|
3428
|
-
__publicField$
|
|
3429
|
-
__publicField$
|
|
3432
|
+
__publicField$t(this, "shippingStandard");
|
|
3433
|
+
__publicField$t(this, "shippingExpress");
|
|
3430
3434
|
this.completePaymentButton = page.getByRole("button", { name: "Complete payment" });
|
|
3431
3435
|
this.orderCancelButton = page.getByRole("button", { name: "Cancel order" });
|
|
3432
3436
|
this.dialogOrderCancel = page.getByRole("dialog", { name: "Cancel order" });
|
|
@@ -3520,10 +3524,10 @@ const test$6 = test$e.extend({
|
|
|
3520
3524
|
}
|
|
3521
3525
|
});
|
|
3522
3526
|
|
|
3523
|
-
var __defProp$
|
|
3524
|
-
var __defNormalProp$
|
|
3525
|
-
var __publicField$
|
|
3526
|
-
__defNormalProp$
|
|
3527
|
+
var __defProp$s = Object.defineProperty;
|
|
3528
|
+
var __defNormalProp$s = (obj, key, value) => key in obj ? __defProp$s(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3529
|
+
var __publicField$s = (obj, key, value) => {
|
|
3530
|
+
__defNormalProp$s(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
3527
3531
|
return value;
|
|
3528
3532
|
};
|
|
3529
3533
|
class ProductDetail {
|
|
@@ -3532,47 +3536,78 @@ class ProductDetail {
|
|
|
3532
3536
|
/**
|
|
3533
3537
|
* Save interactions
|
|
3534
3538
|
*/
|
|
3535
|
-
__publicField$
|
|
3536
|
-
__publicField$
|
|
3537
|
-
__publicField$
|
|
3539
|
+
__publicField$s(this, "savePhysicalProductButton");
|
|
3540
|
+
__publicField$s(this, "saveButtonLoadingSpinner");
|
|
3541
|
+
__publicField$s(this, "saveButtonCheckMark");
|
|
3542
|
+
/**
|
|
3543
|
+
* General Info
|
|
3544
|
+
*/
|
|
3545
|
+
__publicField$s(this, "manufacturerDropdownText");
|
|
3546
|
+
/**
|
|
3547
|
+
* Prices
|
|
3548
|
+
*/
|
|
3549
|
+
__publicField$s(this, "priceGrossInput");
|
|
3550
|
+
/**
|
|
3551
|
+
* Deliverability
|
|
3552
|
+
*/
|
|
3553
|
+
__publicField$s(this, "stockInput");
|
|
3554
|
+
__publicField$s(this, "restockTimeInput");
|
|
3555
|
+
/**
|
|
3556
|
+
* Visibility
|
|
3557
|
+
*/
|
|
3558
|
+
__publicField$s(this, "activeForAllSalesChannelsToggle");
|
|
3559
|
+
__publicField$s(this, "tagsInput");
|
|
3560
|
+
__publicField$s(this, "saleChannelsInput");
|
|
3561
|
+
/**
|
|
3562
|
+
* Labelling
|
|
3563
|
+
*/
|
|
3564
|
+
__publicField$s(this, "releaseDateInput");
|
|
3538
3565
|
/**
|
|
3539
3566
|
* Media Upload interactions
|
|
3540
3567
|
*/
|
|
3541
|
-
__publicField$
|
|
3542
|
-
__publicField$
|
|
3543
|
-
__publicField$
|
|
3568
|
+
__publicField$s(this, "uploadMediaButton");
|
|
3569
|
+
__publicField$s(this, "coverImage");
|
|
3570
|
+
__publicField$s(this, "productImage");
|
|
3544
3571
|
/**
|
|
3545
3572
|
* Tabs
|
|
3546
3573
|
*/
|
|
3547
|
-
__publicField$
|
|
3548
|
-
__publicField$
|
|
3574
|
+
__publicField$s(this, "variantsTabLink");
|
|
3575
|
+
__publicField$s(this, "specificationsTabLink");
|
|
3549
3576
|
/**
|
|
3550
3577
|
* Variants Generation
|
|
3551
3578
|
*/
|
|
3552
|
-
__publicField$
|
|
3553
|
-
__publicField$
|
|
3554
|
-
__publicField$
|
|
3555
|
-
__publicField$
|
|
3556
|
-
__publicField$
|
|
3579
|
+
__publicField$s(this, "generateVariantsButton");
|
|
3580
|
+
__publicField$s(this, "variantsModal");
|
|
3581
|
+
__publicField$s(this, "variantsModalHeadline");
|
|
3582
|
+
__publicField$s(this, "variantsNextButton");
|
|
3583
|
+
__publicField$s(this, "variantsSaveButton");
|
|
3557
3584
|
/**
|
|
3558
3585
|
* Property Selection
|
|
3559
3586
|
*/
|
|
3560
|
-
__publicField$
|
|
3561
|
-
__publicField$
|
|
3562
|
-
__publicField$
|
|
3563
|
-
__publicField$
|
|
3564
|
-
__publicField$
|
|
3565
|
-
__publicField$
|
|
3566
|
-
__publicField$
|
|
3567
|
-
__publicField$
|
|
3568
|
-
__publicField$
|
|
3587
|
+
__publicField$s(this, "propertyGroupColor");
|
|
3588
|
+
__publicField$s(this, "propertyGroupSize");
|
|
3589
|
+
__publicField$s(this, "propertyOptionGrid");
|
|
3590
|
+
__publicField$s(this, "propertyOptionColorBlue");
|
|
3591
|
+
__publicField$s(this, "propertyOptionColorRed");
|
|
3592
|
+
__publicField$s(this, "propertyOptionColorGreen");
|
|
3593
|
+
__publicField$s(this, "propertyOptionSizeSmall");
|
|
3594
|
+
__publicField$s(this, "propertyOptionSizeMedium");
|
|
3595
|
+
__publicField$s(this, "propertyOptionSizeLarge");
|
|
3569
3596
|
/**
|
|
3570
3597
|
* Cards
|
|
3571
3598
|
*/
|
|
3572
|
-
__publicField$
|
|
3599
|
+
__publicField$s(this, "customFieldCard");
|
|
3573
3600
|
this.savePhysicalProductButton = page.getByRole("button", { name: "Save" });
|
|
3574
3601
|
this.saveButtonCheckMark = page.locator(".icon--regular-checkmark-xs");
|
|
3575
3602
|
this.saveButtonLoadingSpinner = page.locator("sw-loader");
|
|
3603
|
+
this.manufacturerDropdownText = page.locator(".sw-select-product__select_manufacturer");
|
|
3604
|
+
this.priceGrossInput = page.locator("#sw-price-field-gross").first();
|
|
3605
|
+
this.stockInput = page.getByPlaceholder("Enter quantity in stock...");
|
|
3606
|
+
this.restockTimeInput = page.getByPlaceholder("Enter restock time in days...");
|
|
3607
|
+
this.activeForAllSalesChannelsToggle = page.locator(".sw-field--product-active").getByRole("checkbox");
|
|
3608
|
+
this.tagsInput = page.locator(".sw-product-category-form__tag-field");
|
|
3609
|
+
this.saleChannelsInput = page.locator(".sw-product-detail__select-visibility");
|
|
3610
|
+
this.releaseDateInput = page.locator(".sw-block-field", { hasText: "Release Date" }).getByPlaceholder("Enter release date...").last();
|
|
3576
3611
|
this.uploadMediaButton = page.getByRole("button", { name: "Upload file" });
|
|
3577
3612
|
this.coverImage = page.locator(".sw-product-media-form__cover-image");
|
|
3578
3613
|
this.productImage = page.locator(".sw-media-preview-v2__item");
|
|
@@ -3608,18 +3643,18 @@ class ProductDetail {
|
|
|
3608
3643
|
}
|
|
3609
3644
|
}
|
|
3610
3645
|
|
|
3611
|
-
var __defProp$
|
|
3612
|
-
var __defNormalProp$
|
|
3613
|
-
var __publicField$
|
|
3614
|
-
__defNormalProp$
|
|
3646
|
+
var __defProp$r = Object.defineProperty;
|
|
3647
|
+
var __defNormalProp$r = (obj, key, value) => key in obj ? __defProp$r(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3648
|
+
var __publicField$r = (obj, key, value) => {
|
|
3649
|
+
__defNormalProp$r(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
3615
3650
|
return value;
|
|
3616
3651
|
};
|
|
3617
3652
|
class OrderDetail {
|
|
3618
3653
|
constructor(page) {
|
|
3619
3654
|
this.page = page;
|
|
3620
|
-
__publicField$
|
|
3621
|
-
__publicField$
|
|
3622
|
-
__publicField$
|
|
3655
|
+
__publicField$r(this, "saveButton");
|
|
3656
|
+
__publicField$r(this, "dataGridContextButton");
|
|
3657
|
+
__publicField$r(this, "orderTag");
|
|
3623
3658
|
this.saveButton = page.locator(".sw-order-detail__smart-bar-save-button");
|
|
3624
3659
|
this.dataGridContextButton = page.locator(".sw-data-grid__actions-menu").and(page.getByRole("button"));
|
|
3625
3660
|
this.orderTag = page.locator(".sw-select-selection-list__item");
|
|
@@ -3629,17 +3664,17 @@ class OrderDetail {
|
|
|
3629
3664
|
}
|
|
3630
3665
|
}
|
|
3631
3666
|
|
|
3632
|
-
var __defProp$
|
|
3633
|
-
var __defNormalProp$
|
|
3634
|
-
var __publicField$
|
|
3635
|
-
__defNormalProp$
|
|
3667
|
+
var __defProp$q = Object.defineProperty;
|
|
3668
|
+
var __defNormalProp$q = (obj, key, value) => key in obj ? __defProp$q(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3669
|
+
var __publicField$q = (obj, key, value) => {
|
|
3670
|
+
__defNormalProp$q(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
3636
3671
|
return value;
|
|
3637
3672
|
};
|
|
3638
3673
|
class CustomerListing {
|
|
3639
3674
|
constructor(page) {
|
|
3640
3675
|
this.page = page;
|
|
3641
|
-
__publicField$
|
|
3642
|
-
__publicField$
|
|
3676
|
+
__publicField$q(this, "headline");
|
|
3677
|
+
__publicField$q(this, "addCustomerButton");
|
|
3643
3678
|
this.headline = page.getByRole("heading", { name: "Customers" });
|
|
3644
3679
|
this.addCustomerButton = page.locator(".sw-customer-list__button-create");
|
|
3645
3680
|
}
|
|
@@ -3667,24 +3702,24 @@ class CustomerListing {
|
|
|
3667
3702
|
}
|
|
3668
3703
|
}
|
|
3669
3704
|
|
|
3670
|
-
var __defProp$
|
|
3671
|
-
var __defNormalProp$
|
|
3672
|
-
var __publicField$
|
|
3673
|
-
__defNormalProp$
|
|
3705
|
+
var __defProp$p = Object.defineProperty;
|
|
3706
|
+
var __defNormalProp$p = (obj, key, value) => key in obj ? __defProp$p(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3707
|
+
var __publicField$p = (obj, key, value) => {
|
|
3708
|
+
__defNormalProp$p(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
3674
3709
|
return value;
|
|
3675
3710
|
};
|
|
3676
3711
|
class CustomerDetail {
|
|
3677
3712
|
constructor(page) {
|
|
3678
3713
|
this.page = page;
|
|
3679
|
-
__publicField$
|
|
3680
|
-
__publicField$
|
|
3681
|
-
__publicField$
|
|
3682
|
-
__publicField$
|
|
3683
|
-
__publicField$
|
|
3684
|
-
__publicField$
|
|
3685
|
-
__publicField$
|
|
3686
|
-
__publicField$
|
|
3687
|
-
__publicField$
|
|
3714
|
+
__publicField$p(this, "editButton");
|
|
3715
|
+
__publicField$p(this, "generalTab");
|
|
3716
|
+
__publicField$p(this, "accountCard");
|
|
3717
|
+
__publicField$p(this, "customFieldCard");
|
|
3718
|
+
__publicField$p(this, "customFieldSetTabs");
|
|
3719
|
+
__publicField$p(this, "customFieldSetTabCustomContent");
|
|
3720
|
+
__publicField$p(this, "customerGroupRequestMessage");
|
|
3721
|
+
__publicField$p(this, "customerGroupAcceptButton");
|
|
3722
|
+
__publicField$p(this, "customerGroupDeclineButton");
|
|
3688
3723
|
this.editButton = page.getByRole("button", { name: "Edit" });
|
|
3689
3724
|
this.generalTab = page.getByRole("link", { name: "General" });
|
|
3690
3725
|
this.accountCard = page.locator(".sw-customer-card");
|
|
@@ -3712,17 +3747,17 @@ class CustomerDetail {
|
|
|
3712
3747
|
}
|
|
3713
3748
|
}
|
|
3714
3749
|
|
|
3715
|
-
var __defProp$
|
|
3716
|
-
var __defNormalProp$
|
|
3717
|
-
var __publicField$
|
|
3718
|
-
__defNormalProp$
|
|
3750
|
+
var __defProp$o = Object.defineProperty;
|
|
3751
|
+
var __defNormalProp$o = (obj, key, value) => key in obj ? __defProp$o(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3752
|
+
var __publicField$o = (obj, key, value) => {
|
|
3753
|
+
__defNormalProp$o(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
3719
3754
|
return value;
|
|
3720
3755
|
};
|
|
3721
3756
|
class CustomerGroupListing {
|
|
3722
3757
|
constructor(page) {
|
|
3723
3758
|
this.page = page;
|
|
3724
|
-
__publicField$
|
|
3725
|
-
__publicField$
|
|
3759
|
+
__publicField$o(this, "headline");
|
|
3760
|
+
__publicField$o(this, "addCustomerGroupButton");
|
|
3726
3761
|
this.headline = page.getByRole("heading", { name: "Customer groups" });
|
|
3727
3762
|
this.addCustomerGroupButton = page.locator(".sw-settings-customer-group-list__create");
|
|
3728
3763
|
}
|
|
@@ -3744,29 +3779,29 @@ class CustomerGroupListing {
|
|
|
3744
3779
|
}
|
|
3745
3780
|
}
|
|
3746
3781
|
|
|
3747
|
-
var __defProp$
|
|
3748
|
-
var __defNormalProp$
|
|
3749
|
-
var __publicField$
|
|
3750
|
-
__defNormalProp$
|
|
3782
|
+
var __defProp$n = Object.defineProperty;
|
|
3783
|
+
var __defNormalProp$n = (obj, key, value) => key in obj ? __defProp$n(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3784
|
+
var __publicField$n = (obj, key, value) => {
|
|
3785
|
+
__defNormalProp$n(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
3751
3786
|
return value;
|
|
3752
3787
|
};
|
|
3753
3788
|
class CustomerGroupCreate {
|
|
3754
3789
|
constructor(page) {
|
|
3755
3790
|
this.page = page;
|
|
3756
|
-
__publicField$
|
|
3757
|
-
__publicField$
|
|
3758
|
-
__publicField$
|
|
3759
|
-
__publicField$
|
|
3760
|
-
__publicField$
|
|
3761
|
-
__publicField$
|
|
3762
|
-
__publicField$
|
|
3763
|
-
__publicField$
|
|
3764
|
-
__publicField$
|
|
3765
|
-
__publicField$
|
|
3766
|
-
__publicField$
|
|
3767
|
-
__publicField$
|
|
3768
|
-
__publicField$
|
|
3769
|
-
__publicField$
|
|
3791
|
+
__publicField$n(this, "headline");
|
|
3792
|
+
__publicField$n(this, "saveButton");
|
|
3793
|
+
__publicField$n(this, "cancelButton");
|
|
3794
|
+
__publicField$n(this, "cardTitle");
|
|
3795
|
+
__publicField$n(this, "customerGroupNameField");
|
|
3796
|
+
__publicField$n(this, "customerGroupGrossTaxDisplay");
|
|
3797
|
+
__publicField$n(this, "customerGroupNetTaxDisplay");
|
|
3798
|
+
__publicField$n(this, "customSignupFormToggle");
|
|
3799
|
+
__publicField$n(this, "signupFormTitle");
|
|
3800
|
+
__publicField$n(this, "signupFormIntroduction");
|
|
3801
|
+
__publicField$n(this, "signupFormSeoDescription");
|
|
3802
|
+
__publicField$n(this, "signupFormCompanySignupToggle");
|
|
3803
|
+
__publicField$n(this, "customerGroupSaleschannelSelection");
|
|
3804
|
+
__publicField$n(this, "customerGroupSaleschannelResultList");
|
|
3770
3805
|
this.headline = page.getByRole("heading", { name: "New customer group" });
|
|
3771
3806
|
this.saveButton = page.getByRole("button", { name: "Save" });
|
|
3772
3807
|
this.cancelButton = page.getByRole("button", { name: "Cancel" });
|
|
@@ -3787,20 +3822,20 @@ class CustomerGroupCreate {
|
|
|
3787
3822
|
}
|
|
3788
3823
|
}
|
|
3789
3824
|
|
|
3790
|
-
var __defProp$
|
|
3791
|
-
var __defNormalProp$
|
|
3792
|
-
var __publicField$
|
|
3793
|
-
__defNormalProp$
|
|
3825
|
+
var __defProp$m = Object.defineProperty;
|
|
3826
|
+
var __defNormalProp$m = (obj, key, value) => key in obj ? __defProp$m(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3827
|
+
var __publicField$m = (obj, key, value) => {
|
|
3828
|
+
__defNormalProp$m(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
3794
3829
|
return value;
|
|
3795
3830
|
};
|
|
3796
3831
|
class CustomerGroupDetail extends CustomerGroupCreate {
|
|
3797
3832
|
constructor(page) {
|
|
3798
3833
|
super(page);
|
|
3799
3834
|
this.page = page;
|
|
3800
|
-
__publicField$
|
|
3801
|
-
__publicField$
|
|
3802
|
-
__publicField$
|
|
3803
|
-
__publicField$
|
|
3835
|
+
__publicField$m(this, "headline");
|
|
3836
|
+
__publicField$m(this, "selectedSalesChannel");
|
|
3837
|
+
__publicField$m(this, "technicalUrl");
|
|
3838
|
+
__publicField$m(this, "saleschannelUrl");
|
|
3804
3839
|
this.headline = page.locator(".smart-bar__header");
|
|
3805
3840
|
this.selectedSalesChannel = page.locator(".sw-select-selection-list");
|
|
3806
3841
|
this.technicalUrl = page.getByLabel("Technical URL");
|
|
@@ -3811,53 +3846,53 @@ class CustomerGroupDetail extends CustomerGroupCreate {
|
|
|
3811
3846
|
}
|
|
3812
3847
|
}
|
|
3813
3848
|
|
|
3814
|
-
var __defProp$
|
|
3815
|
-
var __defNormalProp$
|
|
3816
|
-
var __publicField$
|
|
3817
|
-
__defNormalProp$
|
|
3849
|
+
var __defProp$l = Object.defineProperty;
|
|
3850
|
+
var __defNormalProp$l = (obj, key, value) => key in obj ? __defProp$l(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3851
|
+
var __publicField$l = (obj, key, value) => {
|
|
3852
|
+
__defNormalProp$l(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
3818
3853
|
return value;
|
|
3819
3854
|
};
|
|
3820
3855
|
class FirstRunWizard {
|
|
3821
3856
|
constructor(page) {
|
|
3822
3857
|
this.page = page;
|
|
3823
|
-
__publicField$
|
|
3824
|
-
__publicField$
|
|
3825
|
-
__publicField$
|
|
3826
|
-
__publicField$
|
|
3827
|
-
__publicField$
|
|
3828
|
-
__publicField$
|
|
3829
|
-
__publicField$
|
|
3830
|
-
__publicField$
|
|
3831
|
-
__publicField$
|
|
3832
|
-
__publicField$
|
|
3833
|
-
__publicField$
|
|
3834
|
-
__publicField$
|
|
3835
|
-
__publicField$
|
|
3836
|
-
__publicField$
|
|
3837
|
-
__publicField$
|
|
3838
|
-
__publicField$
|
|
3839
|
-
__publicField$
|
|
3840
|
-
__publicField$
|
|
3841
|
-
__publicField$
|
|
3842
|
-
__publicField$
|
|
3843
|
-
__publicField$
|
|
3844
|
-
__publicField$
|
|
3845
|
-
__publicField$
|
|
3846
|
-
__publicField$
|
|
3847
|
-
__publicField$
|
|
3848
|
-
__publicField$
|
|
3849
|
-
__publicField$
|
|
3850
|
-
__publicField$
|
|
3851
|
-
__publicField$
|
|
3852
|
-
__publicField$
|
|
3853
|
-
__publicField$
|
|
3854
|
-
__publicField$
|
|
3855
|
-
__publicField$
|
|
3856
|
-
__publicField$
|
|
3857
|
-
__publicField$
|
|
3858
|
-
__publicField$
|
|
3859
|
-
__publicField$
|
|
3860
|
-
__publicField$
|
|
3858
|
+
__publicField$l(this, "nextButton");
|
|
3859
|
+
__publicField$l(this, "configureLaterButton");
|
|
3860
|
+
__publicField$l(this, "skipButton");
|
|
3861
|
+
__publicField$l(this, "finishButton");
|
|
3862
|
+
__publicField$l(this, "backButton");
|
|
3863
|
+
__publicField$l(this, "smtpServerButton");
|
|
3864
|
+
__publicField$l(this, "dataImportHeader");
|
|
3865
|
+
__publicField$l(this, "installLanguagePackButton");
|
|
3866
|
+
__publicField$l(this, "installDemoDataButton");
|
|
3867
|
+
__publicField$l(this, "installMigrationAssistantButton");
|
|
3868
|
+
__publicField$l(this, "defaultValuesHeader");
|
|
3869
|
+
__publicField$l(this, "mailerConfigurationHeader");
|
|
3870
|
+
__publicField$l(this, "payPalSetupHeader");
|
|
3871
|
+
__publicField$l(this, "extensionsHeader");
|
|
3872
|
+
__publicField$l(this, "shopwareAccountHeader");
|
|
3873
|
+
__publicField$l(this, "shopwareStoreHeader");
|
|
3874
|
+
__publicField$l(this, "doneHeader");
|
|
3875
|
+
__publicField$l(this, "frwSuccessText");
|
|
3876
|
+
__publicField$l(this, "welcomeText");
|
|
3877
|
+
__publicField$l(this, "pluginCardInfo");
|
|
3878
|
+
__publicField$l(this, "dataImportCard");
|
|
3879
|
+
__publicField$l(this, "salesChannelSelectionList");
|
|
3880
|
+
__publicField$l(this, "salesChannelSelectionMultiSelect");
|
|
3881
|
+
__publicField$l(this, "smtpServerTitle");
|
|
3882
|
+
__publicField$l(this, "smtpServerFields");
|
|
3883
|
+
__publicField$l(this, "payPalPaymethods");
|
|
3884
|
+
__publicField$l(this, "payPalInfoCard");
|
|
3885
|
+
__publicField$l(this, "emailAddressInputField");
|
|
3886
|
+
__publicField$l(this, "passwordInputField");
|
|
3887
|
+
__publicField$l(this, "forgotPasswordLink");
|
|
3888
|
+
__publicField$l(this, "extensionStoreHeading");
|
|
3889
|
+
__publicField$l(this, "documentationLink");
|
|
3890
|
+
__publicField$l(this, "forumLink");
|
|
3891
|
+
__publicField$l(this, "roadmapLink");
|
|
3892
|
+
__publicField$l(this, "germanRegionSelector");
|
|
3893
|
+
__publicField$l(this, "toolsSelector");
|
|
3894
|
+
__publicField$l(this, "recommendationHeader");
|
|
3895
|
+
__publicField$l(this, "toolsRecommendedPlugin");
|
|
3861
3896
|
this.nextButton = page.getByText("Next", { exact: true });
|
|
3862
3897
|
this.configureLaterButton = page.getByText("Configure later", { exact: true });
|
|
3863
3898
|
this.skipButton = page.getByText("Skip", { exact: true });
|
|
@@ -3902,17 +3937,17 @@ class FirstRunWizard {
|
|
|
3902
3937
|
}
|
|
3903
3938
|
}
|
|
3904
3939
|
|
|
3905
|
-
var __defProp$
|
|
3906
|
-
var __defNormalProp$
|
|
3907
|
-
var __publicField$
|
|
3908
|
-
__defNormalProp$
|
|
3940
|
+
var __defProp$k = Object.defineProperty;
|
|
3941
|
+
var __defNormalProp$k = (obj, key, value) => key in obj ? __defProp$k(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3942
|
+
var __publicField$k = (obj, key, value) => {
|
|
3943
|
+
__defNormalProp$k(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
3909
3944
|
return value;
|
|
3910
3945
|
};
|
|
3911
3946
|
class FlowBuilderCreate {
|
|
3912
3947
|
constructor(page) {
|
|
3913
3948
|
this.page = page;
|
|
3914
|
-
__publicField$
|
|
3915
|
-
__publicField$
|
|
3949
|
+
__publicField$k(this, "saveButton");
|
|
3950
|
+
__publicField$k(this, "header");
|
|
3916
3951
|
this.saveButton = page.locator(".sw-flow-detail__save");
|
|
3917
3952
|
this.header = page.locator("h2");
|
|
3918
3953
|
}
|
|
@@ -3921,28 +3956,28 @@ class FlowBuilderCreate {
|
|
|
3921
3956
|
}
|
|
3922
3957
|
}
|
|
3923
3958
|
|
|
3924
|
-
var __defProp$
|
|
3925
|
-
var __defNormalProp$
|
|
3926
|
-
var __publicField$
|
|
3927
|
-
__defNormalProp$
|
|
3959
|
+
var __defProp$j = Object.defineProperty;
|
|
3960
|
+
var __defNormalProp$j = (obj, key, value) => key in obj ? __defProp$j(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3961
|
+
var __publicField$j = (obj, key, value) => {
|
|
3962
|
+
__defNormalProp$j(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
3928
3963
|
return value;
|
|
3929
3964
|
};
|
|
3930
3965
|
class FlowBuilderListing {
|
|
3931
3966
|
constructor(page) {
|
|
3932
3967
|
this.page = page;
|
|
3933
|
-
__publicField$
|
|
3934
|
-
__publicField$
|
|
3935
|
-
__publicField$
|
|
3936
|
-
__publicField$
|
|
3937
|
-
__publicField$
|
|
3938
|
-
__publicField$
|
|
3939
|
-
__publicField$
|
|
3940
|
-
__publicField$
|
|
3941
|
-
__publicField$
|
|
3942
|
-
__publicField$
|
|
3943
|
-
__publicField$
|
|
3944
|
-
__publicField$
|
|
3945
|
-
__publicField$
|
|
3968
|
+
__publicField$j(this, "createFlowButton");
|
|
3969
|
+
__publicField$j(this, "firstFlowName");
|
|
3970
|
+
__publicField$j(this, "firstFlowContextButton");
|
|
3971
|
+
__publicField$j(this, "flowContextMenu");
|
|
3972
|
+
__publicField$j(this, "contextMenuDownload");
|
|
3973
|
+
__publicField$j(this, "contextMenuDuplicate");
|
|
3974
|
+
__publicField$j(this, "contextMenuEdit");
|
|
3975
|
+
__publicField$j(this, "contextMenuDelete");
|
|
3976
|
+
__publicField$j(this, "flowDownloadModal");
|
|
3977
|
+
__publicField$j(this, "downloadFlowButton");
|
|
3978
|
+
__publicField$j(this, "flowDeleteButton");
|
|
3979
|
+
__publicField$j(this, "successAlert");
|
|
3980
|
+
__publicField$j(this, "successAlertMessage");
|
|
3946
3981
|
this.createFlowButton = page.locator(".sw-flow-list__create");
|
|
3947
3982
|
this.firstFlowName = page.locator(".sw-data-grid__cell--name a").first();
|
|
3948
3983
|
this.firstFlowContextButton = page.locator(".sw-data-grid__actions-menu").first();
|
|
@@ -3979,18 +4014,18 @@ class FlowBuilderListing {
|
|
|
3979
4014
|
}
|
|
3980
4015
|
}
|
|
3981
4016
|
|
|
3982
|
-
var __defProp$
|
|
3983
|
-
var __defNormalProp$
|
|
3984
|
-
var __publicField$
|
|
3985
|
-
__defNormalProp$
|
|
4017
|
+
var __defProp$i = Object.defineProperty;
|
|
4018
|
+
var __defNormalProp$i = (obj, key, value) => key in obj ? __defProp$i(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
4019
|
+
var __publicField$i = (obj, key, value) => {
|
|
4020
|
+
__defNormalProp$i(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
3986
4021
|
return value;
|
|
3987
4022
|
};
|
|
3988
4023
|
class FlowBuilderDetail {
|
|
3989
4024
|
constructor(page) {
|
|
3990
4025
|
this.page = page;
|
|
3991
|
-
__publicField$
|
|
3992
|
-
__publicField$
|
|
3993
|
-
__publicField$
|
|
4026
|
+
__publicField$i(this, "saveButton");
|
|
4027
|
+
__publicField$i(this, "generalTab");
|
|
4028
|
+
__publicField$i(this, "flowTab");
|
|
3994
4029
|
this.saveButton = page.locator(".sw-flow-detail__save");
|
|
3995
4030
|
this.generalTab = page.locator(".sw-flow-detail__tab-general");
|
|
3996
4031
|
this.flowTab = page.locator(".sw-flow-detail__tab-flow");
|
|
@@ -4000,20 +4035,20 @@ class FlowBuilderDetail {
|
|
|
4000
4035
|
}
|
|
4001
4036
|
}
|
|
4002
4037
|
|
|
4003
|
-
var __defProp$
|
|
4004
|
-
var __defNormalProp$
|
|
4005
|
-
var __publicField$
|
|
4006
|
-
__defNormalProp$
|
|
4038
|
+
var __defProp$h = Object.defineProperty;
|
|
4039
|
+
var __defNormalProp$h = (obj, key, value) => key in obj ? __defProp$h(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
4040
|
+
var __publicField$h = (obj, key, value) => {
|
|
4041
|
+
__defNormalProp$h(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
4007
4042
|
return value;
|
|
4008
4043
|
};
|
|
4009
4044
|
class DataSharing {
|
|
4010
4045
|
constructor(page) {
|
|
4011
4046
|
this.page = page;
|
|
4012
|
-
__publicField$
|
|
4013
|
-
__publicField$
|
|
4014
|
-
__publicField$
|
|
4015
|
-
__publicField$
|
|
4016
|
-
__publicField$
|
|
4047
|
+
__publicField$h(this, "dataConsentHeadline");
|
|
4048
|
+
__publicField$h(this, "dataSharingSuccessMessageLabel");
|
|
4049
|
+
__publicField$h(this, "dataSharingAgreeButton");
|
|
4050
|
+
__publicField$h(this, "dataSharingDisableButton");
|
|
4051
|
+
__publicField$h(this, "dataSharingTermsAgreementLabel");
|
|
4017
4052
|
this.dataConsentHeadline = page.locator("h3.sw-usage-data-consent-banner__content-headline");
|
|
4018
4053
|
this.dataSharingAgreeButton = page.getByRole("button", { name: "Agree" });
|
|
4019
4054
|
this.dataSharingDisableButton = page.getByRole("button", { name: "Disable data sharing" });
|
|
@@ -4025,23 +4060,23 @@ class DataSharing {
|
|
|
4025
4060
|
}
|
|
4026
4061
|
}
|
|
4027
4062
|
|
|
4028
|
-
var __defProp$
|
|
4029
|
-
var __defNormalProp$
|
|
4030
|
-
var __publicField$
|
|
4031
|
-
__defNormalProp$
|
|
4063
|
+
var __defProp$g = Object.defineProperty;
|
|
4064
|
+
var __defNormalProp$g = (obj, key, value) => key in obj ? __defProp$g(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
4065
|
+
var __publicField$g = (obj, key, value) => {
|
|
4066
|
+
__defNormalProp$g(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
4032
4067
|
return value;
|
|
4033
4068
|
};
|
|
4034
4069
|
class Dashboard {
|
|
4035
4070
|
constructor(page) {
|
|
4036
4071
|
this.page = page;
|
|
4037
|
-
__publicField$
|
|
4038
|
-
__publicField$
|
|
4039
|
-
__publicField$
|
|
4040
|
-
__publicField$
|
|
4041
|
-
__publicField$
|
|
4042
|
-
__publicField$
|
|
4043
|
-
__publicField$
|
|
4044
|
-
__publicField$
|
|
4072
|
+
__publicField$g(this, "welcomeHeadline");
|
|
4073
|
+
__publicField$g(this, "dataSharingConsentBanner");
|
|
4074
|
+
__publicField$g(this, "dataSharingAgreeButton");
|
|
4075
|
+
__publicField$g(this, "dataSharingNotAtTheMomentButton");
|
|
4076
|
+
__publicField$g(this, "dataSharingTermsAgreementLabel");
|
|
4077
|
+
__publicField$g(this, "dataSharingSettingsLink");
|
|
4078
|
+
__publicField$g(this, "dataSharingAcceptMessageText");
|
|
4079
|
+
__publicField$g(this, "dataSharingNotAtTheMomentMessageText");
|
|
4045
4080
|
this.welcomeHeadline = page.locator("h1.sw-dashboard-index__welcome-title");
|
|
4046
4081
|
this.dataSharingConsentBanner = page.locator(".sw-usage-data-consent-banner");
|
|
4047
4082
|
this.dataSharingAgreeButton = page.getByRole("button", { name: "Agree" });
|
|
@@ -4056,25 +4091,25 @@ class Dashboard {
|
|
|
4056
4091
|
}
|
|
4057
4092
|
}
|
|
4058
4093
|
|
|
4059
|
-
var __defProp$
|
|
4060
|
-
var __defNormalProp$
|
|
4061
|
-
var __publicField$
|
|
4062
|
-
__defNormalProp$
|
|
4094
|
+
var __defProp$f = Object.defineProperty;
|
|
4095
|
+
var __defNormalProp$f = (obj, key, value) => key in obj ? __defProp$f(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
4096
|
+
var __publicField$f = (obj, key, value) => {
|
|
4097
|
+
__defNormalProp$f(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
4063
4098
|
return value;
|
|
4064
4099
|
};
|
|
4065
4100
|
class ShippingListing {
|
|
4066
4101
|
constructor(page) {
|
|
4067
4102
|
this.page = page;
|
|
4068
|
-
__publicField$
|
|
4069
|
-
__publicField$
|
|
4070
|
-
__publicField$
|
|
4071
|
-
__publicField$
|
|
4072
|
-
__publicField$
|
|
4103
|
+
__publicField$f(this, "header");
|
|
4104
|
+
__publicField$f(this, "addShippingMethod");
|
|
4105
|
+
__publicField$f(this, "contextMenu");
|
|
4106
|
+
__publicField$f(this, "editButton");
|
|
4107
|
+
__publicField$f(this, "deleteButton");
|
|
4073
4108
|
//warning modal
|
|
4074
|
-
__publicField$
|
|
4075
|
-
__publicField$
|
|
4076
|
-
__publicField$
|
|
4077
|
-
__publicField$
|
|
4109
|
+
__publicField$f(this, "modal");
|
|
4110
|
+
__publicField$f(this, "modalHeader");
|
|
4111
|
+
__publicField$f(this, "modalCancelButton");
|
|
4112
|
+
__publicField$f(this, "modalDeleteButton");
|
|
4078
4113
|
this.header = page.locator(".smart-bar__header");
|
|
4079
4114
|
this.addShippingMethod = page.getByText("Add shipping method", { exact: true });
|
|
4080
4115
|
this.contextMenu = page.locator(".sw-data-grid-settings__trigger");
|
|
@@ -4090,10 +4125,10 @@ class ShippingListing {
|
|
|
4090
4125
|
}
|
|
4091
4126
|
}
|
|
4092
4127
|
|
|
4093
|
-
var __defProp$
|
|
4094
|
-
var __defNormalProp$
|
|
4095
|
-
var __publicField$
|
|
4096
|
-
__defNormalProp$
|
|
4128
|
+
var __defProp$e = Object.defineProperty;
|
|
4129
|
+
var __defNormalProp$e = (obj, key, value) => key in obj ? __defProp$e(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
4130
|
+
var __publicField$e = (obj, key, value) => {
|
|
4131
|
+
__defNormalProp$e(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
4097
4132
|
return value;
|
|
4098
4133
|
};
|
|
4099
4134
|
class LandingPageCreate {
|
|
@@ -4102,24 +4137,24 @@ class LandingPageCreate {
|
|
|
4102
4137
|
/**
|
|
4103
4138
|
* General
|
|
4104
4139
|
*/
|
|
4105
|
-
__publicField$
|
|
4106
|
-
__publicField$
|
|
4107
|
-
__publicField$
|
|
4108
|
-
__publicField$
|
|
4109
|
-
__publicField$
|
|
4110
|
-
__publicField$
|
|
4111
|
-
__publicField$
|
|
4140
|
+
__publicField$e(this, "nameInput");
|
|
4141
|
+
__publicField$e(this, "landingPageStatus");
|
|
4142
|
+
__publicField$e(this, "salesChannelSelectionList");
|
|
4143
|
+
__publicField$e(this, "filtersResultPopoverItemList");
|
|
4144
|
+
__publicField$e(this, "saveLandingPageButton");
|
|
4145
|
+
__publicField$e(this, "loadingSpinner");
|
|
4146
|
+
__publicField$e(this, "seoUrlInput");
|
|
4112
4147
|
/**
|
|
4113
4148
|
* Layout
|
|
4114
4149
|
*/
|
|
4115
|
-
__publicField$
|
|
4116
|
-
__publicField$
|
|
4117
|
-
__publicField$
|
|
4118
|
-
__publicField$
|
|
4119
|
-
__publicField$
|
|
4120
|
-
__publicField$
|
|
4121
|
-
__publicField$
|
|
4122
|
-
__publicField$
|
|
4150
|
+
__publicField$e(this, "layoutTab");
|
|
4151
|
+
__publicField$e(this, "assignLayoutButton");
|
|
4152
|
+
__publicField$e(this, "searchLayoutInput");
|
|
4153
|
+
__publicField$e(this, "layoutItems");
|
|
4154
|
+
__publicField$e(this, "layoutSaveButton");
|
|
4155
|
+
__publicField$e(this, "layoutEmptyState");
|
|
4156
|
+
__publicField$e(this, "createNewLayoutButton");
|
|
4157
|
+
__publicField$e(this, "layoutCheckboxes");
|
|
4123
4158
|
this.loadingSpinner = page.locator(".sw-loader");
|
|
4124
4159
|
this.saveLandingPageButton = page.getByRole("button", { name: "Save" });
|
|
4125
4160
|
this.nameInput = page.getByLabel("Name");
|
|
@@ -4144,10 +4179,10 @@ class LandingPageCreate {
|
|
|
4144
4179
|
}
|
|
4145
4180
|
}
|
|
4146
4181
|
|
|
4147
|
-
var __defProp$
|
|
4148
|
-
var __defNormalProp$
|
|
4149
|
-
var __publicField$
|
|
4150
|
-
__defNormalProp$
|
|
4182
|
+
var __defProp$d = Object.defineProperty;
|
|
4183
|
+
var __defNormalProp$d = (obj, key, value) => key in obj ? __defProp$d(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
4184
|
+
var __publicField$d = (obj, key, value) => {
|
|
4185
|
+
__defNormalProp$d(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
4151
4186
|
return value;
|
|
4152
4187
|
};
|
|
4153
4188
|
class LandingPageDetail {
|
|
@@ -4156,24 +4191,24 @@ class LandingPageDetail {
|
|
|
4156
4191
|
/**
|
|
4157
4192
|
* General
|
|
4158
4193
|
*/
|
|
4159
|
-
__publicField$
|
|
4160
|
-
__publicField$
|
|
4161
|
-
__publicField$
|
|
4162
|
-
__publicField$
|
|
4163
|
-
__publicField$
|
|
4164
|
-
__publicField$
|
|
4165
|
-
__publicField$
|
|
4194
|
+
__publicField$d(this, "nameInput");
|
|
4195
|
+
__publicField$d(this, "landingPageStatus");
|
|
4196
|
+
__publicField$d(this, "salesChannelSelectionList");
|
|
4197
|
+
__publicField$d(this, "filtersResultPopoverItemList");
|
|
4198
|
+
__publicField$d(this, "saveLandingPageButton");
|
|
4199
|
+
__publicField$d(this, "loadingSpinner");
|
|
4200
|
+
__publicField$d(this, "seoUrlInput");
|
|
4166
4201
|
/**
|
|
4167
4202
|
* Layout
|
|
4168
4203
|
*/
|
|
4169
|
-
__publicField$
|
|
4170
|
-
__publicField$
|
|
4171
|
-
__publicField$
|
|
4172
|
-
__publicField$
|
|
4173
|
-
__publicField$
|
|
4174
|
-
__publicField$
|
|
4175
|
-
__publicField$
|
|
4176
|
-
__publicField$
|
|
4204
|
+
__publicField$d(this, "layoutTab");
|
|
4205
|
+
__publicField$d(this, "layoutAssignmentCardTitle");
|
|
4206
|
+
__publicField$d(this, "layoutAssignmentCardHeadline");
|
|
4207
|
+
__publicField$d(this, "changeLayoutButton");
|
|
4208
|
+
__publicField$d(this, "editInDesignerButton");
|
|
4209
|
+
__publicField$d(this, "layoutResetButton");
|
|
4210
|
+
__publicField$d(this, "layoutAssignmentStatus");
|
|
4211
|
+
__publicField$d(this, "layoutAssignmentContentSection");
|
|
4177
4212
|
this.loadingSpinner = page.locator(".sw-loader");
|
|
4178
4213
|
this.saveLandingPageButton = page.getByRole("button", { name: "Save" });
|
|
4179
4214
|
this.nameInput = page.getByLabel("Name");
|
|
@@ -4197,10 +4232,10 @@ class LandingPageDetail {
|
|
|
4197
4232
|
}
|
|
4198
4233
|
}
|
|
4199
4234
|
|
|
4200
|
-
var __defProp$
|
|
4201
|
-
var __defNormalProp$
|
|
4202
|
-
var __publicField$
|
|
4203
|
-
__defNormalProp$
|
|
4235
|
+
var __defProp$c = Object.defineProperty;
|
|
4236
|
+
var __defNormalProp$c = (obj, key, value) => key in obj ? __defProp$c(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
4237
|
+
var __publicField$c = (obj, key, value) => {
|
|
4238
|
+
__defNormalProp$c(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
4204
4239
|
return value;
|
|
4205
4240
|
};
|
|
4206
4241
|
class Categories {
|
|
@@ -4209,42 +4244,42 @@ class Categories {
|
|
|
4209
4244
|
/**
|
|
4210
4245
|
* Landing pages
|
|
4211
4246
|
*/
|
|
4212
|
-
__publicField$
|
|
4213
|
-
__publicField$
|
|
4214
|
-
__publicField$
|
|
4215
|
-
__publicField$
|
|
4247
|
+
__publicField$c(this, "landingPageArea");
|
|
4248
|
+
__publicField$c(this, "landingPageHeadline");
|
|
4249
|
+
__publicField$c(this, "addLandingPageButton");
|
|
4250
|
+
__publicField$c(this, "landingPageItems");
|
|
4216
4251
|
/**
|
|
4217
4252
|
* Category tree
|
|
4218
4253
|
*/
|
|
4219
|
-
__publicField$
|
|
4220
|
-
__publicField$
|
|
4221
|
-
__publicField$
|
|
4222
|
-
__publicField$
|
|
4223
|
-
__publicField$
|
|
4224
|
-
__publicField$
|
|
4225
|
-
__publicField$
|
|
4226
|
-
__publicField$
|
|
4254
|
+
__publicField$c(this, "categoryTree");
|
|
4255
|
+
__publicField$c(this, "homeCategory");
|
|
4256
|
+
__publicField$c(this, "homeCategoryContextButton");
|
|
4257
|
+
__publicField$c(this, "categoryMenuItemList");
|
|
4258
|
+
__publicField$c(this, "createCategoryInput");
|
|
4259
|
+
__publicField$c(this, "confirmCategoryCreationButton");
|
|
4260
|
+
__publicField$c(this, "confirmCategoryCancelButton");
|
|
4261
|
+
__publicField$c(this, "categoryItems");
|
|
4227
4262
|
/**
|
|
4228
4263
|
* General
|
|
4229
4264
|
*/
|
|
4230
|
-
__publicField$
|
|
4231
|
-
__publicField$
|
|
4232
|
-
__publicField$
|
|
4233
|
-
__publicField$
|
|
4234
|
-
__publicField$
|
|
4235
|
-
__publicField$
|
|
4236
|
-
__publicField$
|
|
4265
|
+
__publicField$c(this, "nameInput");
|
|
4266
|
+
__publicField$c(this, "activeCheckbox");
|
|
4267
|
+
__publicField$c(this, "categoryTypeSelectionList");
|
|
4268
|
+
__publicField$c(this, "filtersResultPopoverItemList");
|
|
4269
|
+
__publicField$c(this, "saveButton");
|
|
4270
|
+
__publicField$c(this, "loadingSpinner");
|
|
4271
|
+
__publicField$c(this, "fadingBar");
|
|
4237
4272
|
/**
|
|
4238
4273
|
* Customisable link
|
|
4239
4274
|
*/
|
|
4240
|
-
__publicField$
|
|
4241
|
-
__publicField$
|
|
4242
|
-
__publicField$
|
|
4243
|
-
__publicField$
|
|
4244
|
-
__publicField$
|
|
4245
|
-
__publicField$
|
|
4246
|
-
__publicField$
|
|
4247
|
-
__publicField$
|
|
4275
|
+
__publicField$c(this, "entitySelectionList");
|
|
4276
|
+
__publicField$c(this, "linkTypeSelectionList");
|
|
4277
|
+
__publicField$c(this, "categorySelectionList");
|
|
4278
|
+
__publicField$c(this, "productSelectionList");
|
|
4279
|
+
__publicField$c(this, "landingPageSelectionList");
|
|
4280
|
+
__publicField$c(this, "filterResultPopoverTreeCheckboxItemList");
|
|
4281
|
+
__publicField$c(this, "openInNewTabCheckbox");
|
|
4282
|
+
__publicField$c(this, "popoverCategoryTree");
|
|
4248
4283
|
this.landingPageArea = page.locator(".sw-category-detail__landing-page-collapse");
|
|
4249
4284
|
this.landingPageHeadline = this.landingPageArea.getByRole("heading", { name: "Landing pages" });
|
|
4250
4285
|
this.addLandingPageButton = this.landingPageArea.getByText("Add landing page");
|
|
@@ -4284,20 +4319,20 @@ class Categories {
|
|
|
4284
4319
|
}
|
|
4285
4320
|
}
|
|
4286
4321
|
|
|
4287
|
-
var __defProp$
|
|
4288
|
-
var __defNormalProp$
|
|
4289
|
-
var __publicField$
|
|
4290
|
-
__defNormalProp$
|
|
4322
|
+
var __defProp$b = Object.defineProperty;
|
|
4323
|
+
var __defNormalProp$b = (obj, key, value) => key in obj ? __defProp$b(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
4324
|
+
var __publicField$b = (obj, key, value) => {
|
|
4325
|
+
__defNormalProp$b(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
4291
4326
|
return value;
|
|
4292
4327
|
};
|
|
4293
4328
|
class RuleDetail {
|
|
4294
4329
|
constructor(page) {
|
|
4295
4330
|
this.page = page;
|
|
4296
|
-
__publicField$
|
|
4297
|
-
__publicField$
|
|
4298
|
-
__publicField$
|
|
4299
|
-
__publicField$
|
|
4300
|
-
__publicField$
|
|
4331
|
+
__publicField$b(this, "nameInput");
|
|
4332
|
+
__publicField$b(this, "priorityInput");
|
|
4333
|
+
__publicField$b(this, "conditionTypeSelectionInput");
|
|
4334
|
+
__publicField$b(this, "conditionValueSelectionInput");
|
|
4335
|
+
__publicField$b(this, "filtersResultPopoverSelectionList");
|
|
4301
4336
|
this.nameInput = page.getByLabel("Name");
|
|
4302
4337
|
this.priorityInput = page.getByLabel("Priority");
|
|
4303
4338
|
this.conditionTypeSelectionInput = page.locator(".sw-condition-type-select").locator(".sw-single-select__selection");
|
|
@@ -4309,17 +4344,17 @@ class RuleDetail {
|
|
|
4309
4344
|
}
|
|
4310
4345
|
}
|
|
4311
4346
|
|
|
4312
|
-
var __defProp$
|
|
4313
|
-
var __defNormalProp$
|
|
4314
|
-
var __publicField$
|
|
4315
|
-
__defNormalProp$
|
|
4347
|
+
var __defProp$a = Object.defineProperty;
|
|
4348
|
+
var __defNormalProp$a = (obj, key, value) => key in obj ? __defProp$a(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
4349
|
+
var __publicField$a = (obj, key, value) => {
|
|
4350
|
+
__defNormalProp$a(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
4316
4351
|
return value;
|
|
4317
4352
|
};
|
|
4318
4353
|
class CustomFieldListing {
|
|
4319
4354
|
constructor(page) {
|
|
4320
4355
|
this.page = page;
|
|
4321
|
-
__publicField$
|
|
4322
|
-
__publicField$
|
|
4356
|
+
__publicField$a(this, "addNewSetButton");
|
|
4357
|
+
__publicField$a(this, "customFieldRows");
|
|
4323
4358
|
this.addNewSetButton = page.getByText("Add new set");
|
|
4324
4359
|
this.customFieldRows = page.getByRole("row");
|
|
4325
4360
|
}
|
|
@@ -4347,22 +4382,22 @@ class CustomFieldListing {
|
|
|
4347
4382
|
}
|
|
4348
4383
|
}
|
|
4349
4384
|
|
|
4350
|
-
var __defProp$
|
|
4351
|
-
var __defNormalProp$
|
|
4352
|
-
var __publicField$
|
|
4353
|
-
__defNormalProp$
|
|
4385
|
+
var __defProp$9 = Object.defineProperty;
|
|
4386
|
+
var __defNormalProp$9 = (obj, key, value) => key in obj ? __defProp$9(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
4387
|
+
var __publicField$9 = (obj, key, value) => {
|
|
4388
|
+
__defNormalProp$9(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
4354
4389
|
return value;
|
|
4355
4390
|
};
|
|
4356
4391
|
class CustomFieldCreate {
|
|
4357
4392
|
constructor(page) {
|
|
4358
4393
|
this.page = page;
|
|
4359
|
-
__publicField$
|
|
4360
|
-
__publicField$
|
|
4361
|
-
__publicField$
|
|
4362
|
-
__publicField$
|
|
4363
|
-
__publicField$
|
|
4364
|
-
__publicField$
|
|
4365
|
-
__publicField$
|
|
4394
|
+
__publicField$9(this, "saveButton");
|
|
4395
|
+
__publicField$9(this, "cancelButton");
|
|
4396
|
+
__publicField$9(this, "technicalNameInput");
|
|
4397
|
+
__publicField$9(this, "positionInput");
|
|
4398
|
+
__publicField$9(this, "labelEnglishGBInput");
|
|
4399
|
+
__publicField$9(this, "assignToSelectionList");
|
|
4400
|
+
__publicField$9(this, "resultAssignToPopoverItemList");
|
|
4366
4401
|
this.saveButton = page.getByRole("button", { name: "Save" });
|
|
4367
4402
|
this.cancelButton = page.getByRole("button", { name: "Cancel" });
|
|
4368
4403
|
this.technicalNameInput = page.getByLabel("Technical name");
|
|
@@ -4376,33 +4411,33 @@ class CustomFieldCreate {
|
|
|
4376
4411
|
}
|
|
4377
4412
|
}
|
|
4378
4413
|
|
|
4379
|
-
var __defProp$
|
|
4380
|
-
var __defNormalProp$
|
|
4381
|
-
var __publicField$
|
|
4382
|
-
__defNormalProp$
|
|
4414
|
+
var __defProp$8 = Object.defineProperty;
|
|
4415
|
+
var __defNormalProp$8 = (obj, key, value) => key in obj ? __defProp$8(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
4416
|
+
var __publicField$8 = (obj, key, value) => {
|
|
4417
|
+
__defNormalProp$8(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
4383
4418
|
return value;
|
|
4384
4419
|
};
|
|
4385
4420
|
class CustomFieldDetail extends CustomFieldCreate {
|
|
4386
4421
|
constructor(page) {
|
|
4387
4422
|
super(page);
|
|
4388
4423
|
this.page = page;
|
|
4389
|
-
__publicField$
|
|
4390
|
-
__publicField$
|
|
4391
|
-
__publicField$
|
|
4392
|
-
__publicField$
|
|
4393
|
-
__publicField$
|
|
4394
|
-
__publicField$
|
|
4395
|
-
__publicField$
|
|
4396
|
-
__publicField$
|
|
4397
|
-
__publicField$
|
|
4398
|
-
__publicField$
|
|
4399
|
-
__publicField$
|
|
4400
|
-
__publicField$
|
|
4401
|
-
__publicField$
|
|
4402
|
-
__publicField$
|
|
4403
|
-
__publicField$
|
|
4404
|
-
__publicField$
|
|
4405
|
-
__publicField$
|
|
4424
|
+
__publicField$8(this, "newCustomFieldButton");
|
|
4425
|
+
__publicField$8(this, "customFieldEditDialog");
|
|
4426
|
+
__publicField$8(this, "newCustomFieldDialog");
|
|
4427
|
+
__publicField$8(this, "customFieldTechnicalNameInput");
|
|
4428
|
+
__publicField$8(this, "customFieldPositionInput");
|
|
4429
|
+
__publicField$8(this, "customFieldTypeSelectionList");
|
|
4430
|
+
__publicField$8(this, "customFieldModifyByStoreApiCheckbox");
|
|
4431
|
+
__publicField$8(this, "customFieldCancelButton");
|
|
4432
|
+
__publicField$8(this, "customFieldAddButton");
|
|
4433
|
+
__publicField$8(this, "customFieldEditApplyButton");
|
|
4434
|
+
__publicField$8(this, "customFieldLabelEnglishGBInput");
|
|
4435
|
+
__publicField$8(this, "customFieldPlaceholderEnglishGBInput");
|
|
4436
|
+
__publicField$8(this, "customFieldHelpTextEnglishGBInput");
|
|
4437
|
+
__publicField$8(this, "customFieldDeleteListButton");
|
|
4438
|
+
__publicField$8(this, "customFieldDeleteDialog");
|
|
4439
|
+
__publicField$8(this, "customFieldDeleteCancelButton");
|
|
4440
|
+
__publicField$8(this, "customFieldDeleteButton");
|
|
4406
4441
|
this.newCustomFieldButton = page.getByRole("button", { name: "New custom field" });
|
|
4407
4442
|
this.customFieldDeleteListButton = page.locator(".sw-custom-field-list__delete-button");
|
|
4408
4443
|
this.newCustomFieldDialog = page.getByRole("dialog", { name: "New custom field" });
|
|
@@ -4447,20 +4482,20 @@ class CustomFieldDetail extends CustomFieldCreate {
|
|
|
4447
4482
|
}
|
|
4448
4483
|
}
|
|
4449
4484
|
|
|
4450
|
-
var __defProp$
|
|
4451
|
-
var __defNormalProp$
|
|
4452
|
-
var __publicField$
|
|
4453
|
-
__defNormalProp$
|
|
4485
|
+
var __defProp$7 = Object.defineProperty;
|
|
4486
|
+
var __defNormalProp$7 = (obj, key, value) => key in obj ? __defProp$7(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
4487
|
+
var __publicField$7 = (obj, key, value) => {
|
|
4488
|
+
__defNormalProp$7(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
4454
4489
|
return value;
|
|
4455
4490
|
};
|
|
4456
4491
|
class CategoryDetail {
|
|
4457
4492
|
constructor(page) {
|
|
4458
4493
|
this.page = page;
|
|
4459
|
-
__publicField$
|
|
4460
|
-
__publicField$
|
|
4461
|
-
__publicField$
|
|
4462
|
-
__publicField$
|
|
4463
|
-
__publicField$
|
|
4494
|
+
__publicField$7(this, "saveButton");
|
|
4495
|
+
__publicField$7(this, "cancelButton");
|
|
4496
|
+
__publicField$7(this, "customFieldCard");
|
|
4497
|
+
__publicField$7(this, "customFieldSetTabs");
|
|
4498
|
+
__publicField$7(this, "customFieldSetTabCustomContent");
|
|
4464
4499
|
this.saveButton = page.getByRole("button", { name: "Save" });
|
|
4465
4500
|
this.cancelButton = page.getByRole("button", { name: "Cancel" });
|
|
4466
4501
|
this.customFieldCard = page.locator(".sw-card").getByText("Custom fields");
|
|
@@ -4481,22 +4516,22 @@ class CategoryDetail {
|
|
|
4481
4516
|
}
|
|
4482
4517
|
}
|
|
4483
4518
|
|
|
4484
|
-
var __defProp$
|
|
4485
|
-
var __defNormalProp$
|
|
4486
|
-
var __publicField$
|
|
4487
|
-
__defNormalProp$
|
|
4519
|
+
var __defProp$6 = Object.defineProperty;
|
|
4520
|
+
var __defNormalProp$6 = (obj, key, value) => key in obj ? __defProp$6(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
4521
|
+
var __publicField$6 = (obj, key, value) => {
|
|
4522
|
+
__defNormalProp$6(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
4488
4523
|
return value;
|
|
4489
4524
|
};
|
|
4490
4525
|
class RuleCreate {
|
|
4491
4526
|
constructor(page) {
|
|
4492
4527
|
this.page = page;
|
|
4493
|
-
__publicField$
|
|
4494
|
-
__publicField$
|
|
4495
|
-
__publicField$
|
|
4496
|
-
__publicField$
|
|
4497
|
-
__publicField$
|
|
4498
|
-
__publicField$
|
|
4499
|
-
__publicField$
|
|
4528
|
+
__publicField$6(this, "nameInput");
|
|
4529
|
+
__publicField$6(this, "priorityInput");
|
|
4530
|
+
__publicField$6(this, "conditionTypeSelectionInput");
|
|
4531
|
+
__publicField$6(this, "conditionValueSelectionInput");
|
|
4532
|
+
__publicField$6(this, "filtersResultPopoverSelectionList");
|
|
4533
|
+
__publicField$6(this, "saveButton");
|
|
4534
|
+
__publicField$6(this, "cancelButton");
|
|
4500
4535
|
this.nameInput = page.getByLabel("Name");
|
|
4501
4536
|
this.priorityInput = page.getByLabel("Priority");
|
|
4502
4537
|
this.conditionTypeSelectionInput = page.locator(".sw-condition-type-select").locator(".sw-single-select__selection");
|
|
@@ -4510,20 +4545,20 @@ class RuleCreate {
|
|
|
4510
4545
|
}
|
|
4511
4546
|
}
|
|
4512
4547
|
|
|
4513
|
-
var __defProp$
|
|
4514
|
-
var __defNormalProp$
|
|
4515
|
-
var __publicField$
|
|
4516
|
-
__defNormalProp$
|
|
4548
|
+
var __defProp$5 = Object.defineProperty;
|
|
4549
|
+
var __defNormalProp$5 = (obj, key, value) => key in obj ? __defProp$5(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
4550
|
+
var __publicField$5 = (obj, key, value) => {
|
|
4551
|
+
__defNormalProp$5(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
4517
4552
|
return value;
|
|
4518
4553
|
};
|
|
4519
4554
|
class ManufacturerCreate {
|
|
4520
4555
|
constructor(page) {
|
|
4521
4556
|
this.page = page;
|
|
4522
|
-
__publicField$
|
|
4523
|
-
__publicField$
|
|
4524
|
-
__publicField$
|
|
4525
|
-
__publicField$
|
|
4526
|
-
__publicField$
|
|
4557
|
+
__publicField$5(this, "saveButton");
|
|
4558
|
+
__publicField$5(this, "cancelButton");
|
|
4559
|
+
__publicField$5(this, "nameInput");
|
|
4560
|
+
__publicField$5(this, "websiteInput");
|
|
4561
|
+
__publicField$5(this, "descriptionInput");
|
|
4527
4562
|
this.saveButton = page.getByRole("button", { name: "Save" });
|
|
4528
4563
|
this.cancelButton = page.getByRole("button", { name: "Cancel" });
|
|
4529
4564
|
this.nameInput = page.getByLabel("Name");
|
|
@@ -4535,17 +4570,17 @@ class ManufacturerCreate {
|
|
|
4535
4570
|
}
|
|
4536
4571
|
}
|
|
4537
4572
|
|
|
4538
|
-
var __defProp$
|
|
4539
|
-
var __defNormalProp$
|
|
4540
|
-
var __publicField$
|
|
4541
|
-
__defNormalProp$
|
|
4573
|
+
var __defProp$4 = Object.defineProperty;
|
|
4574
|
+
var __defNormalProp$4 = (obj, key, value) => key in obj ? __defProp$4(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
4575
|
+
var __publicField$4 = (obj, key, value) => {
|
|
4576
|
+
__defNormalProp$4(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
4542
4577
|
return value;
|
|
4543
4578
|
};
|
|
4544
4579
|
class ManufacturerListing {
|
|
4545
4580
|
constructor(page) {
|
|
4546
4581
|
this.page = page;
|
|
4547
|
-
__publicField$
|
|
4548
|
-
__publicField$
|
|
4582
|
+
__publicField$4(this, "addManufacturerButton");
|
|
4583
|
+
__publicField$4(this, "manufacturerRows");
|
|
4549
4584
|
this.addManufacturerButton = page.getByText("Add manufacturer");
|
|
4550
4585
|
this.manufacturerRows = page.getByRole("row");
|
|
4551
4586
|
}
|
|
@@ -4577,19 +4612,19 @@ class ManufacturerListing {
|
|
|
4577
4612
|
}
|
|
4578
4613
|
}
|
|
4579
4614
|
|
|
4580
|
-
var __defProp$
|
|
4581
|
-
var __defNormalProp$
|
|
4582
|
-
var __publicField$
|
|
4583
|
-
__defNormalProp$
|
|
4615
|
+
var __defProp$3 = Object.defineProperty;
|
|
4616
|
+
var __defNormalProp$3 = (obj, key, value) => key in obj ? __defProp$3(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
4617
|
+
var __publicField$3 = (obj, key, value) => {
|
|
4618
|
+
__defNormalProp$3(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
4584
4619
|
return value;
|
|
4585
4620
|
};
|
|
4586
4621
|
class ManufacturerDetail extends ManufacturerCreate {
|
|
4587
4622
|
constructor(page) {
|
|
4588
4623
|
super(page);
|
|
4589
4624
|
this.page = page;
|
|
4590
|
-
__publicField$
|
|
4591
|
-
__publicField$
|
|
4592
|
-
__publicField$
|
|
4625
|
+
__publicField$3(this, "customFieldCard");
|
|
4626
|
+
__publicField$3(this, "customFieldSetTabs");
|
|
4627
|
+
__publicField$3(this, "customFieldSetTabCustomContent");
|
|
4593
4628
|
this.customFieldCard = page.locator(".sw-card").getByText("Custom fields");
|
|
4594
4629
|
this.customFieldSetTabs = this.customFieldCard.locator(".sw-tabs-item");
|
|
4595
4630
|
this.customFieldSetTabCustomContent = this.customFieldCard.locator(".sw-tabs__custom-content");
|
|
@@ -4608,6 +4643,178 @@ class ManufacturerDetail extends ManufacturerCreate {
|
|
|
4608
4643
|
}
|
|
4609
4644
|
}
|
|
4610
4645
|
|
|
4646
|
+
var __defProp$2 = Object.defineProperty;
|
|
4647
|
+
var __defNormalProp$2 = (obj, key, value) => key in obj ? __defProp$2(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
4648
|
+
var __publicField$2 = (obj, key, value) => {
|
|
4649
|
+
__defNormalProp$2(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
4650
|
+
return value;
|
|
4651
|
+
};
|
|
4652
|
+
class ProductListing {
|
|
4653
|
+
constructor(page) {
|
|
4654
|
+
this.page = page;
|
|
4655
|
+
/**
|
|
4656
|
+
* Multi selection
|
|
4657
|
+
*/
|
|
4658
|
+
__publicField$2(this, "productsTable");
|
|
4659
|
+
__publicField$2(this, "bulkEditButton");
|
|
4660
|
+
/**
|
|
4661
|
+
* Bulk edit modal
|
|
4662
|
+
*/
|
|
4663
|
+
__publicField$2(this, "bulkEditModal");
|
|
4664
|
+
__publicField$2(this, "startBulkEditButton");
|
|
4665
|
+
this.productsTable = page.locator(".sw-data-grid__table");
|
|
4666
|
+
this.bulkEditButton = page.getByRole("button", { name: "Bulk edit" });
|
|
4667
|
+
this.bulkEditModal = page.locator(".sw-product-bulk-edit-modal");
|
|
4668
|
+
this.startBulkEditButton = this.bulkEditModal.getByRole("button", { name: "Start bulk edit" });
|
|
4669
|
+
}
|
|
4670
|
+
/**
|
|
4671
|
+
* Returns the url to the listing page.
|
|
4672
|
+
*
|
|
4673
|
+
* @param searchTerms - Includes search terms for filtering of the product list.
|
|
4674
|
+
*/
|
|
4675
|
+
url(searchTerms = []) {
|
|
4676
|
+
let url = "#/sw/product/index";
|
|
4677
|
+
if (searchTerms.length > 0) {
|
|
4678
|
+
let tempTerm = "";
|
|
4679
|
+
for (const searchTerm of searchTerms) {
|
|
4680
|
+
if (tempTerm != "") {
|
|
4681
|
+
tempTerm += "+";
|
|
4682
|
+
}
|
|
4683
|
+
tempTerm += searchTerm;
|
|
4684
|
+
}
|
|
4685
|
+
url += `?limit=25&page=1&term=${tempTerm}`;
|
|
4686
|
+
}
|
|
4687
|
+
return url;
|
|
4688
|
+
}
|
|
4689
|
+
/**
|
|
4690
|
+
* Returns the table row containing the product with the given product number.
|
|
4691
|
+
*
|
|
4692
|
+
* @param productNumber - Product number you are looking for.
|
|
4693
|
+
*/
|
|
4694
|
+
async getProductRow(productNumber) {
|
|
4695
|
+
const productTableRow = this.productsTable.locator(".sw-data-grid__row", { hasText: productNumber });
|
|
4696
|
+
const productNameSelector = ".sw-data-grid__cell--name";
|
|
4697
|
+
const productNumberSelector = ".sw-data-grid__cell--productNumber";
|
|
4698
|
+
const productManufacturerSelector = ".sw-data-grid__cell--manufacturer-name";
|
|
4699
|
+
const productActiveSelector = "sw-icon__regular-checkmark-xs";
|
|
4700
|
+
const productInactiveSelector = "sw-icon__regular-times-s";
|
|
4701
|
+
const productPriceSelector = ".sw-data-grid__cell--price-EUR";
|
|
4702
|
+
return {
|
|
4703
|
+
selectionCheckbox: productTableRow.getByRole("checkbox"),
|
|
4704
|
+
productName: productTableRow.locator(productNameSelector),
|
|
4705
|
+
productNumber: productTableRow.locator(productNumberSelector),
|
|
4706
|
+
productManufacturer: productTableRow.locator(productManufacturerSelector),
|
|
4707
|
+
productActive: productTableRow.getByTestId(productActiveSelector),
|
|
4708
|
+
productInactive: productTableRow.getByTestId(productInactiveSelector),
|
|
4709
|
+
productPrice: productTableRow.locator(productPriceSelector)
|
|
4710
|
+
};
|
|
4711
|
+
}
|
|
4712
|
+
}
|
|
4713
|
+
|
|
4714
|
+
var __defProp$1 = Object.defineProperty;
|
|
4715
|
+
var __defNormalProp$1 = (obj, key, value) => key in obj ? __defProp$1(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
4716
|
+
var __publicField$1 = (obj, key, value) => {
|
|
4717
|
+
__defNormalProp$1(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
4718
|
+
return value;
|
|
4719
|
+
};
|
|
4720
|
+
class ProductBulkEdit {
|
|
4721
|
+
constructor(page) {
|
|
4722
|
+
this.page = page;
|
|
4723
|
+
/**
|
|
4724
|
+
* Bulk edit values
|
|
4725
|
+
*/
|
|
4726
|
+
__publicField$1(this, "changeManufacturerRow");
|
|
4727
|
+
__publicField$1(this, "changeManufacturerCheckbox");
|
|
4728
|
+
__publicField$1(this, "manufacturerDropdown");
|
|
4729
|
+
__publicField$1(this, "manufacturerDropdownInput");
|
|
4730
|
+
__publicField$1(this, "manufacturerListResult");
|
|
4731
|
+
__publicField$1(this, "changeActiveRow");
|
|
4732
|
+
__publicField$1(this, "changeActiveCheckbox");
|
|
4733
|
+
__publicField$1(this, "activeToggle");
|
|
4734
|
+
__publicField$1(this, "changePriceRow");
|
|
4735
|
+
__publicField$1(this, "changePriceCheckbox");
|
|
4736
|
+
__publicField$1(this, "grossPriceInput");
|
|
4737
|
+
__publicField$1(this, "changeReleaseDateRow");
|
|
4738
|
+
__publicField$1(this, "changeReleaseDateCheckbox");
|
|
4739
|
+
__publicField$1(this, "releaseDateInput");
|
|
4740
|
+
__publicField$1(this, "changeStockRow");
|
|
4741
|
+
__publicField$1(this, "changeStockCheckbox");
|
|
4742
|
+
__publicField$1(this, "stockChangeMethodDropdown");
|
|
4743
|
+
__publicField$1(this, "stockChangeMethodInput");
|
|
4744
|
+
__publicField$1(this, "stockInput");
|
|
4745
|
+
__publicField$1(this, "changeRestockTimeRow");
|
|
4746
|
+
__publicField$1(this, "changeRestockTimeCheckbox");
|
|
4747
|
+
__publicField$1(this, "restockTimeChangeMethodDropdown");
|
|
4748
|
+
__publicField$1(this, "restockTimeChangeMethodInput");
|
|
4749
|
+
__publicField$1(this, "restockTimeInput");
|
|
4750
|
+
__publicField$1(this, "changeTagsRow");
|
|
4751
|
+
__publicField$1(this, "changeTagsCheckbox");
|
|
4752
|
+
__publicField$1(this, "tagsChangeMethodDropdown");
|
|
4753
|
+
__publicField$1(this, "tagsChangeMethodInput");
|
|
4754
|
+
__publicField$1(this, "tagsInput");
|
|
4755
|
+
__publicField$1(this, "changeSalesChannelRow");
|
|
4756
|
+
__publicField$1(this, "changeSalesChannelCheckbox");
|
|
4757
|
+
__publicField$1(this, "salesChannelChangeMethodDropdown");
|
|
4758
|
+
__publicField$1(this, "salesChannelChangeMethodInput");
|
|
4759
|
+
__publicField$1(this, "salesChannelInput");
|
|
4760
|
+
__publicField$1(this, "applyChangesButton");
|
|
4761
|
+
/**
|
|
4762
|
+
* Confirmation modal
|
|
4763
|
+
*/
|
|
4764
|
+
__publicField$1(this, "confirmModal");
|
|
4765
|
+
__publicField$1(this, "confirmModalApplyChangesButton");
|
|
4766
|
+
__publicField$1(this, "confirmModalLoadingSpinner");
|
|
4767
|
+
__publicField$1(this, "confirmModalSuccessHeader");
|
|
4768
|
+
__publicField$1(this, "confirmModalSuccessCloseButton");
|
|
4769
|
+
this.changeManufacturerRow = page.locator(".sw-bulk-edit-change-field-manufacturerId");
|
|
4770
|
+
this.changeManufacturerCheckbox = this.changeManufacturerRow.getByRole("checkbox");
|
|
4771
|
+
this.manufacturerDropdown = this.changeManufacturerRow.locator(".sw-select__selection");
|
|
4772
|
+
this.manufacturerDropdownInput = this.changeManufacturerRow.getByPlaceholder("Select manufacturer...");
|
|
4773
|
+
this.manufacturerListResult = this.changeManufacturerRow.getByRole("list");
|
|
4774
|
+
this.changeActiveRow = page.locator(".sw-bulk-edit-change-field-active");
|
|
4775
|
+
this.changeActiveCheckbox = this.changeActiveRow.getByRole("checkbox").first();
|
|
4776
|
+
this.activeToggle = this.changeActiveRow.getByRole("checkbox").last();
|
|
4777
|
+
this.changePriceRow = page.locator(".sw-bulk-edit-change-field-price");
|
|
4778
|
+
this.changePriceCheckbox = this.changePriceRow.getByRole("checkbox");
|
|
4779
|
+
this.grossPriceInput = this.changePriceRow.getByPlaceholder("Enter gross price...");
|
|
4780
|
+
this.changeReleaseDateRow = page.locator(".sw-bulk-edit-change-field-releaseDate");
|
|
4781
|
+
this.changeReleaseDateCheckbox = this.changeReleaseDateRow.getByRole("checkbox");
|
|
4782
|
+
this.releaseDateInput = this.changeReleaseDateRow.getByPlaceholder("Y-m-d H:i").last();
|
|
4783
|
+
this.changeStockRow = page.locator(".sw-bulk-edit-change-field-stock");
|
|
4784
|
+
this.changeStockCheckbox = this.changeStockRow.getByRole("checkbox");
|
|
4785
|
+
this.stockChangeMethodDropdown = this.changeStockRow.locator(".sw-single-select__selection-text");
|
|
4786
|
+
this.stockChangeMethodInput = this.changeStockRow.locator(".sw-single-select__selection-input");
|
|
4787
|
+
this.stockInput = this.changeStockRow.getByPlaceholder("Enter quantity in stock...");
|
|
4788
|
+
this.changeRestockTimeRow = page.locator(".sw-bulk-edit-change-field-restockTime");
|
|
4789
|
+
this.changeRestockTimeCheckbox = this.changeRestockTimeRow.getByRole("checkbox");
|
|
4790
|
+
this.restockTimeChangeMethodDropdown = this.changeRestockTimeRow.locator(".sw-single-select__selection-text");
|
|
4791
|
+
this.restockTimeChangeMethodInput = this.changeRestockTimeRow.locator(".sw-single-select__selection-input");
|
|
4792
|
+
this.restockTimeInput = this.changeRestockTimeRow.getByPlaceholder("Enter restock time in days...");
|
|
4793
|
+
this.changeTagsRow = page.locator(".sw-bulk-edit-change-field-tags");
|
|
4794
|
+
this.changeTagsCheckbox = this.changeTagsRow.getByRole("checkbox");
|
|
4795
|
+
this.tagsChangeMethodDropdown = this.changeTagsRow.locator(".sw-single-select__selection-text");
|
|
4796
|
+
this.tagsChangeMethodInput = this.changeTagsRow.locator(".sw-single-select__selection-input");
|
|
4797
|
+
this.tagsInput = this.changeTagsRow.getByPlaceholder("Enter tags...");
|
|
4798
|
+
this.changeSalesChannelRow = page.locator(".sw-bulk-edit-change-field-visibilities");
|
|
4799
|
+
this.changeSalesChannelCheckbox = this.changeSalesChannelRow.getByRole("checkbox");
|
|
4800
|
+
this.salesChannelChangeMethodDropdown = this.changeSalesChannelRow.locator(".sw-single-select__selection-text");
|
|
4801
|
+
this.salesChannelChangeMethodInput = this.changeSalesChannelRow.locator(".sw-single-select__selection-input");
|
|
4802
|
+
this.salesChannelInput = this.changeSalesChannelRow.getByRole("textbox");
|
|
4803
|
+
this.applyChangesButton = page.getByRole("button", { name: "Apply changes" });
|
|
4804
|
+
this.confirmModal = page.locator(".sw-bulk-edit-save-modal");
|
|
4805
|
+
this.confirmModalApplyChangesButton = this.confirmModal.getByRole("button", { name: "Apply changes" });
|
|
4806
|
+
this.confirmModalLoadingSpinner = this.confirmModal.locator(".sw-bulk-edit-save-modal__loading-icon");
|
|
4807
|
+
this.confirmModalSuccessHeader = this.confirmModal.getByRole("heading", { name: "Bulk edit - Success" });
|
|
4808
|
+
this.confirmModalSuccessCloseButton = this.confirmModal.getByRole("button", { name: "Close" }).first();
|
|
4809
|
+
}
|
|
4810
|
+
url() {
|
|
4811
|
+
throw new Error("Bulk edit page does not have a callable URL.");
|
|
4812
|
+
}
|
|
4813
|
+
async getDropdownEntry(entry) {
|
|
4814
|
+
return this.page.locator(`.sw-select-result`, { hasText: entry });
|
|
4815
|
+
}
|
|
4816
|
+
}
|
|
4817
|
+
|
|
4611
4818
|
const AdminPageObjects = {
|
|
4612
4819
|
ProductDetail,
|
|
4613
4820
|
OrderDetail,
|
|
@@ -4634,7 +4841,9 @@ const AdminPageObjects = {
|
|
|
4634
4841
|
CustomFieldDetail,
|
|
4635
4842
|
ManufacturerCreate,
|
|
4636
4843
|
ManufacturerDetail,
|
|
4637
|
-
ManufacturerListing
|
|
4844
|
+
ManufacturerListing,
|
|
4845
|
+
ProductListing,
|
|
4846
|
+
ProductBulkEdit
|
|
4638
4847
|
};
|
|
4639
4848
|
const test$5 = test$e.extend({
|
|
4640
4849
|
AdminProductDetail: async ({ AdminPage }, use) => {
|
|
@@ -4714,6 +4923,12 @@ const test$5 = test$e.extend({
|
|
|
4714
4923
|
},
|
|
4715
4924
|
AdminManufacturerDetail: async ({ AdminPage }, use) => {
|
|
4716
4925
|
await use(new ManufacturerDetail(AdminPage));
|
|
4926
|
+
},
|
|
4927
|
+
AdminProductListing: async ({ AdminPage }, use) => {
|
|
4928
|
+
await use(new ProductListing(AdminPage));
|
|
4929
|
+
},
|
|
4930
|
+
AdminProductBulkEdit: async ({ AdminPage }, use) => {
|
|
4931
|
+
await use(new ProductBulkEdit(AdminPage));
|
|
4717
4932
|
}
|
|
4718
4933
|
});
|
|
4719
4934
|
|
|
@@ -5345,7 +5560,7 @@ const CreateLinkTypeCategory = test$e.extend({
|
|
|
5345
5560
|
});
|
|
5346
5561
|
|
|
5347
5562
|
const SetSystemConfigValues = test$e.extend({
|
|
5348
|
-
SetSystemConfigValues: async ({ AdminApiContext, DefaultSalesChannel }, use) => {
|
|
5563
|
+
SetSystemConfigValues: async ({ AdminApiContext, DefaultSalesChannel, TestDataService }, use) => {
|
|
5349
5564
|
let defaultSettings;
|
|
5350
5565
|
const task = (newValues, defaultValues) => {
|
|
5351
5566
|
return async function LoginRegistration() {
|
|
@@ -5357,6 +5572,7 @@ const SetSystemConfigValues = test$e.extend({
|
|
|
5357
5572
|
}
|
|
5358
5573
|
});
|
|
5359
5574
|
expect(newSettings.ok()).toBeTruthy();
|
|
5575
|
+
await TestDataService.clearCaches();
|
|
5360
5576
|
};
|
|
5361
5577
|
};
|
|
5362
5578
|
await use(task);
|
|
@@ -5370,11 +5586,110 @@ const SetSystemConfigValues = test$e.extend({
|
|
|
5370
5586
|
}
|
|
5371
5587
|
});
|
|
5372
5588
|
|
|
5589
|
+
const BulkEditProducts = test$e.extend({
|
|
5590
|
+
BulkEditProducts: async ({ AdminProductBulkEdit, AdminProductListing }, use) => {
|
|
5591
|
+
const task = (products, changes) => {
|
|
5592
|
+
return async function BulkEditProducts2() {
|
|
5593
|
+
for (const product of products) {
|
|
5594
|
+
const productTableRow = await AdminProductListing.getProductRow(product.productNumber);
|
|
5595
|
+
await productTableRow.selectionCheckbox.click();
|
|
5596
|
+
}
|
|
5597
|
+
await AdminProductListing.bulkEditButton.click();
|
|
5598
|
+
await AdminProductListing.startBulkEditButton.click();
|
|
5599
|
+
if (changes["grossPrice"] != null) {
|
|
5600
|
+
await AdminProductBulkEdit.changePriceCheckbox.click();
|
|
5601
|
+
await AdminProductBulkEdit.grossPriceInput.fill(changes["grossPrice"].value);
|
|
5602
|
+
}
|
|
5603
|
+
if (changes["active"] != null) {
|
|
5604
|
+
if (changes["active"].value == "false") {
|
|
5605
|
+
await AdminProductBulkEdit.changeActiveCheckbox.click();
|
|
5606
|
+
} else {
|
|
5607
|
+
await AdminProductBulkEdit.changeActiveCheckbox.click();
|
|
5608
|
+
await AdminProductBulkEdit.activeToggle.click();
|
|
5609
|
+
}
|
|
5610
|
+
}
|
|
5611
|
+
if (changes["manufacturer"] != null) {
|
|
5612
|
+
await AdminProductBulkEdit.changeManufacturerCheckbox.click();
|
|
5613
|
+
await AdminProductBulkEdit.manufacturerDropdown.click();
|
|
5614
|
+
const responsePromise = AdminProductBulkEdit.page.waitForResponse(
|
|
5615
|
+
(response2) => response2.url().includes(`product-manufacturer`) && response2.status() === 200 && response2.request().method() === "POST"
|
|
5616
|
+
);
|
|
5617
|
+
await AdminProductBulkEdit.manufacturerDropdownInput.fill(changes["manufacturer"].value);
|
|
5618
|
+
const response = await responsePromise;
|
|
5619
|
+
expect(response.ok()).toBeTruthy();
|
|
5620
|
+
const searchResult = await AdminProductBulkEdit.getDropdownEntry(changes["manufacturer"].value);
|
|
5621
|
+
await searchResult.click();
|
|
5622
|
+
}
|
|
5623
|
+
if (changes["releaseDate"] != null) {
|
|
5624
|
+
await AdminProductBulkEdit.changeReleaseDateCheckbox.click();
|
|
5625
|
+
await AdminProductBulkEdit.releaseDateInput.fill(changes["releaseDate"].value);
|
|
5626
|
+
}
|
|
5627
|
+
if (changes["stock"] != null) {
|
|
5628
|
+
await AdminProductBulkEdit.changeStockCheckbox.click();
|
|
5629
|
+
await AdminProductBulkEdit.stockChangeMethodDropdown.click();
|
|
5630
|
+
await (await AdminProductBulkEdit.getDropdownEntry(changes["stock"].method)).click();
|
|
5631
|
+
if (changes["stock"].method != "Clear") {
|
|
5632
|
+
await AdminProductBulkEdit.stockInput.fill(changes["stock"].value);
|
|
5633
|
+
}
|
|
5634
|
+
}
|
|
5635
|
+
if (changes["restockTime"] != null) {
|
|
5636
|
+
await AdminProductBulkEdit.changeRestockTimeCheckbox.click();
|
|
5637
|
+
await AdminProductBulkEdit.restockTimeChangeMethodDropdown.click();
|
|
5638
|
+
await (await AdminProductBulkEdit.getDropdownEntry(changes["restockTime"].method)).click();
|
|
5639
|
+
if (changes["restockTime"].method != "Clear") {
|
|
5640
|
+
await AdminProductBulkEdit.restockTimeInput.fill(changes["restockTime"].value);
|
|
5641
|
+
}
|
|
5642
|
+
}
|
|
5643
|
+
if (changes["tags"] != null) {
|
|
5644
|
+
await AdminProductBulkEdit.changeTagsCheckbox.click();
|
|
5645
|
+
await AdminProductBulkEdit.tagsChangeMethodDropdown.click();
|
|
5646
|
+
await (await AdminProductBulkEdit.getDropdownEntry(changes["tags"].method)).click();
|
|
5647
|
+
if (changes["tags"].method != "Clear") {
|
|
5648
|
+
await AdminProductBulkEdit.tagsInput.click();
|
|
5649
|
+
const responsePromise = AdminProductBulkEdit.page.waitForResponse(
|
|
5650
|
+
(response2) => response2.url().includes(`search/tag`) && response2.status() === 200 && response2.request().method() === "POST"
|
|
5651
|
+
);
|
|
5652
|
+
await AdminProductBulkEdit.tagsInput.fill(changes["tags"].value);
|
|
5653
|
+
const response = await responsePromise;
|
|
5654
|
+
expect(response.ok()).toBeTruthy();
|
|
5655
|
+
const searchResult = await AdminProductBulkEdit.getDropdownEntry(changes["tags"].value);
|
|
5656
|
+
await searchResult.click();
|
|
5657
|
+
}
|
|
5658
|
+
}
|
|
5659
|
+
if (changes["saleschannel"] != null) {
|
|
5660
|
+
await AdminProductBulkEdit.changeSalesChannelCheckbox.click();
|
|
5661
|
+
await AdminProductBulkEdit.salesChannelChangeMethodDropdown.click();
|
|
5662
|
+
await (await AdminProductBulkEdit.getDropdownEntry(changes["saleschannel"].method)).click();
|
|
5663
|
+
if (changes["saleschannel"].method != "Clear") {
|
|
5664
|
+
await AdminProductBulkEdit.salesChannelInput.click();
|
|
5665
|
+
const responsePromise = AdminProductBulkEdit.page.waitForResponse(
|
|
5666
|
+
(response2) => response2.url().includes(`search/sales-channel`) && response2.status() === 200 && response2.request().method() === "POST"
|
|
5667
|
+
);
|
|
5668
|
+
await AdminProductBulkEdit.salesChannelInput.fill(changes["saleschannel"].value);
|
|
5669
|
+
const response = await responsePromise;
|
|
5670
|
+
expect(response.ok()).toBeTruthy();
|
|
5671
|
+
const searchResult = await AdminProductBulkEdit.getDropdownEntry(changes["saleschannel"].value);
|
|
5672
|
+
await searchResult.click();
|
|
5673
|
+
}
|
|
5674
|
+
}
|
|
5675
|
+
await AdminProductBulkEdit.applyChangesButton.click();
|
|
5676
|
+
await AdminProductBulkEdit.confirmModalApplyChangesButton.click();
|
|
5677
|
+
await AdminProductBulkEdit.confirmModalLoadingSpinner.waitFor({ state: "visible" });
|
|
5678
|
+
await AdminProductBulkEdit.confirmModalLoadingSpinner.waitFor({ state: "hidden" });
|
|
5679
|
+
await expect(AdminProductBulkEdit.confirmModalSuccessHeader).toBeVisible();
|
|
5680
|
+
await AdminProductBulkEdit.confirmModalSuccessCloseButton.click();
|
|
5681
|
+
};
|
|
5682
|
+
};
|
|
5683
|
+
await use(task);
|
|
5684
|
+
}
|
|
5685
|
+
});
|
|
5686
|
+
|
|
5373
5687
|
const test$3 = mergeTests(
|
|
5374
5688
|
SaveProduct,
|
|
5375
5689
|
ExpectNotification,
|
|
5376
5690
|
CreateLinkTypeCategory,
|
|
5377
|
-
SetSystemConfigValues
|
|
5691
|
+
SetSystemConfigValues,
|
|
5692
|
+
BulkEditProducts
|
|
5378
5693
|
);
|
|
5379
5694
|
|
|
5380
5695
|
const Login = test$e.extend({
|