@shopware-ag/acceptance-test-suite 1.5.0 → 2.0.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/README.md +5 -5
- package/dist/index.d.mts +77 -50
- package/dist/index.d.ts +77 -50
- package/dist/index.mjs +377 -360
- package/package.json +2 -2
package/dist/index.mjs
CHANGED
|
@@ -420,16 +420,16 @@ const test$a = test$c.extend({
|
|
|
420
420
|
]
|
|
421
421
|
});
|
|
422
422
|
|
|
423
|
-
var __defProp$
|
|
424
|
-
var __defNormalProp$
|
|
425
|
-
var __publicField$
|
|
426
|
-
__defNormalProp$
|
|
423
|
+
var __defProp$r = Object.defineProperty;
|
|
424
|
+
var __defNormalProp$r = (obj, key, value) => key in obj ? __defProp$r(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
425
|
+
var __publicField$r = (obj, key, value) => {
|
|
426
|
+
__defNormalProp$r(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
427
427
|
return value;
|
|
428
428
|
};
|
|
429
429
|
const _AdminApiContext = class _AdminApiContext {
|
|
430
430
|
constructor(context, options) {
|
|
431
|
-
__publicField$
|
|
432
|
-
__publicField$
|
|
431
|
+
__publicField$r(this, "context");
|
|
432
|
+
__publicField$r(this, "options");
|
|
433
433
|
this.context = context;
|
|
434
434
|
this.options = options;
|
|
435
435
|
}
|
|
@@ -521,7 +521,7 @@ const _AdminApiContext = class _AdminApiContext {
|
|
|
521
521
|
return this.context.head(url, options);
|
|
522
522
|
}
|
|
523
523
|
};
|
|
524
|
-
__publicField$
|
|
524
|
+
__publicField$r(_AdminApiContext, "defaultOptions", {
|
|
525
525
|
app_url: process.env["APP_URL"],
|
|
526
526
|
client_id: process.env["SHOPWARE_ACCESS_KEY_ID"],
|
|
527
527
|
client_secret: process.env["SHOPWARE_SECRET_ACCESS_KEY"],
|
|
@@ -531,16 +531,16 @@ __publicField$q(_AdminApiContext, "defaultOptions", {
|
|
|
531
531
|
});
|
|
532
532
|
let AdminApiContext = _AdminApiContext;
|
|
533
533
|
|
|
534
|
-
var __defProp$
|
|
535
|
-
var __defNormalProp$
|
|
536
|
-
var __publicField$
|
|
537
|
-
__defNormalProp$
|
|
534
|
+
var __defProp$q = Object.defineProperty;
|
|
535
|
+
var __defNormalProp$q = (obj, key, value) => key in obj ? __defProp$q(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
536
|
+
var __publicField$q = (obj, key, value) => {
|
|
537
|
+
__defNormalProp$q(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
538
538
|
return value;
|
|
539
539
|
};
|
|
540
540
|
const _StoreApiContext = class _StoreApiContext {
|
|
541
541
|
constructor(context, options) {
|
|
542
|
-
__publicField$
|
|
543
|
-
__publicField$
|
|
542
|
+
__publicField$q(this, "context");
|
|
543
|
+
__publicField$q(this, "options");
|
|
544
544
|
this.context = context;
|
|
545
545
|
this.options = options;
|
|
546
546
|
}
|
|
@@ -599,7 +599,7 @@ const _StoreApiContext = class _StoreApiContext {
|
|
|
599
599
|
return this.context.head(url, options);
|
|
600
600
|
}
|
|
601
601
|
};
|
|
602
|
-
__publicField$
|
|
602
|
+
__publicField$q(_StoreApiContext, "defaultOptions", {
|
|
603
603
|
app_url: process.env["APP_URL"],
|
|
604
604
|
ignoreHTTPSErrors: true
|
|
605
605
|
});
|
|
@@ -691,17 +691,17 @@ const test$8 = test$c.extend({
|
|
|
691
691
|
}
|
|
692
692
|
});
|
|
693
693
|
|
|
694
|
-
var __defProp$
|
|
695
|
-
var __defNormalProp$
|
|
696
|
-
var __publicField$
|
|
697
|
-
__defNormalProp$
|
|
694
|
+
var __defProp$p = Object.defineProperty;
|
|
695
|
+
var __defNormalProp$p = (obj, key, value) => key in obj ? __defProp$p(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
696
|
+
var __publicField$p = (obj, key, value) => {
|
|
697
|
+
__defNormalProp$p(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
698
698
|
return value;
|
|
699
699
|
};
|
|
700
700
|
class Actor {
|
|
701
701
|
constructor(name, page) {
|
|
702
|
-
__publicField$
|
|
703
|
-
__publicField$
|
|
704
|
-
__publicField$
|
|
702
|
+
__publicField$p(this, "page");
|
|
703
|
+
__publicField$p(this, "name");
|
|
704
|
+
__publicField$p(this, "expects", expect);
|
|
705
705
|
this.name = name;
|
|
706
706
|
this.page = page;
|
|
707
707
|
}
|
|
@@ -709,10 +709,10 @@ class Actor {
|
|
|
709
709
|
const stepTitle = `${this.name} attempts to ${this.camelCaseToLowerCase(task.name)}`;
|
|
710
710
|
await test$c.step(stepTitle, async () => await task());
|
|
711
711
|
}
|
|
712
|
-
async goesTo(
|
|
713
|
-
const stepTitle = `${this.name} navigates to ${
|
|
712
|
+
async goesTo(url) {
|
|
713
|
+
const stepTitle = `${this.name} navigates to "${url}"`;
|
|
714
714
|
await test$c.step(stepTitle, async () => {
|
|
715
|
-
await
|
|
715
|
+
await this.page.goto(url);
|
|
716
716
|
await this.page.addStyleTag({
|
|
717
717
|
content: `
|
|
718
718
|
.sf-toolbar {
|
|
@@ -741,16 +741,16 @@ const test$7 = test$c.extend({
|
|
|
741
741
|
}
|
|
742
742
|
});
|
|
743
743
|
|
|
744
|
-
var __defProp$
|
|
745
|
-
var __defNormalProp$
|
|
746
|
-
var __publicField$
|
|
747
|
-
__defNormalProp$
|
|
744
|
+
var __defProp$o = Object.defineProperty;
|
|
745
|
+
var __defNormalProp$o = (obj, key, value) => key in obj ? __defProp$o(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
746
|
+
var __publicField$o = (obj, key, value) => {
|
|
747
|
+
__defNormalProp$o(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
748
748
|
return value;
|
|
749
749
|
};
|
|
750
750
|
class IdProvider {
|
|
751
751
|
constructor(workerIndex, seed) {
|
|
752
|
-
__publicField$
|
|
753
|
-
__publicField$
|
|
752
|
+
__publicField$o(this, "workerIndex");
|
|
753
|
+
__publicField$o(this, "seed");
|
|
754
754
|
this.workerIndex = workerIndex;
|
|
755
755
|
this.seed = seed;
|
|
756
756
|
}
|
|
@@ -790,103 +790,98 @@ const test$6 = test$c.extend({
|
|
|
790
790
|
]
|
|
791
791
|
});
|
|
792
792
|
|
|
793
|
-
var __defProp$
|
|
794
|
-
var __defNormalProp$
|
|
795
|
-
var __publicField$
|
|
796
|
-
__defNormalProp$
|
|
793
|
+
var __defProp$n = Object.defineProperty;
|
|
794
|
+
var __defNormalProp$n = (obj, key, value) => key in obj ? __defProp$n(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
795
|
+
var __publicField$n = (obj, key, value) => {
|
|
796
|
+
__defNormalProp$n(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
797
797
|
return value;
|
|
798
798
|
};
|
|
799
799
|
class Home {
|
|
800
800
|
constructor(page) {
|
|
801
801
|
this.page = page;
|
|
802
|
-
__publicField$
|
|
802
|
+
__publicField$n(this, "productImages");
|
|
803
803
|
this.productImages = page.locator(".product-image-link");
|
|
804
804
|
}
|
|
805
|
-
|
|
806
|
-
|
|
805
|
+
url() {
|
|
806
|
+
return "/";
|
|
807
807
|
}
|
|
808
808
|
}
|
|
809
809
|
|
|
810
|
-
var __defProp$
|
|
811
|
-
var __defNormalProp$
|
|
812
|
-
var __publicField$
|
|
813
|
-
__defNormalProp$
|
|
810
|
+
var __defProp$m = Object.defineProperty;
|
|
811
|
+
var __defNormalProp$m = (obj, key, value) => key in obj ? __defProp$m(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
812
|
+
var __publicField$m = (obj, key, value) => {
|
|
813
|
+
__defNormalProp$m(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
814
814
|
return value;
|
|
815
815
|
};
|
|
816
816
|
let ProductDetail$1 = class ProductDetail {
|
|
817
|
-
constructor(page
|
|
817
|
+
constructor(page) {
|
|
818
818
|
this.page = page;
|
|
819
|
-
this
|
|
820
|
-
__publicField$
|
|
821
|
-
__publicField$
|
|
822
|
-
__publicField$
|
|
823
|
-
__publicField$
|
|
824
|
-
__publicField$
|
|
825
|
-
__publicField$
|
|
826
|
-
__publicField$
|
|
827
|
-
__publicField$
|
|
828
|
-
__publicField$l(this, "offCanvas");
|
|
819
|
+
__publicField$m(this, "addToCartButton");
|
|
820
|
+
__publicField$m(this, "quantitySelect");
|
|
821
|
+
__publicField$m(this, "productSingleImage");
|
|
822
|
+
__publicField$m(this, "offCanvasCartTitle");
|
|
823
|
+
__publicField$m(this, "offCanvasCart");
|
|
824
|
+
__publicField$m(this, "offCanvasCartGoToCheckoutButton");
|
|
825
|
+
__publicField$m(this, "offCanvasLineItemImages");
|
|
826
|
+
__publicField$m(this, "offCanvasSummaryTotalPrice");
|
|
827
|
+
__publicField$m(this, "offCanvas");
|
|
829
828
|
this.addToCartButton = page.getByRole("button", { name: "Add to shopping cart" });
|
|
829
|
+
this.quantitySelect = page.getByLabel("Quantity", { exact: true });
|
|
830
|
+
this.productSingleImage = page.locator(".gallery-slider-single-image");
|
|
831
|
+
this.offCanvas = page.locator("offcanvas-body");
|
|
830
832
|
this.offCanvasCartTitle = page.getByText("Shopping cart", { exact: true });
|
|
831
833
|
this.offCanvasCart = page.getByRole("dialog");
|
|
832
834
|
this.offCanvasCartGoToCheckoutButton = page.getByRole("link", { name: "Go to checkout" });
|
|
833
835
|
this.offCanvasLineItemImages = page.locator(".line-item-img-link");
|
|
834
|
-
this.quantitySelect = page.getByLabel("Quantity", { exact: true });
|
|
835
|
-
this.offCanvas = page.locator("offcanvas-body");
|
|
836
836
|
this.offCanvasSummaryTotalPrice = page.locator(".offcanvas-summary").locator('dt:has-text("Subtotal") + dd');
|
|
837
|
-
this.productSingleImage = page.locator(".gallery-slider-single-image");
|
|
838
837
|
}
|
|
839
|
-
|
|
838
|
+
url(productData) {
|
|
840
839
|
let namePath = "";
|
|
841
840
|
if (productData.translated && productData.translated.name) {
|
|
842
841
|
namePath = productData.translated.name.replaceAll("_", "-");
|
|
843
842
|
}
|
|
844
|
-
|
|
845
|
-
await this.page.goto(url);
|
|
843
|
+
return `${namePath}/${productData.productNumber}`;
|
|
846
844
|
}
|
|
847
845
|
};
|
|
848
846
|
|
|
849
|
-
var __defProp$
|
|
850
|
-
var __defNormalProp$
|
|
851
|
-
var __publicField$
|
|
852
|
-
__defNormalProp$
|
|
847
|
+
var __defProp$l = Object.defineProperty;
|
|
848
|
+
var __defNormalProp$l = (obj, key, value) => key in obj ? __defProp$l(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
849
|
+
var __publicField$l = (obj, key, value) => {
|
|
850
|
+
__defNormalProp$l(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
853
851
|
return value;
|
|
854
852
|
};
|
|
855
853
|
class Category {
|
|
856
|
-
constructor(page
|
|
854
|
+
constructor(page) {
|
|
857
855
|
this.page = page;
|
|
858
|
-
__publicField$
|
|
859
|
-
__publicField$
|
|
860
|
-
__publicField$
|
|
861
|
-
__publicField$k(this, "noProductsFoundAlert");
|
|
862
|
-
this.categoryData = CategoryData;
|
|
856
|
+
__publicField$l(this, "sortingSelect");
|
|
857
|
+
__publicField$l(this, "firstProductBuyButton");
|
|
858
|
+
__publicField$l(this, "noProductsFoundAlert");
|
|
863
859
|
this.sortingSelect = page.getByLabel("Sorting");
|
|
864
860
|
this.firstProductBuyButton = page.getByRole("button", { name: "Add to shopping cart" }).first();
|
|
865
861
|
this.noProductsFoundAlert = page.getByText("No products found.");
|
|
866
862
|
}
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
await this.page.goto(url);
|
|
863
|
+
url(categoryName) {
|
|
864
|
+
return `${categoryName}`;
|
|
870
865
|
}
|
|
871
866
|
}
|
|
872
867
|
|
|
873
|
-
var __defProp$
|
|
874
|
-
var __defNormalProp$
|
|
875
|
-
var __publicField$
|
|
876
|
-
__defNormalProp$
|
|
868
|
+
var __defProp$k = Object.defineProperty;
|
|
869
|
+
var __defNormalProp$k = (obj, key, value) => key in obj ? __defProp$k(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
870
|
+
var __publicField$k = (obj, key, value) => {
|
|
871
|
+
__defNormalProp$k(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
877
872
|
return value;
|
|
878
873
|
};
|
|
879
874
|
class CheckoutCart {
|
|
880
875
|
constructor(page) {
|
|
881
876
|
this.page = page;
|
|
882
|
-
__publicField$
|
|
883
|
-
__publicField$
|
|
884
|
-
__publicField$
|
|
885
|
-
__publicField$
|
|
886
|
-
__publicField$
|
|
887
|
-
__publicField$
|
|
888
|
-
__publicField$
|
|
889
|
-
__publicField$
|
|
877
|
+
__publicField$k(this, "headline");
|
|
878
|
+
__publicField$k(this, "goToCheckoutButton");
|
|
879
|
+
__publicField$k(this, "enterDiscountInput");
|
|
880
|
+
__publicField$k(this, "grandTotalPrice");
|
|
881
|
+
__publicField$k(this, "emptyCartAlert");
|
|
882
|
+
__publicField$k(this, "stockReachedAlert");
|
|
883
|
+
__publicField$k(this, "cartLineItemImages");
|
|
884
|
+
__publicField$k(this, "unitPriceInfo");
|
|
890
885
|
this.headline = page.getByRole("heading", { name: "Shopping cart" });
|
|
891
886
|
this.goToCheckoutButton = page.getByRole("link", { name: "Go to checkout" });
|
|
892
887
|
this.enterDiscountInput = page.getByLabel("Discount code");
|
|
@@ -896,40 +891,40 @@ class CheckoutCart {
|
|
|
896
891
|
this.cartLineItemImages = page.locator(".line-item-img-link");
|
|
897
892
|
this.unitPriceInfo = page.locator(".line-item-unit-price-value");
|
|
898
893
|
}
|
|
899
|
-
|
|
900
|
-
|
|
894
|
+
url() {
|
|
895
|
+
return "checkout/cart";
|
|
901
896
|
}
|
|
902
897
|
}
|
|
903
898
|
|
|
904
|
-
var __defProp$
|
|
905
|
-
var __defNormalProp$
|
|
906
|
-
var __publicField$
|
|
907
|
-
__defNormalProp$
|
|
899
|
+
var __defProp$j = Object.defineProperty;
|
|
900
|
+
var __defNormalProp$j = (obj, key, value) => key in obj ? __defProp$j(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
901
|
+
var __publicField$j = (obj, key, value) => {
|
|
902
|
+
__defNormalProp$j(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
908
903
|
return value;
|
|
909
904
|
};
|
|
910
905
|
class CheckoutConfirm {
|
|
911
906
|
constructor(page) {
|
|
912
907
|
this.page = page;
|
|
913
|
-
__publicField$
|
|
914
|
-
__publicField$
|
|
915
|
-
__publicField$
|
|
916
|
-
__publicField$
|
|
917
|
-
__publicField$
|
|
908
|
+
__publicField$j(this, "headline");
|
|
909
|
+
__publicField$j(this, "termsAndConditionsCheckbox");
|
|
910
|
+
__publicField$j(this, "immediateAccessToDigitalProductCheckbox");
|
|
911
|
+
__publicField$j(this, "grandTotalPrice");
|
|
912
|
+
__publicField$j(this, "submitOrderButton");
|
|
918
913
|
/**
|
|
919
914
|
* Payment options
|
|
920
915
|
*/
|
|
921
|
-
__publicField$
|
|
922
|
-
__publicField$
|
|
923
|
-
__publicField$
|
|
916
|
+
__publicField$j(this, "paymentCashOnDelivery");
|
|
917
|
+
__publicField$j(this, "paymentPaidInAdvance");
|
|
918
|
+
__publicField$j(this, "paymentInvoice");
|
|
924
919
|
/**
|
|
925
920
|
* Shipping options
|
|
926
921
|
*/
|
|
927
|
-
__publicField$
|
|
928
|
-
__publicField$
|
|
922
|
+
__publicField$j(this, "shippingStandard");
|
|
923
|
+
__publicField$j(this, "shippingExpress");
|
|
929
924
|
/**
|
|
930
925
|
* Product details
|
|
931
926
|
*/
|
|
932
|
-
__publicField$
|
|
927
|
+
__publicField$j(this, "cartLineItemImages");
|
|
933
928
|
this.headline = page.getByRole("heading", { name: "Complete order" });
|
|
934
929
|
this.termsAndConditionsCheckbox = page.getByLabel("I have read and accepted the general terms and conditions.");
|
|
935
930
|
this.immediateAccessToDigitalProductCheckbox = page.getByLabel("I want immediate access to the digital content and I acknowledge that thereby I waive my right to cancel.");
|
|
@@ -942,32 +937,32 @@ class CheckoutConfirm {
|
|
|
942
937
|
this.shippingExpress = page.getByLabel("Express");
|
|
943
938
|
this.cartLineItemImages = page.locator(".line-item-img-link");
|
|
944
939
|
}
|
|
945
|
-
|
|
946
|
-
|
|
940
|
+
url() {
|
|
941
|
+
return "checkout/confirm";
|
|
947
942
|
}
|
|
948
943
|
}
|
|
949
944
|
|
|
950
|
-
var __defProp$
|
|
951
|
-
var __defNormalProp$
|
|
952
|
-
var __publicField$
|
|
953
|
-
__defNormalProp$
|
|
945
|
+
var __defProp$i = Object.defineProperty;
|
|
946
|
+
var __defNormalProp$i = (obj, key, value) => key in obj ? __defProp$i(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
947
|
+
var __publicField$i = (obj, key, value) => {
|
|
948
|
+
__defNormalProp$i(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
954
949
|
return value;
|
|
955
950
|
};
|
|
956
951
|
class CheckoutFinish {
|
|
957
952
|
constructor(page) {
|
|
958
953
|
this.page = page;
|
|
959
|
-
__publicField$
|
|
960
|
-
__publicField$
|
|
961
|
-
__publicField$
|
|
962
|
-
__publicField$
|
|
963
|
-
__publicField$
|
|
954
|
+
__publicField$i(this, "headline");
|
|
955
|
+
__publicField$i(this, "orderNumberText");
|
|
956
|
+
__publicField$i(this, "grandTotalPrice");
|
|
957
|
+
__publicField$i(this, "cartLineItemImages");
|
|
958
|
+
__publicField$i(this, "orderNumberRegex", /Your order number: #(\d+)/);
|
|
964
959
|
this.headline = page.getByRole("heading", { name: "Thank you for your order" });
|
|
965
960
|
this.orderNumberText = page.getByText(this.orderNumberRegex);
|
|
966
961
|
this.grandTotalPrice = page.locator('dt:has-text("Grand total") + dd');
|
|
967
962
|
this.cartLineItemImages = page.locator(".line-item-img-link");
|
|
968
963
|
}
|
|
969
|
-
|
|
970
|
-
|
|
964
|
+
url() {
|
|
965
|
+
return "checkout/finish";
|
|
971
966
|
}
|
|
972
967
|
async getOrderNumber() {
|
|
973
968
|
const orderNumberText = await this.orderNumberText.textContent();
|
|
@@ -988,39 +983,39 @@ class CheckoutFinish {
|
|
|
988
983
|
}
|
|
989
984
|
}
|
|
990
985
|
|
|
991
|
-
var __defProp$
|
|
992
|
-
var __defNormalProp$
|
|
993
|
-
var __publicField$
|
|
994
|
-
__defNormalProp$
|
|
986
|
+
var __defProp$h = Object.defineProperty;
|
|
987
|
+
var __defNormalProp$h = (obj, key, value) => key in obj ? __defProp$h(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
988
|
+
var __publicField$h = (obj, key, value) => {
|
|
989
|
+
__defNormalProp$h(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
995
990
|
return value;
|
|
996
991
|
};
|
|
997
992
|
class CheckoutRegister {
|
|
998
993
|
constructor(page) {
|
|
999
994
|
this.page = page;
|
|
1000
|
-
__publicField$
|
|
995
|
+
__publicField$h(this, "cartLineItemImages");
|
|
1001
996
|
this.cartLineItemImages = page.locator(".line-item-img-link");
|
|
1002
997
|
}
|
|
1003
|
-
|
|
1004
|
-
|
|
998
|
+
url() {
|
|
999
|
+
return "checkout/register";
|
|
1005
1000
|
}
|
|
1006
1001
|
}
|
|
1007
1002
|
|
|
1008
|
-
var __defProp$
|
|
1009
|
-
var __defNormalProp$
|
|
1010
|
-
var __publicField$
|
|
1011
|
-
__defNormalProp$
|
|
1003
|
+
var __defProp$g = Object.defineProperty;
|
|
1004
|
+
var __defNormalProp$g = (obj, key, value) => key in obj ? __defProp$g(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
1005
|
+
var __publicField$g = (obj, key, value) => {
|
|
1006
|
+
__defNormalProp$g(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
1012
1007
|
return value;
|
|
1013
1008
|
};
|
|
1014
1009
|
class Account {
|
|
1015
1010
|
constructor(page) {
|
|
1016
1011
|
this.page = page;
|
|
1017
|
-
__publicField$
|
|
1018
|
-
__publicField$
|
|
1019
|
-
__publicField$
|
|
1020
|
-
__publicField$
|
|
1021
|
-
__publicField$
|
|
1022
|
-
__publicField$
|
|
1023
|
-
__publicField$
|
|
1012
|
+
__publicField$g(this, "headline");
|
|
1013
|
+
__publicField$g(this, "personalDataCardTitle");
|
|
1014
|
+
__publicField$g(this, "paymentMethodCardTitle");
|
|
1015
|
+
__publicField$g(this, "billingAddressCardTitle");
|
|
1016
|
+
__publicField$g(this, "shippingAddressCardTitle");
|
|
1017
|
+
__publicField$g(this, "newsletterCheckbox");
|
|
1018
|
+
__publicField$g(this, "newsletterRegistrationSuccessMessage");
|
|
1024
1019
|
this.headline = page.getByRole("heading", { name: "Overview" });
|
|
1025
1020
|
this.personalDataCardTitle = page.getByRole("heading", { name: "Personal data" });
|
|
1026
1021
|
this.paymentMethodCardTitle = page.getByRole("heading", { name: "Default payment method" });
|
|
@@ -1029,36 +1024,36 @@ class Account {
|
|
|
1029
1024
|
this.newsletterCheckbox = page.getByLabel("Yes, I would like to");
|
|
1030
1025
|
this.newsletterRegistrationSuccessMessage = page.getByText("You have successfully subscribed to the newsletter.");
|
|
1031
1026
|
}
|
|
1032
|
-
|
|
1033
|
-
|
|
1027
|
+
url() {
|
|
1028
|
+
return "account";
|
|
1034
1029
|
}
|
|
1035
1030
|
}
|
|
1036
1031
|
|
|
1037
|
-
var __defProp$
|
|
1038
|
-
var __defNormalProp$
|
|
1039
|
-
var __publicField$
|
|
1040
|
-
__defNormalProp$
|
|
1032
|
+
var __defProp$f = Object.defineProperty;
|
|
1033
|
+
var __defNormalProp$f = (obj, key, value) => key in obj ? __defProp$f(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
1034
|
+
var __publicField$f = (obj, key, value) => {
|
|
1035
|
+
__defNormalProp$f(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
1041
1036
|
return value;
|
|
1042
1037
|
};
|
|
1043
1038
|
class AccountLogin {
|
|
1044
1039
|
constructor(page) {
|
|
1045
1040
|
this.page = page;
|
|
1046
|
-
__publicField$
|
|
1047
|
-
__publicField$
|
|
1048
|
-
__publicField$
|
|
1049
|
-
__publicField$
|
|
1050
|
-
__publicField$
|
|
1041
|
+
__publicField$f(this, "emailInput");
|
|
1042
|
+
__publicField$f(this, "passwordInput");
|
|
1043
|
+
__publicField$f(this, "loginButton");
|
|
1044
|
+
__publicField$f(this, "logoutLink");
|
|
1045
|
+
__publicField$f(this, "successAlert");
|
|
1051
1046
|
// Inputs for registration
|
|
1052
|
-
__publicField$
|
|
1053
|
-
__publicField$
|
|
1054
|
-
__publicField$
|
|
1055
|
-
__publicField$
|
|
1056
|
-
__publicField$
|
|
1057
|
-
__publicField$
|
|
1058
|
-
__publicField$
|
|
1059
|
-
__publicField$
|
|
1060
|
-
__publicField$
|
|
1061
|
-
__publicField$
|
|
1047
|
+
__publicField$f(this, "personalFormArea");
|
|
1048
|
+
__publicField$f(this, "billingAddressFormArea");
|
|
1049
|
+
__publicField$f(this, "firstNameInput");
|
|
1050
|
+
__publicField$f(this, "lastNameInput");
|
|
1051
|
+
__publicField$f(this, "registerEmailInput");
|
|
1052
|
+
__publicField$f(this, "registerPasswordInput");
|
|
1053
|
+
__publicField$f(this, "streetAddressInput");
|
|
1054
|
+
__publicField$f(this, "cityInput");
|
|
1055
|
+
__publicField$f(this, "countryInput");
|
|
1056
|
+
__publicField$f(this, "registerButton");
|
|
1062
1057
|
this.emailInput = page.getByLabel("Your email address");
|
|
1063
1058
|
this.passwordInput = page.getByLabel("Your password");
|
|
1064
1059
|
this.loginButton = page.getByRole("button", { name: "Log in" });
|
|
@@ -1076,34 +1071,34 @@ class AccountLogin {
|
|
|
1076
1071
|
this.logoutLink = page.getByRole("link", { name: "Log out" });
|
|
1077
1072
|
this.successAlert = page.getByText("Successfully logged out.");
|
|
1078
1073
|
}
|
|
1079
|
-
|
|
1080
|
-
|
|
1074
|
+
url() {
|
|
1075
|
+
return "account/login";
|
|
1081
1076
|
}
|
|
1082
1077
|
}
|
|
1083
1078
|
|
|
1084
|
-
var __defProp$
|
|
1085
|
-
var __defNormalProp$
|
|
1086
|
-
var __publicField$
|
|
1087
|
-
__defNormalProp$
|
|
1079
|
+
var __defProp$e = Object.defineProperty;
|
|
1080
|
+
var __defNormalProp$e = (obj, key, value) => key in obj ? __defProp$e(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
1081
|
+
var __publicField$e = (obj, key, value) => {
|
|
1082
|
+
__defNormalProp$e(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
1088
1083
|
return value;
|
|
1089
1084
|
};
|
|
1090
1085
|
class AccountProfile {
|
|
1091
1086
|
constructor(page) {
|
|
1092
1087
|
this.page = page;
|
|
1093
|
-
__publicField$
|
|
1094
|
-
__publicField$
|
|
1095
|
-
__publicField$
|
|
1096
|
-
__publicField$
|
|
1097
|
-
__publicField$
|
|
1098
|
-
__publicField$
|
|
1099
|
-
__publicField$
|
|
1100
|
-
__publicField$
|
|
1101
|
-
__publicField$
|
|
1102
|
-
__publicField$
|
|
1103
|
-
__publicField$
|
|
1104
|
-
__publicField$
|
|
1105
|
-
__publicField$
|
|
1106
|
-
__publicField$
|
|
1088
|
+
__publicField$e(this, "salutationSelect");
|
|
1089
|
+
__publicField$e(this, "firstNameInput");
|
|
1090
|
+
__publicField$e(this, "lastNameInput");
|
|
1091
|
+
__publicField$e(this, "saveProfileButton");
|
|
1092
|
+
__publicField$e(this, "changeEmailButton");
|
|
1093
|
+
__publicField$e(this, "emailAddressInput");
|
|
1094
|
+
__publicField$e(this, "emailAddressConfirmInput");
|
|
1095
|
+
__publicField$e(this, "emailConfirmPasswordInput");
|
|
1096
|
+
__publicField$e(this, "saveEmailAddressButton");
|
|
1097
|
+
__publicField$e(this, "changePasswordButton");
|
|
1098
|
+
__publicField$e(this, "newPasswordInput");
|
|
1099
|
+
__publicField$e(this, "newPasswordConfirmInput");
|
|
1100
|
+
__publicField$e(this, "currentPasswordInput");
|
|
1101
|
+
__publicField$e(this, "saveNewPasswordButton");
|
|
1107
1102
|
this.salutationSelect = page.getByLabel("Salutation");
|
|
1108
1103
|
this.firstNameInput = page.getByPlaceholder("Enter first name...");
|
|
1109
1104
|
this.lastNameInput = page.getByPlaceholder("Enter last name...");
|
|
@@ -1119,113 +1114,113 @@ class AccountProfile {
|
|
|
1119
1114
|
this.currentPasswordInput = page.getByPlaceholder("Enter current password...");
|
|
1120
1115
|
this.saveNewPasswordButton = page.locator("#profilePasswordForm").getByRole("button", { name: "Save changes" });
|
|
1121
1116
|
}
|
|
1122
|
-
|
|
1123
|
-
|
|
1117
|
+
url() {
|
|
1118
|
+
return "account/profile";
|
|
1124
1119
|
}
|
|
1125
1120
|
}
|
|
1126
1121
|
|
|
1127
|
-
var __defProp$
|
|
1128
|
-
var __defNormalProp$
|
|
1129
|
-
var __publicField$
|
|
1130
|
-
__defNormalProp$
|
|
1122
|
+
var __defProp$d = Object.defineProperty;
|
|
1123
|
+
var __defNormalProp$d = (obj, key, value) => key in obj ? __defProp$d(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
1124
|
+
var __publicField$d = (obj, key, value) => {
|
|
1125
|
+
__defNormalProp$d(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
1131
1126
|
return value;
|
|
1132
1127
|
};
|
|
1133
1128
|
class AccountOrder {
|
|
1134
1129
|
constructor(page) {
|
|
1135
1130
|
this.page = page;
|
|
1136
|
-
__publicField$
|
|
1137
|
-
__publicField$
|
|
1138
|
-
__publicField$
|
|
1131
|
+
__publicField$d(this, "cartLineItemImages");
|
|
1132
|
+
__publicField$d(this, "orderExpandButton");
|
|
1133
|
+
__publicField$d(this, "digitalProductDownloadButton");
|
|
1139
1134
|
this.orderExpandButton = page.getByRole("button", { name: "Expand" }).first();
|
|
1140
1135
|
this.cartLineItemImages = page.locator(".line-item-img-link");
|
|
1141
1136
|
this.digitalProductDownloadButton = page.getByRole("link", { name: "Download" }).first();
|
|
1142
1137
|
}
|
|
1143
|
-
|
|
1144
|
-
|
|
1138
|
+
url() {
|
|
1139
|
+
return "account/order";
|
|
1145
1140
|
}
|
|
1146
1141
|
}
|
|
1147
1142
|
|
|
1148
|
-
var __defProp$
|
|
1149
|
-
var __defNormalProp$
|
|
1150
|
-
var __publicField$
|
|
1151
|
-
__defNormalProp$
|
|
1143
|
+
var __defProp$c = Object.defineProperty;
|
|
1144
|
+
var __defNormalProp$c = (obj, key, value) => key in obj ? __defProp$c(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
1145
|
+
var __publicField$c = (obj, key, value) => {
|
|
1146
|
+
__defNormalProp$c(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
1152
1147
|
return value;
|
|
1153
1148
|
};
|
|
1154
1149
|
class AccountAddresses {
|
|
1155
1150
|
constructor(page) {
|
|
1156
1151
|
this.page = page;
|
|
1157
|
-
__publicField$
|
|
1158
|
-
__publicField$
|
|
1159
|
-
__publicField$
|
|
1160
|
-
__publicField$
|
|
1161
|
-
__publicField$
|
|
1152
|
+
__publicField$c(this, "addNewAddressButton");
|
|
1153
|
+
__publicField$c(this, "editBillingAddressButton");
|
|
1154
|
+
__publicField$c(this, "editShippingAddressButton");
|
|
1155
|
+
__publicField$c(this, "useDefaultBillingAddressButton");
|
|
1156
|
+
__publicField$c(this, "useDefaultShippingAddressButton");
|
|
1162
1157
|
this.addNewAddressButton = page.getByRole("link", { name: "Add new address" });
|
|
1163
1158
|
this.editBillingAddressButton = page.getByRole("link", { name: "Edit address" }).first();
|
|
1164
1159
|
this.editShippingAddressButton = page.getByRole("link", { name: "Edit address" }).nth(1);
|
|
1165
1160
|
this.useDefaultBillingAddressButton = page.getByRole("button", { name: "Use as default billing address" });
|
|
1166
1161
|
this.useDefaultShippingAddressButton = page.getByRole("button", { name: "Use as default shipping address" });
|
|
1167
1162
|
}
|
|
1168
|
-
|
|
1169
|
-
|
|
1163
|
+
url() {
|
|
1164
|
+
return "account/address";
|
|
1170
1165
|
}
|
|
1171
1166
|
}
|
|
1172
1167
|
|
|
1173
|
-
var __defProp$
|
|
1174
|
-
var __defNormalProp$
|
|
1175
|
-
var __publicField$
|
|
1176
|
-
__defNormalProp$
|
|
1168
|
+
var __defProp$b = Object.defineProperty;
|
|
1169
|
+
var __defNormalProp$b = (obj, key, value) => key in obj ? __defProp$b(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
1170
|
+
var __publicField$b = (obj, key, value) => {
|
|
1171
|
+
__defNormalProp$b(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
1177
1172
|
return value;
|
|
1178
1173
|
};
|
|
1179
1174
|
class AccountPayment {
|
|
1180
1175
|
constructor(page) {
|
|
1181
1176
|
this.page = page;
|
|
1182
|
-
__publicField$
|
|
1183
|
-
__publicField$
|
|
1184
|
-
__publicField$
|
|
1185
|
-
__publicField$
|
|
1177
|
+
__publicField$b(this, "cashOnDeliveryOption");
|
|
1178
|
+
__publicField$b(this, "paidInAdvanceOption");
|
|
1179
|
+
__publicField$b(this, "invoiceOption");
|
|
1180
|
+
__publicField$b(this, "changeDefaultPaymentButton");
|
|
1186
1181
|
this.cashOnDeliveryOption = page.getByLabel("Cash on delivery");
|
|
1187
1182
|
this.paidInAdvanceOption = page.getByLabel("Paid in advance");
|
|
1188
1183
|
this.invoiceOption = page.getByLabel("Invoice");
|
|
1189
1184
|
this.changeDefaultPaymentButton = page.getByRole("button", { name: "Change" });
|
|
1190
1185
|
}
|
|
1191
|
-
|
|
1192
|
-
|
|
1186
|
+
url() {
|
|
1187
|
+
return "account/payment";
|
|
1193
1188
|
}
|
|
1194
1189
|
}
|
|
1195
1190
|
|
|
1196
|
-
var __defProp$
|
|
1197
|
-
var __defNormalProp$
|
|
1198
|
-
var __publicField$
|
|
1199
|
-
__defNormalProp$
|
|
1191
|
+
var __defProp$a = Object.defineProperty;
|
|
1192
|
+
var __defNormalProp$a = (obj, key, value) => key in obj ? __defProp$a(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
1193
|
+
var __publicField$a = (obj, key, value) => {
|
|
1194
|
+
__defNormalProp$a(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
1200
1195
|
return value;
|
|
1201
1196
|
};
|
|
1202
1197
|
class Search {
|
|
1203
1198
|
constructor(page) {
|
|
1204
1199
|
this.page = page;
|
|
1205
|
-
__publicField$
|
|
1200
|
+
__publicField$a(this, "headline");
|
|
1201
|
+
__publicField$a(this, "productImages");
|
|
1202
|
+
this.headline = page.locator("h1.search-headline");
|
|
1206
1203
|
this.productImages = page.locator(".product-image-link");
|
|
1207
1204
|
}
|
|
1208
|
-
|
|
1209
|
-
|
|
1210
|
-
await this.page.goto(url);
|
|
1205
|
+
url(searchTerm) {
|
|
1206
|
+
return `search?search=${searchTerm}`;
|
|
1211
1207
|
}
|
|
1212
1208
|
}
|
|
1213
1209
|
|
|
1214
|
-
var __defProp$
|
|
1215
|
-
var __defNormalProp$
|
|
1216
|
-
var __publicField$
|
|
1217
|
-
__defNormalProp$
|
|
1210
|
+
var __defProp$9 = Object.defineProperty;
|
|
1211
|
+
var __defNormalProp$9 = (obj, key, value) => key in obj ? __defProp$9(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
1212
|
+
var __publicField$9 = (obj, key, value) => {
|
|
1213
|
+
__defNormalProp$9(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
1218
1214
|
return value;
|
|
1219
1215
|
};
|
|
1220
1216
|
class SearchSuggest {
|
|
1221
1217
|
constructor(page) {
|
|
1222
1218
|
this.page = page;
|
|
1223
|
-
__publicField$
|
|
1219
|
+
__publicField$9(this, "searchSuggestLineItemImages");
|
|
1224
1220
|
this.searchSuggestLineItemImages = page.locator(".search-suggest-product-image-container");
|
|
1225
1221
|
}
|
|
1226
|
-
|
|
1227
|
-
|
|
1228
|
-
await this.page.goto(url);
|
|
1222
|
+
url(searchTerm) {
|
|
1223
|
+
return `suggest?search=${searchTerm}`;
|
|
1229
1224
|
}
|
|
1230
1225
|
}
|
|
1231
1226
|
|
|
@@ -1250,11 +1245,11 @@ const test$5 = test$c.extend({
|
|
|
1250
1245
|
StorefrontHome: async ({ StorefrontPage }, use) => {
|
|
1251
1246
|
await use(new Home(StorefrontPage));
|
|
1252
1247
|
},
|
|
1253
|
-
StorefrontProductDetail: async ({ StorefrontPage
|
|
1254
|
-
await use(new ProductDetail$1(StorefrontPage
|
|
1248
|
+
StorefrontProductDetail: async ({ StorefrontPage }, use) => {
|
|
1249
|
+
await use(new ProductDetail$1(StorefrontPage));
|
|
1255
1250
|
},
|
|
1256
|
-
StorefrontCategory: async ({ StorefrontPage
|
|
1257
|
-
await use(new Category(StorefrontPage
|
|
1251
|
+
StorefrontCategory: async ({ StorefrontPage }, use) => {
|
|
1252
|
+
await use(new Category(StorefrontPage));
|
|
1258
1253
|
},
|
|
1259
1254
|
StorefrontCheckoutCart: async ({ StorefrontPage }, use) => {
|
|
1260
1255
|
await use(new CheckoutCart(StorefrontPage));
|
|
@@ -1294,53 +1289,51 @@ const test$5 = test$c.extend({
|
|
|
1294
1289
|
}
|
|
1295
1290
|
});
|
|
1296
1291
|
|
|
1297
|
-
var __defProp$
|
|
1298
|
-
var __defNormalProp$
|
|
1299
|
-
var __publicField$
|
|
1300
|
-
__defNormalProp$
|
|
1292
|
+
var __defProp$8 = Object.defineProperty;
|
|
1293
|
+
var __defNormalProp$8 = (obj, key, value) => key in obj ? __defProp$8(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
1294
|
+
var __publicField$8 = (obj, key, value) => {
|
|
1295
|
+
__defNormalProp$8(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
1301
1296
|
return value;
|
|
1302
1297
|
};
|
|
1303
1298
|
class ProductDetail {
|
|
1304
|
-
constructor(page
|
|
1299
|
+
constructor(page) {
|
|
1305
1300
|
this.page = page;
|
|
1306
1301
|
/**
|
|
1307
1302
|
* Save interactions
|
|
1308
1303
|
*/
|
|
1309
|
-
__publicField$
|
|
1310
|
-
__publicField$
|
|
1311
|
-
__publicField$
|
|
1304
|
+
__publicField$8(this, "savePhysicalProductButton");
|
|
1305
|
+
__publicField$8(this, "saveButtonLoadingSpinner");
|
|
1306
|
+
__publicField$8(this, "saveButtonCheckMark");
|
|
1312
1307
|
/**
|
|
1313
1308
|
* Media Upload interactions
|
|
1314
1309
|
*/
|
|
1315
|
-
__publicField$
|
|
1316
|
-
__publicField$
|
|
1317
|
-
__publicField$
|
|
1310
|
+
__publicField$8(this, "uploadMediaButton");
|
|
1311
|
+
__publicField$8(this, "coverImage");
|
|
1312
|
+
__publicField$8(this, "productImage");
|
|
1318
1313
|
/**
|
|
1319
1314
|
* Tabs
|
|
1320
1315
|
*/
|
|
1321
|
-
__publicField$
|
|
1316
|
+
__publicField$8(this, "variantsTabLink");
|
|
1322
1317
|
/**
|
|
1323
1318
|
* Variants Generation
|
|
1324
1319
|
*/
|
|
1325
|
-
__publicField$
|
|
1326
|
-
__publicField$
|
|
1327
|
-
__publicField$
|
|
1328
|
-
__publicField$
|
|
1329
|
-
__publicField$
|
|
1320
|
+
__publicField$8(this, "generateVariantsButton");
|
|
1321
|
+
__publicField$8(this, "variantsModal");
|
|
1322
|
+
__publicField$8(this, "variantsModalHeadline");
|
|
1323
|
+
__publicField$8(this, "variantsNextButton");
|
|
1324
|
+
__publicField$8(this, "variantsSaveButton");
|
|
1330
1325
|
/**
|
|
1331
1326
|
* Property Selection
|
|
1332
1327
|
*/
|
|
1333
|
-
__publicField$
|
|
1334
|
-
__publicField$
|
|
1335
|
-
__publicField$
|
|
1336
|
-
__publicField$
|
|
1337
|
-
__publicField$
|
|
1338
|
-
__publicField$
|
|
1339
|
-
__publicField$
|
|
1340
|
-
__publicField$
|
|
1341
|
-
__publicField$
|
|
1342
|
-
__publicField$7(this, "productData");
|
|
1343
|
-
this.productData = productData;
|
|
1328
|
+
__publicField$8(this, "propertyGroupColor");
|
|
1329
|
+
__publicField$8(this, "propertyGroupSize");
|
|
1330
|
+
__publicField$8(this, "propertyOptionGrid");
|
|
1331
|
+
__publicField$8(this, "propertyOptionColorBlue");
|
|
1332
|
+
__publicField$8(this, "propertyOptionColorRed");
|
|
1333
|
+
__publicField$8(this, "propertyOptionColorGreen");
|
|
1334
|
+
__publicField$8(this, "propertyOptionSizeSmall");
|
|
1335
|
+
__publicField$8(this, "propertyOptionSizeMedium");
|
|
1336
|
+
__publicField$8(this, "propertyOptionSizeLarge");
|
|
1344
1337
|
this.savePhysicalProductButton = page.getByRole("button", { name: "Save" });
|
|
1345
1338
|
this.saveButtonCheckMark = page.locator(".icon--regular-checkmark-xs");
|
|
1346
1339
|
this.saveButtonLoadingSpinner = page.locator("sw-loader");
|
|
@@ -1363,107 +1356,100 @@ class ProductDetail {
|
|
|
1363
1356
|
this.propertyOptionSizeMedium = this.propertyOptionGrid.getByLabel("Medium");
|
|
1364
1357
|
this.propertyOptionSizeLarge = this.propertyOptionGrid.getByLabel("Large");
|
|
1365
1358
|
}
|
|
1366
|
-
|
|
1367
|
-
|
|
1368
|
-
}
|
|
1369
|
-
getProductId() {
|
|
1370
|
-
return this.productData.id;
|
|
1359
|
+
url(productId) {
|
|
1360
|
+
return `#/sw/product/detail/${productId}/base`;
|
|
1371
1361
|
}
|
|
1372
1362
|
}
|
|
1373
1363
|
|
|
1374
|
-
var __defProp$
|
|
1375
|
-
var __defNormalProp$
|
|
1376
|
-
var __publicField$
|
|
1377
|
-
__defNormalProp$
|
|
1364
|
+
var __defProp$7 = Object.defineProperty;
|
|
1365
|
+
var __defNormalProp$7 = (obj, key, value) => key in obj ? __defProp$7(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
1366
|
+
var __publicField$7 = (obj, key, value) => {
|
|
1367
|
+
__defNormalProp$7(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
1378
1368
|
return value;
|
|
1379
1369
|
};
|
|
1380
1370
|
class OrderDetail {
|
|
1381
|
-
constructor(page
|
|
1371
|
+
constructor(page) {
|
|
1382
1372
|
this.page = page;
|
|
1383
|
-
__publicField$
|
|
1384
|
-
__publicField$
|
|
1385
|
-
__publicField$
|
|
1386
|
-
this.
|
|
1373
|
+
__publicField$7(this, "saveButton");
|
|
1374
|
+
__publicField$7(this, "dataGridContextButton");
|
|
1375
|
+
__publicField$7(this, "orderTag");
|
|
1376
|
+
this.saveButton = page.locator(".sw-order-detail__smart-bar-save-button");
|
|
1387
1377
|
this.dataGridContextButton = page.locator(".sw-data-grid__actions-menu").and(page.getByRole("button"));
|
|
1388
1378
|
this.orderTag = page.locator(".sw-select-selection-list__item");
|
|
1389
1379
|
}
|
|
1390
|
-
|
|
1391
|
-
|
|
1380
|
+
url(orderId) {
|
|
1381
|
+
return `#/sw/order/detail/${orderId}/general`;
|
|
1392
1382
|
}
|
|
1393
1383
|
}
|
|
1394
1384
|
|
|
1395
|
-
var __defProp$
|
|
1396
|
-
var __defNormalProp$
|
|
1397
|
-
var __publicField$
|
|
1398
|
-
__defNormalProp$
|
|
1385
|
+
var __defProp$6 = Object.defineProperty;
|
|
1386
|
+
var __defNormalProp$6 = (obj, key, value) => key in obj ? __defProp$6(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
1387
|
+
var __publicField$6 = (obj, key, value) => {
|
|
1388
|
+
__defNormalProp$6(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
1399
1389
|
return value;
|
|
1400
1390
|
};
|
|
1401
1391
|
class CustomerDetail {
|
|
1402
|
-
constructor(page
|
|
1392
|
+
constructor(page) {
|
|
1403
1393
|
this.page = page;
|
|
1404
|
-
__publicField$
|
|
1405
|
-
__publicField$
|
|
1406
|
-
__publicField$
|
|
1407
|
-
__publicField$5(this, "generalTab");
|
|
1408
|
-
__publicField$5(this, "accountCard");
|
|
1409
|
-
this.customerId = customer.id;
|
|
1410
|
-
this.customer = customer;
|
|
1394
|
+
__publicField$6(this, "editButton");
|
|
1395
|
+
__publicField$6(this, "generalTab");
|
|
1396
|
+
__publicField$6(this, "accountCard");
|
|
1411
1397
|
this.editButton = page.getByRole("button", { name: "Edit" });
|
|
1412
1398
|
this.generalTab = page.getByRole("link", { name: "General" });
|
|
1413
1399
|
this.accountCard = page.locator(".sw-customer-card");
|
|
1414
1400
|
}
|
|
1415
|
-
|
|
1416
|
-
|
|
1401
|
+
url(customerId) {
|
|
1402
|
+
return `#/sw/customer/detail/${customerId}/base`;
|
|
1417
1403
|
}
|
|
1418
1404
|
}
|
|
1419
1405
|
|
|
1420
|
-
var __defProp$
|
|
1421
|
-
var __defNormalProp$
|
|
1422
|
-
var __publicField$
|
|
1423
|
-
__defNormalProp$
|
|
1406
|
+
var __defProp$5 = Object.defineProperty;
|
|
1407
|
+
var __defNormalProp$5 = (obj, key, value) => key in obj ? __defProp$5(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
1408
|
+
var __publicField$5 = (obj, key, value) => {
|
|
1409
|
+
__defNormalProp$5(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
1424
1410
|
return value;
|
|
1425
1411
|
};
|
|
1426
1412
|
class FirstRunWizard {
|
|
1427
1413
|
constructor(page) {
|
|
1428
1414
|
this.page = page;
|
|
1429
|
-
__publicField$
|
|
1430
|
-
__publicField$
|
|
1431
|
-
__publicField$
|
|
1432
|
-
__publicField$
|
|
1433
|
-
__publicField$
|
|
1434
|
-
__publicField$
|
|
1435
|
-
__publicField$
|
|
1436
|
-
__publicField$
|
|
1437
|
-
__publicField$
|
|
1438
|
-
__publicField$
|
|
1439
|
-
__publicField$
|
|
1440
|
-
__publicField$
|
|
1441
|
-
__publicField$
|
|
1442
|
-
__publicField$
|
|
1443
|
-
__publicField$
|
|
1444
|
-
__publicField$
|
|
1445
|
-
__publicField$
|
|
1446
|
-
__publicField$
|
|
1447
|
-
__publicField$
|
|
1448
|
-
__publicField$
|
|
1449
|
-
__publicField$
|
|
1450
|
-
__publicField$
|
|
1451
|
-
__publicField$
|
|
1452
|
-
__publicField$
|
|
1453
|
-
__publicField$
|
|
1454
|
-
__publicField$
|
|
1455
|
-
__publicField$
|
|
1456
|
-
__publicField$
|
|
1457
|
-
__publicField$
|
|
1458
|
-
__publicField$
|
|
1459
|
-
__publicField$
|
|
1460
|
-
__publicField$
|
|
1461
|
-
__publicField$
|
|
1462
|
-
__publicField$
|
|
1463
|
-
__publicField$
|
|
1464
|
-
__publicField$
|
|
1465
|
-
__publicField$
|
|
1466
|
-
__publicField$
|
|
1415
|
+
__publicField$5(this, "nextButton");
|
|
1416
|
+
__publicField$5(this, "configureLaterButton");
|
|
1417
|
+
__publicField$5(this, "skipButton");
|
|
1418
|
+
__publicField$5(this, "finishButton");
|
|
1419
|
+
__publicField$5(this, "backButton");
|
|
1420
|
+
__publicField$5(this, "smtpServerButton");
|
|
1421
|
+
__publicField$5(this, "dataImportHeader");
|
|
1422
|
+
__publicField$5(this, "installLanguagePackButton");
|
|
1423
|
+
__publicField$5(this, "installDemoDataButton");
|
|
1424
|
+
__publicField$5(this, "installMigrationAssistantButton");
|
|
1425
|
+
__publicField$5(this, "defaultValuesHeader");
|
|
1426
|
+
__publicField$5(this, "mailerConfigurationHeader");
|
|
1427
|
+
__publicField$5(this, "payPalSetupHeader");
|
|
1428
|
+
__publicField$5(this, "extensionsHeader");
|
|
1429
|
+
__publicField$5(this, "shopwareAccountHeader");
|
|
1430
|
+
__publicField$5(this, "shopwareStoreHeader");
|
|
1431
|
+
__publicField$5(this, "doneHeader");
|
|
1432
|
+
__publicField$5(this, "frwSuccessText");
|
|
1433
|
+
__publicField$5(this, "welcomeText");
|
|
1434
|
+
__publicField$5(this, "pluginCardInfo");
|
|
1435
|
+
__publicField$5(this, "dataImportCard");
|
|
1436
|
+
__publicField$5(this, "salesChannelSelectionList");
|
|
1437
|
+
__publicField$5(this, "salesChannelSelectionMultiSelect");
|
|
1438
|
+
__publicField$5(this, "smtpServerTitle");
|
|
1439
|
+
__publicField$5(this, "smtpServerFields");
|
|
1440
|
+
__publicField$5(this, "payPalPaymethods");
|
|
1441
|
+
__publicField$5(this, "payPalInfoCard");
|
|
1442
|
+
__publicField$5(this, "emailAddressInputField");
|
|
1443
|
+
__publicField$5(this, "passwordInputField");
|
|
1444
|
+
__publicField$5(this, "forgotPasswordLink");
|
|
1445
|
+
__publicField$5(this, "extensionStoreHeading");
|
|
1446
|
+
__publicField$5(this, "documentationLink");
|
|
1447
|
+
__publicField$5(this, "forumLink");
|
|
1448
|
+
__publicField$5(this, "roadmapLink");
|
|
1449
|
+
__publicField$5(this, "germanRegionSelector");
|
|
1450
|
+
__publicField$5(this, "toolsSelector");
|
|
1451
|
+
__publicField$5(this, "recommendationHeader");
|
|
1452
|
+
__publicField$5(this, "toolsRecommendedPlugin");
|
|
1467
1453
|
this.nextButton = page.getByText("Next", { exact: true });
|
|
1468
1454
|
this.configureLaterButton = page.getByText("Configure later", { exact: true });
|
|
1469
1455
|
this.skipButton = page.getByText("Skip", { exact: true });
|
|
@@ -1503,47 +1489,49 @@ class FirstRunWizard {
|
|
|
1503
1489
|
this.forumLink = page.locator('[href*="https://forum.shopware.com/"]');
|
|
1504
1490
|
this.roadmapLink = page.locator('[href*="https://www.shopware.com/en/roadmap/"]');
|
|
1505
1491
|
}
|
|
1506
|
-
|
|
1507
|
-
|
|
1492
|
+
url() {
|
|
1493
|
+
return "#/sw/first/run/wizard/index/";
|
|
1508
1494
|
}
|
|
1509
1495
|
}
|
|
1510
1496
|
|
|
1511
|
-
var __defProp$
|
|
1512
|
-
var __defNormalProp$
|
|
1513
|
-
var __publicField$
|
|
1514
|
-
__defNormalProp$
|
|
1497
|
+
var __defProp$4 = Object.defineProperty;
|
|
1498
|
+
var __defNormalProp$4 = (obj, key, value) => key in obj ? __defProp$4(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
1499
|
+
var __publicField$4 = (obj, key, value) => {
|
|
1500
|
+
__defNormalProp$4(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
1515
1501
|
return value;
|
|
1516
1502
|
};
|
|
1517
1503
|
class FlowBuilderCreate {
|
|
1518
1504
|
constructor(page) {
|
|
1519
1505
|
this.page = page;
|
|
1520
|
-
__publicField$
|
|
1521
|
-
__publicField$
|
|
1506
|
+
__publicField$4(this, "saveButton");
|
|
1507
|
+
__publicField$4(this, "header");
|
|
1522
1508
|
this.saveButton = page.locator(".sw-flow-detail__save");
|
|
1523
1509
|
this.header = page.locator("h2");
|
|
1524
1510
|
}
|
|
1525
|
-
|
|
1526
|
-
|
|
1511
|
+
url() {
|
|
1512
|
+
return "#/sw/flow/create/general";
|
|
1527
1513
|
}
|
|
1528
1514
|
}
|
|
1529
1515
|
|
|
1530
|
-
var __defProp$
|
|
1531
|
-
var __defNormalProp$
|
|
1532
|
-
var __publicField$
|
|
1533
|
-
__defNormalProp$
|
|
1516
|
+
var __defProp$3 = Object.defineProperty;
|
|
1517
|
+
var __defNormalProp$3 = (obj, key, value) => key in obj ? __defProp$3(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
1518
|
+
var __publicField$3 = (obj, key, value) => {
|
|
1519
|
+
__defNormalProp$3(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
1534
1520
|
return value;
|
|
1535
1521
|
};
|
|
1536
1522
|
class FlowBuilderListing {
|
|
1537
1523
|
constructor(page) {
|
|
1538
1524
|
this.page = page;
|
|
1539
|
-
__publicField$
|
|
1540
|
-
__publicField$
|
|
1541
|
-
__publicField$
|
|
1542
|
-
__publicField$
|
|
1543
|
-
__publicField$
|
|
1544
|
-
__publicField$
|
|
1545
|
-
__publicField$
|
|
1546
|
-
__publicField$
|
|
1525
|
+
__publicField$3(this, "createFlowButton");
|
|
1526
|
+
__publicField$3(this, "firstFlowName");
|
|
1527
|
+
__publicField$3(this, "firstFlowContextButton");
|
|
1528
|
+
__publicField$3(this, "flowContextMenu");
|
|
1529
|
+
__publicField$3(this, "contextMenuDownload");
|
|
1530
|
+
__publicField$3(this, "flowDownloadModal");
|
|
1531
|
+
__publicField$3(this, "downloadFlowButton");
|
|
1532
|
+
__publicField$3(this, "successAlert");
|
|
1533
|
+
__publicField$3(this, "successAlertMessage");
|
|
1534
|
+
this.createFlowButton = page.locator(".sw-flow-list__create");
|
|
1547
1535
|
this.firstFlowName = page.locator(".sw-data-grid__cell--name a").first();
|
|
1548
1536
|
this.firstFlowContextButton = page.locator(".sw-data-grid__actions-menu").first();
|
|
1549
1537
|
this.flowContextMenu = page.locator(".sw-context-menu__content");
|
|
@@ -1553,8 +1541,29 @@ class FlowBuilderListing {
|
|
|
1553
1541
|
this.successAlert = page.locator(".sw-alert__body");
|
|
1554
1542
|
this.successAlertMessage = page.locator(".sw-alert__message");
|
|
1555
1543
|
}
|
|
1556
|
-
|
|
1557
|
-
|
|
1544
|
+
url() {
|
|
1545
|
+
return "#/sw/flow/index/";
|
|
1546
|
+
}
|
|
1547
|
+
}
|
|
1548
|
+
|
|
1549
|
+
var __defProp$2 = Object.defineProperty;
|
|
1550
|
+
var __defNormalProp$2 = (obj, key, value) => key in obj ? __defProp$2(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
1551
|
+
var __publicField$2 = (obj, key, value) => {
|
|
1552
|
+
__defNormalProp$2(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
1553
|
+
return value;
|
|
1554
|
+
};
|
|
1555
|
+
class FlowBuilderDetail {
|
|
1556
|
+
constructor(page) {
|
|
1557
|
+
this.page = page;
|
|
1558
|
+
__publicField$2(this, "saveButton");
|
|
1559
|
+
__publicField$2(this, "generalTab");
|
|
1560
|
+
__publicField$2(this, "flowTab");
|
|
1561
|
+
this.saveButton = page.locator(".sw-flow-detail__save");
|
|
1562
|
+
this.generalTab = page.locator(".sw-flow-detail__tab-general");
|
|
1563
|
+
this.flowTab = page.locator(".sw-flow-detail__tab-flow");
|
|
1564
|
+
}
|
|
1565
|
+
url(flowId, tabName = "general") {
|
|
1566
|
+
return `#/sw/flow/detail/${flowId}/${tabName}`;
|
|
1558
1567
|
}
|
|
1559
1568
|
}
|
|
1560
1569
|
|
|
@@ -1567,17 +1576,19 @@ var __publicField$1 = (obj, key, value) => {
|
|
|
1567
1576
|
class DataSharing {
|
|
1568
1577
|
constructor(page) {
|
|
1569
1578
|
this.page = page;
|
|
1579
|
+
__publicField$1(this, "dataConsentHeadline");
|
|
1570
1580
|
__publicField$1(this, "dataSharingSuccessMessageLabel");
|
|
1571
1581
|
__publicField$1(this, "dataSharingAgreeButton");
|
|
1572
1582
|
__publicField$1(this, "dataSharingDisableButton");
|
|
1573
1583
|
__publicField$1(this, "dataSharingTermsAgreementLabel");
|
|
1584
|
+
this.dataConsentHeadline = page.locator("h3.sw-usage-data-consent-banner__content-headline");
|
|
1574
1585
|
this.dataSharingAgreeButton = page.getByRole("button", { name: "Agree" });
|
|
1575
1586
|
this.dataSharingDisableButton = page.getByRole("button", { name: "Disable data sharing" });
|
|
1576
1587
|
this.dataSharingSuccessMessageLabel = page.getByText("You are sharing data with us", { exact: true });
|
|
1577
1588
|
this.dataSharingTermsAgreementLabel = page.getByText('By clicking "Agree", you confirm that you are authorized to enter into this agreement on behalf of your company.');
|
|
1578
1589
|
}
|
|
1579
|
-
|
|
1580
|
-
|
|
1590
|
+
url() {
|
|
1591
|
+
return "#/sw/settings/usage/data/index/general";
|
|
1581
1592
|
}
|
|
1582
1593
|
}
|
|
1583
1594
|
|
|
@@ -1590,6 +1601,7 @@ var __publicField = (obj, key, value) => {
|
|
|
1590
1601
|
class Dashboard {
|
|
1591
1602
|
constructor(page) {
|
|
1592
1603
|
this.page = page;
|
|
1604
|
+
__publicField(this, "welcomeHeadline");
|
|
1593
1605
|
__publicField(this, "dataSharingConsentBanner");
|
|
1594
1606
|
__publicField(this, "dataSharingAgreeButton");
|
|
1595
1607
|
__publicField(this, "dataSharingNotAtTheMomentButton");
|
|
@@ -1597,6 +1609,7 @@ class Dashboard {
|
|
|
1597
1609
|
__publicField(this, "dataSharingSettingsLink");
|
|
1598
1610
|
__publicField(this, "dataSharingAcceptMessageText");
|
|
1599
1611
|
__publicField(this, "dataSharingNotAtTheMomentMessageText");
|
|
1612
|
+
this.welcomeHeadline = page.locator("h1.sw-dashboard-index__welcome-title");
|
|
1600
1613
|
this.dataSharingConsentBanner = page.locator(".sw-usage-data-consent-banner");
|
|
1601
1614
|
this.dataSharingAgreeButton = page.getByRole("button", { name: "Agree" });
|
|
1602
1615
|
this.dataSharingNotAtTheMomentButton = page.getByRole("button", { name: "Not at the moment" });
|
|
@@ -1605,8 +1618,8 @@ class Dashboard {
|
|
|
1605
1618
|
this.dataSharingNotAtTheMomentMessageText = page.getByText("You can at any time enter into the agreement and thus contribute to and profit from the constant evolution of our services");
|
|
1606
1619
|
this.dataSharingTermsAgreementLabel = page.getByText('By clicking "Agree", you confirm that you are authorized to enter into this agreement on behalf of your company.');
|
|
1607
1620
|
}
|
|
1608
|
-
|
|
1609
|
-
|
|
1621
|
+
url() {
|
|
1622
|
+
return "#/sw/dashboard/index";
|
|
1610
1623
|
}
|
|
1611
1624
|
}
|
|
1612
1625
|
|
|
@@ -1617,18 +1630,19 @@ const AdminPageObjects = {
|
|
|
1617
1630
|
FirstRunWizard,
|
|
1618
1631
|
FlowBuilderCreate,
|
|
1619
1632
|
FlowBuilderListing,
|
|
1633
|
+
FlowBuilderDetail,
|
|
1620
1634
|
Dashboard,
|
|
1621
1635
|
DataSharing
|
|
1622
1636
|
};
|
|
1623
1637
|
const test$4 = test$c.extend({
|
|
1624
|
-
AdminProductDetail: async ({ AdminPage
|
|
1625
|
-
await use(new ProductDetail(AdminPage
|
|
1638
|
+
AdminProductDetail: async ({ AdminPage }, use) => {
|
|
1639
|
+
await use(new ProductDetail(AdminPage));
|
|
1626
1640
|
},
|
|
1627
|
-
AdminOrderDetail: async ({ AdminPage
|
|
1628
|
-
await use(new OrderDetail(AdminPage
|
|
1641
|
+
AdminOrderDetail: async ({ AdminPage }, use) => {
|
|
1642
|
+
await use(new OrderDetail(AdminPage));
|
|
1629
1643
|
},
|
|
1630
|
-
AdminCustomerDetail: async ({ AdminPage
|
|
1631
|
-
await use(new CustomerDetail(AdminPage
|
|
1644
|
+
AdminCustomerDetail: async ({ AdminPage }, use) => {
|
|
1645
|
+
await use(new CustomerDetail(AdminPage));
|
|
1632
1646
|
},
|
|
1633
1647
|
AdminFirstRunWizard: async ({ AdminPage }, use) => {
|
|
1634
1648
|
await use(new FirstRunWizard(AdminPage));
|
|
@@ -1639,6 +1653,9 @@ const test$4 = test$c.extend({
|
|
|
1639
1653
|
AdminFlowBuilderListing: async ({ AdminPage }, use) => {
|
|
1640
1654
|
await use(new FlowBuilderListing(AdminPage));
|
|
1641
1655
|
},
|
|
1656
|
+
AdminFlowBuilderDetail: async ({ AdminPage }, use) => {
|
|
1657
|
+
await use(new FlowBuilderDetail(AdminPage));
|
|
1658
|
+
},
|
|
1642
1659
|
AdminDataSharing: async ({ AdminPage }, use) => {
|
|
1643
1660
|
await use(new DataSharing(AdminPage));
|
|
1644
1661
|
},
|
|
@@ -2239,7 +2256,7 @@ const Login = test$c.extend({
|
|
|
2239
2256
|
const task = () => {
|
|
2240
2257
|
return async function Login2() {
|
|
2241
2258
|
const { customer } = DefaultSalesChannel;
|
|
2242
|
-
await ShopCustomer.goesTo(StorefrontAccountLogin);
|
|
2259
|
+
await ShopCustomer.goesTo(StorefrontAccountLogin.url());
|
|
2243
2260
|
await StorefrontAccountLogin.emailInput.fill(customer.email);
|
|
2244
2261
|
await StorefrontAccountLogin.passwordInput.fill(customer.password);
|
|
2245
2262
|
await StorefrontAccountLogin.loginButton.click();
|
|
@@ -2254,7 +2271,7 @@ const Logout = test$c.extend({
|
|
|
2254
2271
|
Logout: async ({ ShopCustomer, StorefrontAccountLogin }, use) => {
|
|
2255
2272
|
const task = () => {
|
|
2256
2273
|
return async function Logout2() {
|
|
2257
|
-
await ShopCustomer.goesTo(StorefrontAccountLogin);
|
|
2274
|
+
await ShopCustomer.goesTo(StorefrontAccountLogin.url());
|
|
2258
2275
|
await ShopCustomer.expects(StorefrontAccountLogin.loginButton).not.toBeVisible();
|
|
2259
2276
|
await StorefrontAccountLogin.logoutLink.click();
|
|
2260
2277
|
await ShopCustomer.expects(StorefrontAccountLogin.successAlert).toBeVisible();
|