@shopware-ag/acceptance-test-suite 12.15.0 → 12.16.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.mts CHANGED
@@ -2064,6 +2064,7 @@ declare const BUNDLED_RESOURCES: {
2064
2064
  termsAndConditions: string;
2065
2065
  immediateAccessToDigitalProduct: string;
2066
2066
  autoConfirmTermsText: string;
2067
+ termsAndConditionsWithLegalGuaranteeRights: string;
2067
2068
  };
2068
2069
  finish: {
2069
2070
  thankYouForOrder: string;
@@ -2077,6 +2078,8 @@ declare const BUNDLED_RESOURCES: {
2077
2078
  quantity: string;
2078
2079
  addToWishlist: string;
2079
2080
  removeFromWishlist: string;
2081
+ garanLabelShowLink: string;
2082
+ garanLabelHideLink: string;
2080
2083
  deliveryTime: string;
2081
2084
  review: {
2082
2085
  tabTitle: string;
@@ -3151,6 +3154,7 @@ declare const BUNDLED_RESOURCES: {
3151
3154
  termsAndConditions: string;
3152
3155
  immediateAccessToDigitalProduct: string;
3153
3156
  autoConfirmTermsText: string;
3157
+ termsAndConditionsWithLegalGuaranteeRights: string;
3154
3158
  };
3155
3159
  finish: {
3156
3160
  thankYouForOrder: string;
@@ -3365,6 +3369,8 @@ declare const BUNDLED_RESOURCES: {
3365
3369
  addToCart: string;
3366
3370
  addToWishlist: string;
3367
3371
  removeFromWishlist: string;
3372
+ garanLabelShowLink: string;
3373
+ garanLabelHideLink: string;
3368
3374
  deliveryTime: string;
3369
3375
  quantity: string;
3370
3376
  review: {
@@ -4192,6 +4198,7 @@ declare const baseNamespaces: {
4192
4198
  termsAndConditions: string;
4193
4199
  immediateAccessToDigitalProduct: string;
4194
4200
  autoConfirmTermsText: string;
4201
+ termsAndConditionsWithLegalGuaranteeRights: string;
4195
4202
  };
4196
4203
  finish: {
4197
4204
  thankYouForOrder: string;
@@ -4205,6 +4212,8 @@ declare const baseNamespaces: {
4205
4212
  quantity: string;
4206
4213
  addToWishlist: string;
4207
4214
  removeFromWishlist: string;
4215
+ garanLabelShowLink: string;
4216
+ garanLabelHideLink: string;
4208
4217
  deliveryTime: string;
4209
4218
  review: {
4210
4219
  tabTitle: string;
@@ -4564,6 +4573,11 @@ declare class ProductDetail$1 implements PageObject {
4564
4573
  readonly productDetailConfiguratorOptionInputs: Locator;
4565
4574
  readonly productName: Locator;
4566
4575
  readonly productDescriptionTitle: Locator;
4576
+ readonly garanNestedLabel: Locator;
4577
+ readonly garanFullLabel: Locator;
4578
+ readonly showGaranLabelButton: Locator;
4579
+ readonly hideGaranLabelButton: Locator;
4580
+ readonly offCanvasLineItemGaranLabel: Locator;
4567
4581
  readonly reviewsTab: Locator;
4568
4582
  readonly reviewTeaserButton: Locator;
4569
4583
  readonly reviewTeaserText: Locator;
@@ -4585,6 +4599,7 @@ declare class ProductDetail$1 implements PageObject {
4585
4599
  readonly reviewPasswordInput: Locator;
4586
4600
  readonly reviewTitleInput: Locator;
4587
4601
  readonly reviewSubmitButton: Locator;
4602
+ readonly reviewTabLoadingIcon: Locator;
4588
4603
  readonly productReviewsLink: Locator;
4589
4604
  readonly productReviewRating: Locator;
4590
4605
  readonly page: Page;
@@ -4645,11 +4660,15 @@ declare class OffCanvasCart implements PageObject {
4645
4660
  declare class CheckoutConfirm implements PageObject {
4646
4661
  readonly headline: Locator;
4647
4662
  readonly termsAndConditionsCheckbox: Locator;
4663
+ readonly termsAndConditionsWithLegalGuaranteeRightsLabel: Locator;
4664
+ readonly termsAndConditionsWithLegalGuaranteeRightsCheckbox: Locator;
4648
4665
  readonly immediateAccessToDigitalProductCheckbox: Locator;
4649
4666
  readonly grandTotalPrice: Locator;
4650
4667
  readonly taxPrice: Locator;
4651
4668
  readonly submitOrderButton: Locator;
4652
4669
  readonly termsAutoConfirmedText: Locator;
4670
+ readonly legalGuaranteeNoticeLink: Locator;
4671
+ readonly lineItemGaranLabel: Locator;
4653
4672
  /**
4654
4673
  * Payment and Shipping options
4655
4674
  */
@@ -4831,7 +4850,7 @@ declare class AccountOrder extends BaseAccount {
4831
4850
  readonly creditItem: Locator;
4832
4851
  readonly noOrdersAlert: Locator;
4833
4852
  constructor(page: Page);
4834
- getOrderByOrderNumber(orderNumber: string): Promise<Record<string, Locator>>;
4853
+ getOrderByOrderNumber(orderNumber: string, productNumber?: string): Promise<Record<string, Locator>>;
4835
4854
  url(): string;
4836
4855
  private buildTaxPricePattern;
4837
4856
  private escapeRegex;
@@ -6274,7 +6293,7 @@ declare class ListingPageLayoutDetail implements PageObject {
6274
6293
  readonly navigatorButton: Locator;
6275
6294
  readonly layoutAssignmentButton: Locator;
6276
6295
  readonly page: Page;
6277
- constructor(page: Page);
6296
+ constructor(page: Page, instanceMeta: HelperFixtureTypes["InstanceMeta"]);
6278
6297
  url(layoutId: string): string;
6279
6298
  }
6280
6299
 
@@ -6796,6 +6815,7 @@ declare const test: playwright_test.TestType<playwright_test.PlaywrightTestArgs
6796
6815
  ProceedFromCartToCheckout: Task;
6797
6816
  } & {
6798
6817
  ConfirmTermsAndConditions: Task;
6818
+ ConfirmTermsAndConditionsWithLegalGuaranteeRights: Task;
6799
6819
  } & {
6800
6820
  SelectPaymentMethod: Task;
6801
6821
  } & {
@@ -6828,6 +6848,8 @@ declare const test: playwright_test.TestType<playwright_test.PlaywrightTestArgs
6828
6848
  AddProductToWishlist: Task;
6829
6849
  } & {
6830
6850
  SelectProductFilterOption: Task;
6851
+ } & {
6852
+ SelectProductReviewOption: Task;
6831
6853
  } & {
6832
6854
  CheckVisibilityInHome: Task;
6833
6855
  }, playwright_test.PlaywrightWorkerArgs & playwright_test.PlaywrightWorkerOptions & FixtureTypes & {
package/dist/index.d.ts CHANGED
@@ -2064,6 +2064,7 @@ declare const BUNDLED_RESOURCES: {
2064
2064
  termsAndConditions: string;
2065
2065
  immediateAccessToDigitalProduct: string;
2066
2066
  autoConfirmTermsText: string;
2067
+ termsAndConditionsWithLegalGuaranteeRights: string;
2067
2068
  };
2068
2069
  finish: {
2069
2070
  thankYouForOrder: string;
@@ -2077,6 +2078,8 @@ declare const BUNDLED_RESOURCES: {
2077
2078
  quantity: string;
2078
2079
  addToWishlist: string;
2079
2080
  removeFromWishlist: string;
2081
+ garanLabelShowLink: string;
2082
+ garanLabelHideLink: string;
2080
2083
  deliveryTime: string;
2081
2084
  review: {
2082
2085
  tabTitle: string;
@@ -3151,6 +3154,7 @@ declare const BUNDLED_RESOURCES: {
3151
3154
  termsAndConditions: string;
3152
3155
  immediateAccessToDigitalProduct: string;
3153
3156
  autoConfirmTermsText: string;
3157
+ termsAndConditionsWithLegalGuaranteeRights: string;
3154
3158
  };
3155
3159
  finish: {
3156
3160
  thankYouForOrder: string;
@@ -3365,6 +3369,8 @@ declare const BUNDLED_RESOURCES: {
3365
3369
  addToCart: string;
3366
3370
  addToWishlist: string;
3367
3371
  removeFromWishlist: string;
3372
+ garanLabelShowLink: string;
3373
+ garanLabelHideLink: string;
3368
3374
  deliveryTime: string;
3369
3375
  quantity: string;
3370
3376
  review: {
@@ -4192,6 +4198,7 @@ declare const baseNamespaces: {
4192
4198
  termsAndConditions: string;
4193
4199
  immediateAccessToDigitalProduct: string;
4194
4200
  autoConfirmTermsText: string;
4201
+ termsAndConditionsWithLegalGuaranteeRights: string;
4195
4202
  };
4196
4203
  finish: {
4197
4204
  thankYouForOrder: string;
@@ -4205,6 +4212,8 @@ declare const baseNamespaces: {
4205
4212
  quantity: string;
4206
4213
  addToWishlist: string;
4207
4214
  removeFromWishlist: string;
4215
+ garanLabelShowLink: string;
4216
+ garanLabelHideLink: string;
4208
4217
  deliveryTime: string;
4209
4218
  review: {
4210
4219
  tabTitle: string;
@@ -4564,6 +4573,11 @@ declare class ProductDetail$1 implements PageObject {
4564
4573
  readonly productDetailConfiguratorOptionInputs: Locator;
4565
4574
  readonly productName: Locator;
4566
4575
  readonly productDescriptionTitle: Locator;
4576
+ readonly garanNestedLabel: Locator;
4577
+ readonly garanFullLabel: Locator;
4578
+ readonly showGaranLabelButton: Locator;
4579
+ readonly hideGaranLabelButton: Locator;
4580
+ readonly offCanvasLineItemGaranLabel: Locator;
4567
4581
  readonly reviewsTab: Locator;
4568
4582
  readonly reviewTeaserButton: Locator;
4569
4583
  readonly reviewTeaserText: Locator;
@@ -4585,6 +4599,7 @@ declare class ProductDetail$1 implements PageObject {
4585
4599
  readonly reviewPasswordInput: Locator;
4586
4600
  readonly reviewTitleInput: Locator;
4587
4601
  readonly reviewSubmitButton: Locator;
4602
+ readonly reviewTabLoadingIcon: Locator;
4588
4603
  readonly productReviewsLink: Locator;
4589
4604
  readonly productReviewRating: Locator;
4590
4605
  readonly page: Page;
@@ -4645,11 +4660,15 @@ declare class OffCanvasCart implements PageObject {
4645
4660
  declare class CheckoutConfirm implements PageObject {
4646
4661
  readonly headline: Locator;
4647
4662
  readonly termsAndConditionsCheckbox: Locator;
4663
+ readonly termsAndConditionsWithLegalGuaranteeRightsLabel: Locator;
4664
+ readonly termsAndConditionsWithLegalGuaranteeRightsCheckbox: Locator;
4648
4665
  readonly immediateAccessToDigitalProductCheckbox: Locator;
4649
4666
  readonly grandTotalPrice: Locator;
4650
4667
  readonly taxPrice: Locator;
4651
4668
  readonly submitOrderButton: Locator;
4652
4669
  readonly termsAutoConfirmedText: Locator;
4670
+ readonly legalGuaranteeNoticeLink: Locator;
4671
+ readonly lineItemGaranLabel: Locator;
4653
4672
  /**
4654
4673
  * Payment and Shipping options
4655
4674
  */
@@ -4831,7 +4850,7 @@ declare class AccountOrder extends BaseAccount {
4831
4850
  readonly creditItem: Locator;
4832
4851
  readonly noOrdersAlert: Locator;
4833
4852
  constructor(page: Page);
4834
- getOrderByOrderNumber(orderNumber: string): Promise<Record<string, Locator>>;
4853
+ getOrderByOrderNumber(orderNumber: string, productNumber?: string): Promise<Record<string, Locator>>;
4835
4854
  url(): string;
4836
4855
  private buildTaxPricePattern;
4837
4856
  private escapeRegex;
@@ -6274,7 +6293,7 @@ declare class ListingPageLayoutDetail implements PageObject {
6274
6293
  readonly navigatorButton: Locator;
6275
6294
  readonly layoutAssignmentButton: Locator;
6276
6295
  readonly page: Page;
6277
- constructor(page: Page);
6296
+ constructor(page: Page, instanceMeta: HelperFixtureTypes["InstanceMeta"]);
6278
6297
  url(layoutId: string): string;
6279
6298
  }
6280
6299
 
@@ -6796,6 +6815,7 @@ declare const test: playwright_test.TestType<playwright_test.PlaywrightTestArgs
6796
6815
  ProceedFromCartToCheckout: Task;
6797
6816
  } & {
6798
6817
  ConfirmTermsAndConditions: Task;
6818
+ ConfirmTermsAndConditionsWithLegalGuaranteeRights: Task;
6799
6819
  } & {
6800
6820
  SelectPaymentMethod: Task;
6801
6821
  } & {
@@ -6828,6 +6848,8 @@ declare const test: playwright_test.TestType<playwright_test.PlaywrightTestArgs
6828
6848
  AddProductToWishlist: Task;
6829
6849
  } & {
6830
6850
  SelectProductFilterOption: Task;
6851
+ } & {
6852
+ SelectProductReviewOption: Task;
6831
6853
  } & {
6832
6854
  CheckVisibilityInHome: Task;
6833
6855
  }, playwright_test.PlaywrightWorkerArgs & playwright_test.PlaywrightWorkerOptions & FixtureTypes & {
package/dist/index.mjs CHANGED
@@ -1964,7 +1964,8 @@ const confirm$1 = {
1964
1964
  submitOrder: "Submit order",
1965
1965
  termsAndConditions: "I have read and accepted the general terms and conditions.",
1966
1966
  immediateAccessToDigitalProduct: "I want immediate access to the digital content and I acknowledge that thereby I waive my right to cancel.",
1967
- autoConfirmTermsText: "By placing your order you accept our Terms and Conditions and cancellation policy."
1967
+ autoConfirmTermsText: "By placing your order you accept our Terms and Conditions and cancellation policy.",
1968
+ termsAndConditionsWithLegalGuaranteeRights: "I have read and accepted the general terms and conditions and acknowledged my legal guarantee rights."
1968
1969
  };
1969
1970
  const finish$1 = {
1970
1971
  thankYouForOrder: "Thank you for your order"
@@ -1984,6 +1985,8 @@ const addToCart$1 = "Add to shopping cart";
1984
1985
  const quantity$2 = "Quantity";
1985
1986
  const addToWishlist$1 = "Add to wishlist";
1986
1987
  const removeFromWishlist$1 = "Remove from wishlist";
1988
+ const garanLabelShowLink$1 = "Show GARAN label";
1989
+ const garanLabelHideLink$1 = "Hide GARAN label";
1987
1990
  const deliveryTime$1 = "Ready to ship today,\\nDelivery time appr. 1-3 workdays";
1988
1991
  const review$1 = {
1989
1992
  tabTitle: "Reviews",
@@ -2001,6 +2004,8 @@ const storefrontProduct = {
2001
2004
  quantity: quantity$2,
2002
2005
  addToWishlist: addToWishlist$1,
2003
2006
  removeFromWishlist: removeFromWishlist$1,
2007
+ garanLabelShowLink: garanLabelShowLink$1,
2008
+ garanLabelHideLink: garanLabelHideLink$1,
2004
2009
  deliveryTime: deliveryTime$1,
2005
2010
  review: review$1,
2006
2011
  listing: listing$e
@@ -3285,7 +3290,8 @@ const confirm = {
3285
3290
  submitOrder: "Zahlungspflichtig bestellen",
3286
3291
  termsAndConditions: "Ich habe die AGB gelesen und bin mit ihnen einverstanden.",
3287
3292
  immediateAccessToDigitalProduct: "Ja, ich möchte sofort Zugang zu dem digitalen Inhalt und weiß, dass mein Widerrufsrecht mit dem Zugang erlischt.",
3288
- autoConfirmTermsText: "Mit Ihrer Bestellung akzeptieren Sie unsere AGB und die Widerrufsbelehrung."
3293
+ autoConfirmTermsText: "Mit Ihrer Bestellung akzeptieren Sie unsere AGB und die Widerrufsbelehrung.",
3294
+ termsAndConditionsWithLegalGuaranteeRights: "Ich habe die AGB gelesen und bin mit ihnen einverstanden und habe meine gesetzlichen Gewährleistungsrechte erkannt."
3289
3295
  };
3290
3296
  const finish = {
3291
3297
  thankYouForOrder: "Vielen Dank für Ihre Bestellung"
@@ -3566,6 +3572,8 @@ const search = {
3566
3572
  const addToCart = "In den Warenkorb";
3567
3573
  const addToWishlist = "Auf die Wunschliste";
3568
3574
  const removeFromWishlist = "Von der Wunschliste entfernen";
3575
+ const garanLabelShowLink = "GARAN-Kennzeichnung anzeigen";
3576
+ const garanLabelHideLink = "GARAN-Kennzeichnung ausblenden";
3569
3577
  const deliveryTime = "Lieferzeit";
3570
3578
  const quantity = "Anzahl";
3571
3579
  const review = {
@@ -3582,6 +3590,8 @@ const deStorefrontProduct = {
3582
3590
  addToCart: addToCart,
3583
3591
  addToWishlist: addToWishlist,
3584
3592
  removeFromWishlist: removeFromWishlist,
3593
+ garanLabelShowLink: garanLabelShowLink,
3594
+ garanLabelHideLink: garanLabelHideLink,
3585
3595
  deliveryTime: deliveryTime,
3586
3596
  quantity: quantity,
3587
3597
  review: review
@@ -7055,6 +7065,11 @@ let ProductDetail$1 = class ProductDetail {
7055
7065
  productDetailConfiguratorOptionInputs;
7056
7066
  productName;
7057
7067
  productDescriptionTitle;
7068
+ garanNestedLabel;
7069
+ garanFullLabel;
7070
+ showGaranLabelButton;
7071
+ hideGaranLabelButton;
7072
+ offCanvasLineItemGaranLabel;
7058
7073
  //Reviews Tab
7059
7074
  reviewsTab;
7060
7075
  reviewTeaserButton;
@@ -7077,6 +7092,7 @@ let ProductDetail$1 = class ProductDetail {
7077
7092
  reviewPasswordInput;
7078
7093
  reviewTitleInput;
7079
7094
  reviewSubmitButton;
7095
+ reviewTabLoadingIcon;
7080
7096
  productReviewsLink;
7081
7097
  productReviewRating;
7082
7098
  page;
@@ -7108,6 +7124,11 @@ let ProductDetail$1 = class ProductDetail {
7108
7124
  this.productDetailConfiguratorOptionInputs = page.locator(".product-detail-configurator-option-input");
7109
7125
  this.productName = page.locator(".product-detail-name");
7110
7126
  this.productDescriptionTitle = page.locator(".product-detail-description-title");
7127
+ this.garanNestedLabel = page.locator(".product-detail-garan-label");
7128
+ this.garanFullLabel = page.locator(".product-detail-garan-label-full");
7129
+ this.showGaranLabelButton = page.getByRole("button", { name: translate("storefront:product:garanLabelShowLink") });
7130
+ this.hideGaranLabelButton = page.getByRole("button", { name: translate("storefront:product:garanLabelHideLink") });
7131
+ this.offCanvasLineItemGaranLabel = this.offCanvasCart.locator(".line-item-garan-label");
7111
7132
  this.productReviewRating = page.locator(".product-detail-reviews .product-review-rating");
7112
7133
  this.productReviewsLink = page.locator(".product-detail-reviews .product-detail-reviews-link");
7113
7134
  this.reviewsTab = this.page.getByRole("tab", { name: translate("storefront:product:review.tabTitle") });
@@ -7131,6 +7152,7 @@ let ProductDetail$1 = class ProductDetail {
7131
7152
  this.reviewItemTitle = this.page.locator(".product-detail-review-item-title");
7132
7153
  this.reviewItemContent = this.page.locator(".product-detail-review-item-content");
7133
7154
  this.reviewSubmitMessage = this.page.getByText(translate("storefront:product:review.submitMessage"));
7155
+ this.reviewTabLoadingIcon = this.page.locator(".element-loader-backdrop").locator(".loader");
7134
7156
  }
7135
7157
  async getReviewFilterRowOptionsByName(filterOptionName) {
7136
7158
  const rowLocators = this.page.locator(".product-detail-review-filter").filter({ hasText: filterOptionName });
@@ -7269,6 +7291,7 @@ class OffCanvasCart {
7269
7291
  const removeButton = lineItem.locator(".line-item-remove-button");
7270
7292
  const wishlistAddedButton = lineItem.locator(".product-wishlist-added");
7271
7293
  const wishlistNotAddedButton = lineItem.locator(".product-wishlist-not-added");
7294
+ const lineItemGaranLabel = lineItem.locator(".line-item-garan-label");
7272
7295
  return {
7273
7296
  lineItemImage,
7274
7297
  productNameLabel,
@@ -7281,7 +7304,8 @@ class OffCanvasCart {
7281
7304
  productTotalPriceValue,
7282
7305
  removeButton,
7283
7306
  wishlistAddedButton,
7284
- wishlistNotAddedButton
7307
+ wishlistNotAddedButton,
7308
+ lineItemGaranLabel
7285
7309
  };
7286
7310
  }
7287
7311
  }
@@ -7289,11 +7313,15 @@ class OffCanvasCart {
7289
7313
  class CheckoutConfirm {
7290
7314
  headline;
7291
7315
  termsAndConditionsCheckbox;
7316
+ termsAndConditionsWithLegalGuaranteeRightsLabel;
7317
+ termsAndConditionsWithLegalGuaranteeRightsCheckbox;
7292
7318
  immediateAccessToDigitalProductCheckbox;
7293
7319
  grandTotalPrice;
7294
7320
  taxPrice;
7295
7321
  submitOrderButton;
7296
7322
  termsAutoConfirmedText;
7323
+ legalGuaranteeNoticeLink;
7324
+ lineItemGaranLabel;
7297
7325
  /**
7298
7326
  * Payment and Shipping options
7299
7327
  */
@@ -7331,6 +7359,10 @@ class CheckoutConfirm {
7331
7359
  this.shippingExpress = page.getByLabel(translate("storefront:checkout:common.express"));
7332
7360
  this.cartLineItemImages = page.locator(".line-item-img-link");
7333
7361
  this.termsAutoConfirmedText = page.locator(".checkout-confirm-tos-information");
7362
+ this.termsAndConditionsWithLegalGuaranteeRightsCheckbox = page.locator("#tos");
7363
+ this.termsAndConditionsWithLegalGuaranteeRightsLabel = page.getByLabel(translate("storefront:checkout:confirm.termsAndConditionsWithLegalGuaranteeRights"));
7364
+ this.legalGuaranteeNoticeLink = page.locator("#legalGuaranteeNoticeModal a");
7365
+ this.lineItemGaranLabel = page.locator(".line-item-garan-label");
7334
7366
  }
7335
7367
  url() {
7336
7368
  return "checkout/confirm";
@@ -7671,7 +7703,7 @@ class AccountOrder extends BaseAccount {
7671
7703
  this.creditItem = page.locator(`.line-item:has-text("${translate("storefront:account:orders.creditItem")}")`);
7672
7704
  this.noOrdersAlert = page.locator(".alert-warning");
7673
7705
  }
7674
- async getOrderByOrderNumber(orderNumber) {
7706
+ async getOrderByOrderNumber(orderNumber, productNumber) {
7675
7707
  const orderItem = this.page.getByRole("listitem").getByLabel(`${translate("storefront:account:orders.orderNumber")} ${orderNumber}`);
7676
7708
  const orderStatus = orderItem.locator(".order-table-header-order-status");
7677
7709
  const orderStatusLink = orderStatus.getByRole("link");
@@ -7691,7 +7723,7 @@ class AccountOrder extends BaseAccount {
7691
7723
  const taxPrice = orderItem.locator(`dt:text-matches(${JSON.stringify(this.buildTaxPricePattern())}) + dd`);
7692
7724
  const shippingCosts = orderItem.locator(`dt:text-matches('${translate("storefront:account:orders.shippingCosts")}') + dd`);
7693
7725
  const totalGross = orderItem.locator(`dt:text-matches('${translate("storefront:account:orders.totalGross")}') + dd`);
7694
- return {
7726
+ const locators = {
7695
7727
  orderStatus,
7696
7728
  orderStatusLink,
7697
7729
  orderHeading,
@@ -7709,6 +7741,14 @@ class AccountOrder extends BaseAccount {
7709
7741
  shippingCosts,
7710
7742
  totalGross
7711
7743
  };
7744
+ if (productNumber) {
7745
+ const lineItem = orderItem.locator(".line-item-product", { hasText: productNumber });
7746
+ locators.lineItem = lineItem;
7747
+ locators.productNameLabel = lineItem.locator(".line-item-label");
7748
+ locators.productNumberLabel = lineItem.locator(".line-item-product-number");
7749
+ locators.lineItemGaranLabel = lineItem.locator(".line-item-garan-label");
7750
+ }
7751
+ return locators;
7712
7752
  }
7713
7753
  url() {
7714
7754
  return "account/order";
@@ -10850,7 +10890,7 @@ class ListingPageLayoutDetail {
10850
10890
  navigatorButton;
10851
10891
  layoutAssignmentButton;
10852
10892
  page;
10853
- constructor(page) {
10893
+ constructor(page, instanceMeta) {
10854
10894
  this.page = page;
10855
10895
  this.addSectionButton = page.locator(".sw-cms-stage-add-section__button");
10856
10896
  this.sectionSelectionField = page.locator(".sw-cms-stage-section-selection");
@@ -10862,10 +10902,19 @@ class ListingPageLayoutDetail {
10862
10902
  this.loaderButton = page.locator(".mt-button__loader");
10863
10903
  this.productListingBlock = page.locator(".sw-cms-block-product-listing");
10864
10904
  this.sidebarTitle = page.locator(".sw-sidebar-item__title");
10865
- this.settingsButton = page.locator(`button[title="${translate("administration:layout:detail.settings")}"]`);
10866
- this.blocksButton = page.locator(`button[title="${translate("administration:layout:detail.blocks")}"]`);
10867
- this.navigatorButton = page.locator(`button[title="${translate("administration:layout:detail.navigator")}"]`);
10868
- this.layoutAssignmentButton = page.locator(`button[title="${translate("administration:layout:detail.layoutAssignment")}"]`);
10905
+ if (satisfies(instanceMeta.version, "<6.7.13.0")) {
10906
+ this.settingsButton = page.locator(`button[title="${translate("administration:layout:detail.settings")}"]`);
10907
+ this.blocksButton = page.locator(`button[title="${translate("administration:layout:detail.blocks")}"]`);
10908
+ this.navigatorButton = page.locator(`button[title="${translate("administration:layout:detail.navigator")}"]`);
10909
+ this.layoutAssignmentButton = page.locator(`button[title="${translate("administration:layout:detail.layoutAssignment")}"]`);
10910
+ } else {
10911
+ this.settingsButton = page.getByLabel(translate("administration:layout:detail.settings"), { exact: true });
10912
+ this.blocksButton = page.getByLabel(translate("administration:layout:detail.blocks"), { exact: true });
10913
+ this.navigatorButton = page.getByLabel(translate("administration:layout:detail.navigator"), { exact: true });
10914
+ this.layoutAssignmentButton = page.getByLabel(translate("administration:layout:detail.layoutAssignment"), {
10915
+ exact: true
10916
+ });
10917
+ }
10869
10918
  }
10870
10919
  url(layoutId) {
10871
10920
  return `#/sw/cms/detail/${layoutId}`;
@@ -11207,8 +11256,8 @@ const test$6 = test$e.extend({
11207
11256
  AdminLayoutListing: async ({ AdminPage }, use) => {
11208
11257
  await use(new LayoutListing(AdminPage));
11209
11258
  },
11210
- AdminListingPageLayoutDetail: async ({ AdminPage }, use) => {
11211
- await use(new ListingPageLayoutDetail(AdminPage));
11259
+ AdminListingPageLayoutDetail: async ({ AdminPage, InstanceMeta }, use) => {
11260
+ await use(new ListingPageLayoutDetail(AdminPage, InstanceMeta));
11212
11261
  },
11213
11262
  AdminLayoutCreate: async ({ AdminPage }, use) => {
11214
11263
  await use(new LayoutCreate(AdminPage));
@@ -12499,6 +12548,22 @@ const ConfirmTermsAndConditions = test$e.extend({
12499
12548
  };
12500
12549
  };
12501
12550
  await use(task);
12551
+ },
12552
+ /**
12553
+ * TOS acceptance when `core.cart.showLegalGuaranteeNotice` is enabled.
12554
+ * The accessible name changes, so interaction uses the stable #tos input.
12555
+ */
12556
+ ConfirmTermsAndConditionsWithLegalGuaranteeRights: async ({ ShopCustomer, StorefrontCheckoutConfirm }, use) => {
12557
+ const task = () => {
12558
+ return async function ConfirmTermsAndConditionsWithLegalGuaranteeRights() {
12559
+ await ShopCustomer.expects(StorefrontCheckoutConfirm.termsAndConditionsWithLegalGuaranteeRightsLabel).toBeVisible();
12560
+ const tosCheckbox = StorefrontCheckoutConfirm.termsAndConditionsWithLegalGuaranteeRightsCheckbox;
12561
+ await ShopCustomer.expects(tosCheckbox).toBeVisible();
12562
+ await tosCheckbox.check();
12563
+ await ShopCustomer.expects(tosCheckbox).toBeChecked();
12564
+ };
12565
+ };
12566
+ await use(task);
12502
12567
  }
12503
12568
  });
12504
12569
 
@@ -12674,12 +12739,12 @@ const AddProductToCartFromWishlist = test$e.extend({
12674
12739
  const task = (ProductData) => {
12675
12740
  return async function AddProductToCartFromWishlist2() {
12676
12741
  const listedItem = await StorefrontWishlist.getListingItemByProductName(ProductData.name);
12742
+ const expectedPrice = await listedItem.productPrice.innerText();
12677
12743
  await ShopCustomer.presses(listedItem.productAddToShoppingCart);
12678
12744
  await StorefrontWishlist.page.waitForResponse((response) => response.url().includes(`checkout/offcanvas`) && response.ok());
12679
12745
  await ShopCustomer.expects(StorefrontOffCanvasCart.itemCount).toBeVisible();
12680
12746
  const offcanvasItem = await StorefrontOffCanvasCart.getLineItemByProductNumber(ProductData.productNumber);
12681
12747
  const itemsPrice = await offcanvasItem.productTotalPriceValue.innerText();
12682
- const expectedPrice = await listedItem.productPrice.innerText();
12683
12748
  ShopCustomer.expects(itemsPrice).toBe(expectedPrice);
12684
12749
  };
12685
12750
  };
@@ -12726,6 +12791,22 @@ const SelectProductFilterOption = test$e.extend({
12726
12791
  }
12727
12792
  });
12728
12793
 
12794
+ const SelectProductReviewOption = test$e.extend({
12795
+ SelectProductReviewOption: async ({ ShopCustomer, StorefrontProductDetail }, use) => {
12796
+ const task = (optionName) => {
12797
+ return async function SelectProductReviewOption2() {
12798
+ const reviewOption = await StorefrontProductDetail.getReviewFilterRowOptionsByName(optionName);
12799
+ await ShopCustomer.expects(reviewOption.reviewFilterOptionCheckbox).toBeVisible();
12800
+ await ShopCustomer.presses(reviewOption.reviewFilterOptionCheckbox);
12801
+ await ShopCustomer.expects(StorefrontProductDetail.reviewTabLoadingIcon).toBeVisible();
12802
+ await StorefrontProductDetail.reviewTabLoadingIcon.waitFor({ state: "hidden" });
12803
+ await ShopCustomer.expects(reviewOption.reviewFilterOptionCheckbox).toBeVisible();
12804
+ };
12805
+ };
12806
+ await use(task);
12807
+ }
12808
+ });
12809
+
12729
12810
  const CheckVisibilityInHome = test$e.extend({
12730
12811
  CheckVisibilityInHome: async ({ ShopCustomer, StorefrontHome, TestDataService }, use) => {
12731
12812
  const task = (productName) => {
@@ -12774,6 +12855,7 @@ const test$3 = mergeTests(
12774
12855
  AddProductToCartFromWishlist,
12775
12856
  AddProductToWishlist,
12776
12857
  SelectProductFilterOption,
12858
+ SelectProductReviewOption,
12777
12859
  CheckVisibilityInHome
12778
12860
  );
12779
12861
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shopware-ag/acceptance-test-suite",
3
- "version": "12.15.0",
3
+ "version": "12.16.0",
4
4
  "description": "Shopware Acceptance Test Suite",
5
5
  "keywords": [
6
6
  "fixtures",