@shopware-ag/acceptance-test-suite 1.5.0 → 2.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.mjs CHANGED
@@ -420,16 +420,16 @@ const test$a = test$c.extend({
420
420
  ]
421
421
  });
422
422
 
423
- var __defProp$q = Object.defineProperty;
424
- var __defNormalProp$q = (obj, key, value) => key in obj ? __defProp$q(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
425
- var __publicField$q = (obj, key, value) => {
426
- __defNormalProp$q(obj, typeof key !== "symbol" ? key + "" : key, value);
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$q(this, "context");
432
- __publicField$q(this, "options");
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$q(_AdminApiContext, "defaultOptions", {
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$p = Object.defineProperty;
535
- var __defNormalProp$p = (obj, key, value) => key in obj ? __defProp$p(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
536
- var __publicField$p = (obj, key, value) => {
537
- __defNormalProp$p(obj, typeof key !== "symbol" ? key + "" : key, value);
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$p(this, "context");
543
- __publicField$p(this, "options");
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$p(_StoreApiContext, "defaultOptions", {
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$o = Object.defineProperty;
695
- var __defNormalProp$o = (obj, key, value) => key in obj ? __defProp$o(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
696
- var __publicField$o = (obj, key, value) => {
697
- __defNormalProp$o(obj, typeof key !== "symbol" ? key + "" : key, value);
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$o(this, "page");
703
- __publicField$o(this, "name");
704
- __publicField$o(this, "expects", expect);
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(pageObject) {
713
- const stepTitle = `${this.name} navigates to ${this.camelCaseToLowerCase(pageObject.constructor.name)}`;
712
+ async goesTo(url) {
713
+ const stepTitle = `${this.name} navigates to "${url}"`;
714
714
  await test$c.step(stepTitle, async () => {
715
- await pageObject.goTo();
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$n = Object.defineProperty;
745
- var __defNormalProp$n = (obj, key, value) => key in obj ? __defProp$n(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
746
- var __publicField$n = (obj, key, value) => {
747
- __defNormalProp$n(obj, typeof key !== "symbol" ? key + "" : key, value);
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$n(this, "workerIndex");
753
- __publicField$n(this, "seed");
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$m = Object.defineProperty;
794
- var __defNormalProp$m = (obj, key, value) => key in obj ? __defProp$m(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
795
- var __publicField$m = (obj, key, value) => {
796
- __defNormalProp$m(obj, typeof key !== "symbol" ? key + "" : key, value);
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$m(this, "productImages");
802
+ __publicField$n(this, "productImages");
803
803
  this.productImages = page.locator(".product-image-link");
804
804
  }
805
- async goTo() {
806
- await this.page.goto("./");
805
+ url() {
806
+ return "./";
807
807
  }
808
808
  }
809
809
 
810
- var __defProp$l = Object.defineProperty;
811
- var __defNormalProp$l = (obj, key, value) => key in obj ? __defProp$l(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
812
- var __publicField$l = (obj, key, value) => {
813
- __defNormalProp$l(obj, typeof key !== "symbol" ? key + "" : key, value);
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, productData) {
817
+ constructor(page) {
818
818
  this.page = page;
819
- this.productData = productData;
820
- __publicField$l(this, "addToCartButton");
821
- __publicField$l(this, "offCanvasCartTitle");
822
- __publicField$l(this, "offCanvasCart");
823
- __publicField$l(this, "offCanvasCartGoToCheckoutButton");
824
- __publicField$l(this, "productSingleImage");
825
- __publicField$l(this, "offCanvasLineItemImages");
826
- __publicField$l(this, "quantitySelect");
827
- __publicField$l(this, "offCanvasSummaryTotalPrice");
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
- async goTo(productData = this.productData) {
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
- const url = `${namePath}/${productData.productNumber}`;
845
- await this.page.goto(url);
843
+ return `${namePath}/${productData.productNumber}`;
846
844
  }
847
845
  };
848
846
 
849
- var __defProp$k = Object.defineProperty;
850
- var __defNormalProp$k = (obj, key, value) => key in obj ? __defProp$k(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
851
- var __publicField$k = (obj, key, value) => {
852
- __defNormalProp$k(obj, typeof key !== "symbol" ? key + "" : key, value);
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, CategoryData) {
854
+ constructor(page) {
857
855
  this.page = page;
858
- __publicField$k(this, "categoryData");
859
- __publicField$k(this, "sortingSelect");
860
- __publicField$k(this, "firstProductBuyButton");
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
- async goTo() {
868
- const url = `${this.categoryData.name}`;
869
- await this.page.goto(url);
863
+ url(categoryName) {
864
+ return `${categoryName}`;
870
865
  }
871
866
  }
872
867
 
873
- var __defProp$j = Object.defineProperty;
874
- var __defNormalProp$j = (obj, key, value) => key in obj ? __defProp$j(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
875
- var __publicField$j = (obj, key, value) => {
876
- __defNormalProp$j(obj, typeof key !== "symbol" ? key + "" : key, value);
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$j(this, "headline");
883
- __publicField$j(this, "goToCheckoutButton");
884
- __publicField$j(this, "enterDiscountInput");
885
- __publicField$j(this, "grandTotalPrice");
886
- __publicField$j(this, "emptyCartAlert");
887
- __publicField$j(this, "stockReachedAlert");
888
- __publicField$j(this, "cartLineItemImages");
889
- __publicField$j(this, "unitPriceInfo");
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
- async goTo() {
900
- await this.page.goto("checkout/cart");
894
+ url() {
895
+ return "checkout/cart";
901
896
  }
902
897
  }
903
898
 
904
- var __defProp$i = Object.defineProperty;
905
- var __defNormalProp$i = (obj, key, value) => key in obj ? __defProp$i(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
906
- var __publicField$i = (obj, key, value) => {
907
- __defNormalProp$i(obj, typeof key !== "symbol" ? key + "" : key, value);
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$i(this, "headline");
914
- __publicField$i(this, "termsAndConditionsCheckbox");
915
- __publicField$i(this, "immediateAccessToDigitalProductCheckbox");
916
- __publicField$i(this, "grandTotalPrice");
917
- __publicField$i(this, "submitOrderButton");
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$i(this, "paymentCashOnDelivery");
922
- __publicField$i(this, "paymentPaidInAdvance");
923
- __publicField$i(this, "paymentInvoice");
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$i(this, "shippingStandard");
928
- __publicField$i(this, "shippingExpress");
922
+ __publicField$j(this, "shippingStandard");
923
+ __publicField$j(this, "shippingExpress");
929
924
  /**
930
925
  * Product details
931
926
  */
932
- __publicField$i(this, "cartLineItemImages");
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
- async goTo() {
946
- await this.page.goto("checkout/confirm");
940
+ url() {
941
+ return "checkout/confirm";
947
942
  }
948
943
  }
949
944
 
950
- var __defProp$h = Object.defineProperty;
951
- var __defNormalProp$h = (obj, key, value) => key in obj ? __defProp$h(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
952
- var __publicField$h = (obj, key, value) => {
953
- __defNormalProp$h(obj, typeof key !== "symbol" ? key + "" : key, value);
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$h(this, "headline");
960
- __publicField$h(this, "orderNumberText");
961
- __publicField$h(this, "grandTotalPrice");
962
- __publicField$h(this, "cartLineItemImages");
963
- __publicField$h(this, "orderNumberRegex", /Your order number: #(\d+)/);
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
- async goTo() {
970
- console.error("The checkout finish page should only be navigated to via checkout action.");
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$g = Object.defineProperty;
992
- var __defNormalProp$g = (obj, key, value) => key in obj ? __defProp$g(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
993
- var __publicField$g = (obj, key, value) => {
994
- __defNormalProp$g(obj, typeof key !== "symbol" ? key + "" : key, value);
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$g(this, "cartLineItemImages");
995
+ __publicField$h(this, "cartLineItemImages");
1001
996
  this.cartLineItemImages = page.locator(".line-item-img-link");
1002
997
  }
1003
- async goTo() {
1004
- await this.page.goto("checkout/register");
998
+ url() {
999
+ return "checkout/register";
1005
1000
  }
1006
1001
  }
1007
1002
 
1008
- var __defProp$f = Object.defineProperty;
1009
- var __defNormalProp$f = (obj, key, value) => key in obj ? __defProp$f(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
1010
- var __publicField$f = (obj, key, value) => {
1011
- __defNormalProp$f(obj, typeof key !== "symbol" ? key + "" : key, value);
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$f(this, "headline");
1018
- __publicField$f(this, "personalDataCardTitle");
1019
- __publicField$f(this, "paymentMethodCardTitle");
1020
- __publicField$f(this, "billingAddressCardTitle");
1021
- __publicField$f(this, "shippingAddressCardTitle");
1022
- __publicField$f(this, "newsletterCheckbox");
1023
- __publicField$f(this, "newsletterRegistrationSuccessMessage");
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
- async goTo() {
1033
- await this.page.goto("account");
1027
+ url() {
1028
+ return "account";
1034
1029
  }
1035
1030
  }
1036
1031
 
1037
- var __defProp$e = Object.defineProperty;
1038
- var __defNormalProp$e = (obj, key, value) => key in obj ? __defProp$e(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
1039
- var __publicField$e = (obj, key, value) => {
1040
- __defNormalProp$e(obj, typeof key !== "symbol" ? key + "" : key, value);
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$e(this, "emailInput");
1047
- __publicField$e(this, "passwordInput");
1048
- __publicField$e(this, "loginButton");
1049
- __publicField$e(this, "logoutLink");
1050
- __publicField$e(this, "successAlert");
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$e(this, "personalFormArea");
1053
- __publicField$e(this, "billingAddressFormArea");
1054
- __publicField$e(this, "firstNameInput");
1055
- __publicField$e(this, "lastNameInput");
1056
- __publicField$e(this, "registerEmailInput");
1057
- __publicField$e(this, "registerPasswordInput");
1058
- __publicField$e(this, "streetAddressInput");
1059
- __publicField$e(this, "cityInput");
1060
- __publicField$e(this, "countryInput");
1061
- __publicField$e(this, "registerButton");
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
- async goTo() {
1080
- await this.page.goto("account/login");
1074
+ url() {
1075
+ return "account/login";
1081
1076
  }
1082
1077
  }
1083
1078
 
1084
- var __defProp$d = Object.defineProperty;
1085
- var __defNormalProp$d = (obj, key, value) => key in obj ? __defProp$d(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
1086
- var __publicField$d = (obj, key, value) => {
1087
- __defNormalProp$d(obj, typeof key !== "symbol" ? key + "" : key, value);
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$d(this, "salutationSelect");
1094
- __publicField$d(this, "firstNameInput");
1095
- __publicField$d(this, "lastNameInput");
1096
- __publicField$d(this, "saveProfileButton");
1097
- __publicField$d(this, "changeEmailButton");
1098
- __publicField$d(this, "emailAddressInput");
1099
- __publicField$d(this, "emailAddressConfirmInput");
1100
- __publicField$d(this, "emailConfirmPasswordInput");
1101
- __publicField$d(this, "saveEmailAddressButton");
1102
- __publicField$d(this, "changePasswordButton");
1103
- __publicField$d(this, "newPasswordInput");
1104
- __publicField$d(this, "newPasswordConfirmInput");
1105
- __publicField$d(this, "currentPasswordInput");
1106
- __publicField$d(this, "saveNewPasswordButton");
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
- async goTo() {
1123
- await this.page.goto("account/profile");
1117
+ url() {
1118
+ return "account/profile";
1124
1119
  }
1125
1120
  }
1126
1121
 
1127
- var __defProp$c = Object.defineProperty;
1128
- var __defNormalProp$c = (obj, key, value) => key in obj ? __defProp$c(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
1129
- var __publicField$c = (obj, key, value) => {
1130
- __defNormalProp$c(obj, typeof key !== "symbol" ? key + "" : key, value);
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$c(this, "cartLineItemImages");
1137
- __publicField$c(this, "orderExpandButton");
1138
- __publicField$c(this, "digitalProductDownloadButton");
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
- async goTo() {
1144
- await this.page.goto("account/order");
1138
+ url() {
1139
+ return "account/order";
1145
1140
  }
1146
1141
  }
1147
1142
 
1148
- var __defProp$b = Object.defineProperty;
1149
- var __defNormalProp$b = (obj, key, value) => key in obj ? __defProp$b(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
1150
- var __publicField$b = (obj, key, value) => {
1151
- __defNormalProp$b(obj, typeof key !== "symbol" ? key + "" : key, value);
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$b(this, "addNewAddressButton");
1158
- __publicField$b(this, "editBillingAddressButton");
1159
- __publicField$b(this, "editShippingAddressButton");
1160
- __publicField$b(this, "useDefaultBillingAddressButton");
1161
- __publicField$b(this, "useDefaultShippingAddressButton");
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
- async goTo() {
1169
- await this.page.goto("account/address");
1163
+ url() {
1164
+ return "account/address";
1170
1165
  }
1171
1166
  }
1172
1167
 
1173
- var __defProp$a = Object.defineProperty;
1174
- var __defNormalProp$a = (obj, key, value) => key in obj ? __defProp$a(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
1175
- var __publicField$a = (obj, key, value) => {
1176
- __defNormalProp$a(obj, typeof key !== "symbol" ? key + "" : key, value);
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$a(this, "cashOnDeliveryOption");
1183
- __publicField$a(this, "paidInAdvanceOption");
1184
- __publicField$a(this, "invoiceOption");
1185
- __publicField$a(this, "changeDefaultPaymentButton");
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
- async goTo() {
1192
- await this.page.goto("account/payment");
1186
+ url() {
1187
+ return "account/payment";
1193
1188
  }
1194
1189
  }
1195
1190
 
1196
- var __defProp$9 = Object.defineProperty;
1197
- var __defNormalProp$9 = (obj, key, value) => key in obj ? __defProp$9(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
1198
- var __publicField$9 = (obj, key, value) => {
1199
- __defNormalProp$9(obj, typeof key !== "symbol" ? key + "" : key, value);
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$9(this, "productImages");
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
- async goTo() {
1209
- const url = `search?search`;
1210
- await this.page.goto(url);
1205
+ url(searchTerm) {
1206
+ return `search?search=${searchTerm}`;
1211
1207
  }
1212
1208
  }
1213
1209
 
1214
- var __defProp$8 = Object.defineProperty;
1215
- var __defNormalProp$8 = (obj, key, value) => key in obj ? __defProp$8(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
1216
- var __publicField$8 = (obj, key, value) => {
1217
- __defNormalProp$8(obj, typeof key !== "symbol" ? key + "" : key, value);
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$8(this, "searchSuggestLineItemImages");
1219
+ __publicField$9(this, "searchSuggestLineItemImages");
1224
1220
  this.searchSuggestLineItemImages = page.locator(".search-suggest-product-image-container");
1225
1221
  }
1226
- async goTo() {
1227
- const url = `suggest?search`;
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, ProductData }, use) => {
1254
- await use(new ProductDetail$1(StorefrontPage, ProductData));
1248
+ StorefrontProductDetail: async ({ StorefrontPage }, use) => {
1249
+ await use(new ProductDetail$1(StorefrontPage));
1255
1250
  },
1256
- StorefrontCategory: async ({ StorefrontPage, CategoryData }, use) => {
1257
- await use(new Category(StorefrontPage, CategoryData));
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$7 = Object.defineProperty;
1298
- var __defNormalProp$7 = (obj, key, value) => key in obj ? __defProp$7(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
1299
- var __publicField$7 = (obj, key, value) => {
1300
- __defNormalProp$7(obj, typeof key !== "symbol" ? key + "" : key, value);
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, productData) {
1299
+ constructor(page) {
1305
1300
  this.page = page;
1306
1301
  /**
1307
1302
  * Save interactions
1308
1303
  */
1309
- __publicField$7(this, "savePhysicalProductButton");
1310
- __publicField$7(this, "saveButtonLoadingSpinner");
1311
- __publicField$7(this, "saveButtonCheckMark");
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$7(this, "uploadMediaButton");
1316
- __publicField$7(this, "coverImage");
1317
- __publicField$7(this, "productImage");
1310
+ __publicField$8(this, "uploadMediaButton");
1311
+ __publicField$8(this, "coverImage");
1312
+ __publicField$8(this, "productImage");
1318
1313
  /**
1319
1314
  * Tabs
1320
1315
  */
1321
- __publicField$7(this, "variantsTabLink");
1316
+ __publicField$8(this, "variantsTabLink");
1322
1317
  /**
1323
1318
  * Variants Generation
1324
1319
  */
1325
- __publicField$7(this, "generateVariantsButton");
1326
- __publicField$7(this, "variantsModal");
1327
- __publicField$7(this, "variantsModalHeadline");
1328
- __publicField$7(this, "variantsNextButton");
1329
- __publicField$7(this, "variantsSaveButton");
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$7(this, "propertyGroupColor");
1334
- __publicField$7(this, "propertyGroupSize");
1335
- __publicField$7(this, "propertyOptionGrid");
1336
- __publicField$7(this, "propertyOptionColorBlue");
1337
- __publicField$7(this, "propertyOptionColorRed");
1338
- __publicField$7(this, "propertyOptionColorGreen");
1339
- __publicField$7(this, "propertyOptionSizeSmall");
1340
- __publicField$7(this, "propertyOptionSizeMedium");
1341
- __publicField$7(this, "propertyOptionSizeLarge");
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
- async goTo() {
1367
- await this.page.goto(`#/sw/product/detail/${this.productData.id}/base`);
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$6 = Object.defineProperty;
1375
- var __defNormalProp$6 = (obj, key, value) => key in obj ? __defProp$6(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
1376
- var __publicField$6 = (obj, key, value) => {
1377
- __defNormalProp$6(obj, typeof key !== "symbol" ? key + "" : key, value);
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, orderData) {
1371
+ constructor(page) {
1382
1372
  this.page = page;
1383
- __publicField$6(this, "dataGridContextButton");
1384
- __publicField$6(this, "orderTag");
1385
- __publicField$6(this, "orderData");
1386
- this.orderData = orderData;
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
- async goTo() {
1391
- await this.page.goto(`#/sw/order/detail/${this.orderData.id}/general`);
1380
+ url(orderId) {
1381
+ return `#/sw/order/detail/${orderId}/general`;
1392
1382
  }
1393
1383
  }
1394
1384
 
1395
- var __defProp$5 = Object.defineProperty;
1396
- var __defNormalProp$5 = (obj, key, value) => key in obj ? __defProp$5(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
1397
- var __publicField$5 = (obj, key, value) => {
1398
- __defNormalProp$5(obj, typeof key !== "symbol" ? key + "" : key, value);
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, customer) {
1392
+ constructor(page) {
1403
1393
  this.page = page;
1404
- __publicField$5(this, "customerId");
1405
- __publicField$5(this, "customer");
1406
- __publicField$5(this, "editButton");
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
- async goTo() {
1416
- await this.page.goto(`#/sw/customer/detail/${this.customerId}/base`);
1401
+ url(customerId) {
1402
+ return `#/sw/customer/detail/${customerId}/base`;
1417
1403
  }
1418
1404
  }
1419
1405
 
1420
- var __defProp$4 = Object.defineProperty;
1421
- var __defNormalProp$4 = (obj, key, value) => key in obj ? __defProp$4(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
1422
- var __publicField$4 = (obj, key, value) => {
1423
- __defNormalProp$4(obj, typeof key !== "symbol" ? key + "" : key, value);
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$4(this, "nextButton");
1430
- __publicField$4(this, "configureLaterButton");
1431
- __publicField$4(this, "skipButton");
1432
- __publicField$4(this, "finishButton");
1433
- __publicField$4(this, "backButton");
1434
- __publicField$4(this, "smtpServerButton");
1435
- __publicField$4(this, "dataImportHeader");
1436
- __publicField$4(this, "installLanguagePackButton");
1437
- __publicField$4(this, "installDemoDataButton");
1438
- __publicField$4(this, "installMigrationAssistantButton");
1439
- __publicField$4(this, "defaultValuesHeader");
1440
- __publicField$4(this, "mailerConfigurationHeader");
1441
- __publicField$4(this, "payPalSetupHeader");
1442
- __publicField$4(this, "extensionsHeader");
1443
- __publicField$4(this, "shopwareAccountHeader");
1444
- __publicField$4(this, "shopwareStoreHeader");
1445
- __publicField$4(this, "doneHeader");
1446
- __publicField$4(this, "frwSuccessText");
1447
- __publicField$4(this, "welcomeText");
1448
- __publicField$4(this, "pluginCardInfo");
1449
- __publicField$4(this, "dataImportCard");
1450
- __publicField$4(this, "salesChannelSelectionList");
1451
- __publicField$4(this, "salesChannelSelectionMultiSelect");
1452
- __publicField$4(this, "smtpServerTitle");
1453
- __publicField$4(this, "smtpServerFields");
1454
- __publicField$4(this, "payPalPaymethods");
1455
- __publicField$4(this, "payPalInfoCard");
1456
- __publicField$4(this, "emailAddressInputField");
1457
- __publicField$4(this, "passwordInputField");
1458
- __publicField$4(this, "forgotPasswordLink");
1459
- __publicField$4(this, "extensionStoreHeading");
1460
- __publicField$4(this, "documentationLink");
1461
- __publicField$4(this, "forumLink");
1462
- __publicField$4(this, "roadmapLink");
1463
- __publicField$4(this, "germanRegionSelector");
1464
- __publicField$4(this, "toolsSelector");
1465
- __publicField$4(this, "recommendationHeader");
1466
- __publicField$4(this, "toolsRecommendedPlugin");
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
- async goTo() {
1507
- await this.page.goto(`#/sw/first/run/wizard/index/`);
1492
+ url() {
1493
+ return "#/sw/first/run/wizard/index/";
1508
1494
  }
1509
1495
  }
1510
1496
 
1511
- var __defProp$3 = Object.defineProperty;
1512
- var __defNormalProp$3 = (obj, key, value) => key in obj ? __defProp$3(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
1513
- var __publicField$3 = (obj, key, value) => {
1514
- __defNormalProp$3(obj, typeof key !== "symbol" ? key + "" : key, value);
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$3(this, "saveButton");
1521
- __publicField$3(this, "header");
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
- async goTo() {
1526
- await this.page.goto(`#/sw/flow/create/general`);
1511
+ url() {
1512
+ return "#/sw/flow/create/general";
1527
1513
  }
1528
1514
  }
1529
1515
 
1530
- var __defProp$2 = Object.defineProperty;
1531
- var __defNormalProp$2 = (obj, key, value) => key in obj ? __defProp$2(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
1532
- var __publicField$2 = (obj, key, value) => {
1533
- __defNormalProp$2(obj, typeof key !== "symbol" ? key + "" : key, value);
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$2(this, "firstFlowName");
1540
- __publicField$2(this, "firstFlowContextButton");
1541
- __publicField$2(this, "flowContextMenu");
1542
- __publicField$2(this, "contextMenuDownload");
1543
- __publicField$2(this, "flowDownloadModal");
1544
- __publicField$2(this, "downloadFlowButton");
1545
- __publicField$2(this, "successAlert");
1546
- __publicField$2(this, "successAlertMessage");
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
- async goTo() {
1557
- await this.page.goto(`#/sw/flow/index/`);
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
- async goTo() {
1580
- await this.page.goto("#/sw/settings/usage/data/index/general");
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
- async goTo() {
1609
- await this.page.goto("#/sw/dashboard/index");
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, ProductData }, use) => {
1625
- await use(new ProductDetail(AdminPage, ProductData));
1638
+ AdminProductDetail: async ({ AdminPage }, use) => {
1639
+ await use(new ProductDetail(AdminPage));
1626
1640
  },
1627
- AdminOrderDetail: async ({ AdminPage, OrderData }, use) => {
1628
- await use(new OrderDetail(AdminPage, OrderData));
1641
+ AdminOrderDetail: async ({ AdminPage }, use) => {
1642
+ await use(new OrderDetail(AdminPage));
1629
1643
  },
1630
- AdminCustomerDetail: async ({ AdminPage, DefaultSalesChannel }, use) => {
1631
- await use(new CustomerDetail(AdminPage, DefaultSalesChannel.customer));
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();