@shopware-ag/acceptance-test-suite 11.36.0 → 11.38.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
@@ -489,7 +489,8 @@ declare class TestDataService {
489
489
  *
490
490
  * @private
491
491
  */
492
- private shouldCleanUp;
492
+ private _shouldCleanUp;
493
+ get shouldCleanUp(): boolean;
493
494
  /**
494
495
  * Configuration of higher priority entities for the cleanup operation.
495
496
  * These entities will be deleted before others.
@@ -1961,6 +1962,10 @@ declare const BUNDLED_RESOURCES: {
1961
1962
  marketing: string;
1962
1963
  };
1963
1964
  };
1965
+ readonly 'storefront/header': {
1966
+ skipToContentLink: string;
1967
+ searchInputAriaLabel: string;
1968
+ };
1964
1969
  readonly 'storefront/home': {
1965
1970
  account: {
1966
1971
  yourAccount: string;
@@ -2866,6 +2871,10 @@ declare const BUNDLED_RESOURCES: {
2866
2871
  };
2867
2872
  title: string;
2868
2873
  };
2874
+ readonly 'storefront/header': {
2875
+ skipToContentLink: string;
2876
+ searchInputAriaLabel: string;
2877
+ };
2869
2878
  readonly 'storefront/home': {
2870
2879
  account: {
2871
2880
  yourAccount: string;
@@ -3761,6 +3770,10 @@ declare const baseNamespaces: {
3761
3770
  marketing: string;
3762
3771
  };
3763
3772
  };
3773
+ readonly header: {
3774
+ skipToContentLink: string;
3775
+ searchInputAriaLabel: string;
3776
+ };
3764
3777
  readonly home: {
3765
3778
  account: {
3766
3779
  yourAccount: string;
@@ -5432,12 +5445,16 @@ declare class ProductDetail implements PageObject {
5432
5445
  readonly offCanvasLineItemImages: Locator;
5433
5446
  readonly offCanvasSummaryTotalPrice: Locator;
5434
5447
  readonly offCanvas: Locator;
5448
+ readonly offCanvasLineItemLabel: (productName: string) => Locator;
5449
+ readonly offCanvasLineItemProductNumber: (productNumber: string) => Locator;
5450
+ readonly offCanvasLineItemDeliveryDate: Locator;
5435
5451
  readonly wishlistAddedButton: Locator;
5436
5452
  readonly wishlistNotAddedButton: Locator;
5437
5453
  readonly productDetailConfigurator: Locator;
5438
5454
  readonly productDetailConfiguratorGroupTitle: Locator;
5439
5455
  readonly productDetailConfiguratorOptionInputs: Locator;
5440
5456
  readonly productName: Locator;
5457
+ readonly productDescriptionTitle: Locator;
5441
5458
  readonly reviewsTab: Locator;
5442
5459
  readonly reviewTeaserButton: Locator;
5443
5460
  readonly reviewTeaserText: Locator;
@@ -5490,6 +5507,9 @@ declare class CheckoutCart implements PageObject {
5490
5507
  readonly cartLineItemImages: Locator;
5491
5508
  readonly unitPriceInfo: Locator;
5492
5509
  readonly cartQuantityNumber: Locator;
5510
+ readonly productNameLabel: (productName: string) => Locator;
5511
+ readonly productNumberLabel: (productNumber: string) => Locator;
5512
+ readonly productDeliveryDateLabel: Locator;
5493
5513
  readonly page: Page;
5494
5514
  constructor(page: Page);
5495
5515
  url(): string;
@@ -5877,6 +5897,8 @@ declare class Header implements PageObject {
5877
5897
  readonly languagesMenuOptions: Locator;
5878
5898
  readonly currenciesDropdown: Locator;
5879
5899
  readonly currenciesMenuOptions: Locator;
5900
+ readonly searchInput: Locator;
5901
+ readonly skipToMainContentLink: Locator;
5880
5902
  readonly wishlistIcon: Locator;
5881
5903
  readonly wishlistBasket: Locator;
5882
5904
  readonly page: Page;
package/dist/index.d.ts CHANGED
@@ -489,7 +489,8 @@ declare class TestDataService {
489
489
  *
490
490
  * @private
491
491
  */
492
- private shouldCleanUp;
492
+ private _shouldCleanUp;
493
+ get shouldCleanUp(): boolean;
493
494
  /**
494
495
  * Configuration of higher priority entities for the cleanup operation.
495
496
  * These entities will be deleted before others.
@@ -1961,6 +1962,10 @@ declare const BUNDLED_RESOURCES: {
1961
1962
  marketing: string;
1962
1963
  };
1963
1964
  };
1965
+ readonly 'storefront/header': {
1966
+ skipToContentLink: string;
1967
+ searchInputAriaLabel: string;
1968
+ };
1964
1969
  readonly 'storefront/home': {
1965
1970
  account: {
1966
1971
  yourAccount: string;
@@ -2866,6 +2871,10 @@ declare const BUNDLED_RESOURCES: {
2866
2871
  };
2867
2872
  title: string;
2868
2873
  };
2874
+ readonly 'storefront/header': {
2875
+ skipToContentLink: string;
2876
+ searchInputAriaLabel: string;
2877
+ };
2869
2878
  readonly 'storefront/home': {
2870
2879
  account: {
2871
2880
  yourAccount: string;
@@ -3761,6 +3770,10 @@ declare const baseNamespaces: {
3761
3770
  marketing: string;
3762
3771
  };
3763
3772
  };
3773
+ readonly header: {
3774
+ skipToContentLink: string;
3775
+ searchInputAriaLabel: string;
3776
+ };
3764
3777
  readonly home: {
3765
3778
  account: {
3766
3779
  yourAccount: string;
@@ -5432,12 +5445,16 @@ declare class ProductDetail implements PageObject {
5432
5445
  readonly offCanvasLineItemImages: Locator;
5433
5446
  readonly offCanvasSummaryTotalPrice: Locator;
5434
5447
  readonly offCanvas: Locator;
5448
+ readonly offCanvasLineItemLabel: (productName: string) => Locator;
5449
+ readonly offCanvasLineItemProductNumber: (productNumber: string) => Locator;
5450
+ readonly offCanvasLineItemDeliveryDate: Locator;
5435
5451
  readonly wishlistAddedButton: Locator;
5436
5452
  readonly wishlistNotAddedButton: Locator;
5437
5453
  readonly productDetailConfigurator: Locator;
5438
5454
  readonly productDetailConfiguratorGroupTitle: Locator;
5439
5455
  readonly productDetailConfiguratorOptionInputs: Locator;
5440
5456
  readonly productName: Locator;
5457
+ readonly productDescriptionTitle: Locator;
5441
5458
  readonly reviewsTab: Locator;
5442
5459
  readonly reviewTeaserButton: Locator;
5443
5460
  readonly reviewTeaserText: Locator;
@@ -5490,6 +5507,9 @@ declare class CheckoutCart implements PageObject {
5490
5507
  readonly cartLineItemImages: Locator;
5491
5508
  readonly unitPriceInfo: Locator;
5492
5509
  readonly cartQuantityNumber: Locator;
5510
+ readonly productNameLabel: (productName: string) => Locator;
5511
+ readonly productNumberLabel: (productNumber: string) => Locator;
5512
+ readonly productDeliveryDateLabel: Locator;
5493
5513
  readonly page: Page;
5494
5514
  constructor(page: Page);
5495
5515
  url(): string;
@@ -5877,6 +5897,8 @@ declare class Header implements PageObject {
5877
5897
  readonly languagesMenuOptions: Locator;
5878
5898
  readonly currenciesDropdown: Locator;
5879
5899
  readonly currenciesMenuOptions: Locator;
5900
+ readonly searchInput: Locator;
5901
+ readonly skipToMainContentLink: Locator;
5880
5902
  readonly wishlistIcon: Locator;
5881
5903
  readonly wishlistBasket: Locator;
5882
5904
  readonly page: Page;
package/dist/index.mjs CHANGED
@@ -1492,6 +1492,13 @@ const storefrontConsent = {
1492
1492
  cookie: cookie$1
1493
1493
  };
1494
1494
 
1495
+ const skipToContentLink$1 = "Skip to main content";
1496
+ const searchInputAriaLabel$1 = "Enter search term...";
1497
+ const storefrontHeader = {
1498
+ skipToContentLink: skipToContentLink$1,
1499
+ searchInputAriaLabel: searchInputAriaLabel$1
1500
+ };
1501
+
1495
1502
  const account$1 = {
1496
1503
  yourAccount: "Your account"
1497
1504
  };
@@ -2590,6 +2597,13 @@ const deStorefrontContact = {
2590
2597
  title: title$2
2591
2598
  };
2592
2599
 
2600
+ const skipToContentLink = "Zum Hauptinhalt springen";
2601
+ const searchInputAriaLabel = "Suchbegriff eingeben...";
2602
+ const deStorefrontHeader = {
2603
+ skipToContentLink: skipToContentLink,
2604
+ searchInputAriaLabel: searchInputAriaLabel
2605
+ };
2606
+
2593
2607
  const account = {
2594
2608
  yourAccount: "Ihr Konto"
2595
2609
  };
@@ -2849,6 +2863,7 @@ const BUNDLED_RESOURCES = {
2849
2863
  "storefront/navigation": storefrontNavigation,
2850
2864
  "storefront/contact": storefrontContact,
2851
2865
  "storefront/consent": storefrontConsent,
2866
+ "storefront/header": storefrontHeader,
2852
2867
  "storefront/home": storefrontHome,
2853
2868
  "storefront/login": storefrontLogin,
2854
2869
  "storefront/order": storefrontOrder,
@@ -2887,6 +2902,7 @@ const BUNDLED_RESOURCES = {
2887
2902
  "storefront/checkout": deStorefrontCheckout,
2888
2903
  "storefront/consent": deStorefrontConsent,
2889
2904
  "storefront/contact": deStorefrontContact,
2905
+ "storefront/header": deStorefrontHeader,
2890
2906
  "storefront/home": deStorefrontHome,
2891
2907
  "storefront/login": deStorefrontLogin,
2892
2908
  "storefront/navigation": deStorefrontNavigation,
@@ -2931,6 +2947,7 @@ const baseNamespaces = {
2931
2947
  navigation: storefrontNavigation,
2932
2948
  contact: storefrontContact,
2933
2949
  consent: storefrontConsent,
2950
+ header: storefrontHeader,
2934
2951
  home: storefrontHome,
2935
2952
  login: storefrontLogin,
2936
2953
  order: storefrontOrder,
@@ -3649,7 +3666,10 @@ class TestDataService {
3649
3666
  *
3650
3667
  * @private
3651
3668
  */
3652
- shouldCleanUp = true;
3669
+ _shouldCleanUp = true;
3670
+ get shouldCleanUp() {
3671
+ return this._shouldCleanUp;
3672
+ }
3653
3673
  /**
3654
3674
  * Configuration of higher priority entities for the cleanup operation.
3655
3675
  * These entities will be deleted before others.
@@ -5091,7 +5111,7 @@ class TestDataService {
5091
5111
  * @param shouldCleanUp - The config setting for the automated data clean up. Default is "true".
5092
5112
  */
5093
5113
  setCleanUp(shouldCleanUp = true) {
5094
- this.shouldCleanUp = shouldCleanUp;
5114
+ this._shouldCleanUp = shouldCleanUp;
5095
5115
  }
5096
5116
  /**
5097
5117
  * Will delete all entities created by the data service via sync API.
@@ -6226,7 +6246,7 @@ class Home {
6226
6246
  page;
6227
6247
  constructor(page) {
6228
6248
  this.page = page;
6229
- this.categoryTitle = page.locator(".cms-element-text h1");
6249
+ this.categoryTitle = page.getByRole("heading", { level: 1 });
6230
6250
  this.accountMenuButton = page.getByLabel(translate("storefront:home:account.yourAccount"));
6231
6251
  this.closeGuestSessionButton = page.locator(".account-aside-btn");
6232
6252
  this.productImages = page.locator(".product-image-wrapper");
@@ -6395,12 +6415,16 @@ let ProductDetail$1 = class ProductDetail {
6395
6415
  offCanvasLineItemImages;
6396
6416
  offCanvasSummaryTotalPrice;
6397
6417
  offCanvas;
6418
+ offCanvasLineItemLabel;
6419
+ offCanvasLineItemProductNumber;
6420
+ offCanvasLineItemDeliveryDate;
6398
6421
  wishlistAddedButton;
6399
6422
  wishlistNotAddedButton;
6400
6423
  productDetailConfigurator;
6401
6424
  productDetailConfiguratorGroupTitle;
6402
6425
  productDetailConfiguratorOptionInputs;
6403
6426
  productName;
6427
+ productDescriptionTitle;
6404
6428
  //Reviews Tab
6405
6429
  reviewsTab;
6406
6430
  reviewTeaserButton;
@@ -6442,12 +6466,16 @@ let ProductDetail$1 = class ProductDetail {
6442
6466
  this.offCanvasCartGoToCheckoutButton = page.getByRole("link", { name: translate("storefront:checkout:cart.goToCheckout") });
6443
6467
  this.offCanvasLineItemImages = page.locator(".line-item-img-link");
6444
6468
  this.offCanvasSummaryTotalPrice = page.locator(".offcanvas-summary").locator('dt:has-text("Subtotal") + dd');
6469
+ this.offCanvasLineItemLabel = (productName) => page.getByRole("link", { name: productName });
6470
+ this.offCanvasLineItemProductNumber = (productNumber) => page.getByText(productNumber);
6471
+ this.offCanvasLineItemDeliveryDate = page.locator(".line-item-delivery-date");
6445
6472
  this.wishlistAddedButton = page.locator(".product-wishlist-added");
6446
6473
  this.wishlistNotAddedButton = page.locator(".product-wishlist-not-added");
6447
6474
  this.productDetailConfigurator = page.locator(".product-detail-configurator");
6448
6475
  this.productDetailConfiguratorGroupTitle = page.locator(".product-detail-configurator-group-title");
6449
6476
  this.productDetailConfiguratorOptionInputs = page.locator(".product-detail-configurator-option-input");
6450
6477
  this.productName = page.locator(".product-detail-name");
6478
+ this.productDescriptionTitle = page.locator(".product-detail-description-title");
6451
6479
  this.productReviewRating = page.locator(".product-detail-reviews .product-review-rating");
6452
6480
  this.productReviewsLink = page.locator(".product-detail-reviews .product-detail-reviews-link");
6453
6481
  this.reviewsTab = this.page.getByRole("tab", { name: translate("storefront:product:review.tabTitle") });
@@ -6518,6 +6546,9 @@ class CheckoutCart {
6518
6546
  cartLineItemImages;
6519
6547
  unitPriceInfo;
6520
6548
  cartQuantityNumber;
6549
+ productNameLabel;
6550
+ productNumberLabel;
6551
+ productDeliveryDateLabel;
6521
6552
  page;
6522
6553
  constructor(page) {
6523
6554
  this.page = page;
@@ -6530,6 +6561,9 @@ class CheckoutCart {
6530
6561
  this.cartLineItemImages = page.locator(".line-item-img-link");
6531
6562
  this.unitPriceInfo = page.locator(".line-item-unit-price-value");
6532
6563
  this.cartQuantityNumber = page.locator('input[name="quantity"]');
6564
+ this.productNameLabel = (productName) => page.getByRole("link", { name: productName });
6565
+ this.productNumberLabel = (productNumber) => page.getByText(productNumber);
6566
+ this.productDeliveryDateLabel = page.locator(".line-item-delivery-date");
6533
6567
  }
6534
6568
  url() {
6535
6569
  return "checkout/cart";
@@ -7370,6 +7404,9 @@ class Header {
7370
7404
  languagesMenuOptions;
7371
7405
  currenciesDropdown;
7372
7406
  currenciesMenuOptions;
7407
+ searchInput;
7408
+ //skip links
7409
+ skipToMainContentLink;
7373
7410
  //wishlist
7374
7411
  wishlistIcon;
7375
7412
  wishlistBasket;
@@ -7381,6 +7418,8 @@ class Header {
7381
7418
  this.languagesMenuOptions = page.locator(".top-bar-language").filter({ has: page.getByRole("list") });
7382
7419
  this.currenciesDropdown = page.locator(".top-bar-currency").filter({ has: page.getByRole("button") });
7383
7420
  this.currenciesMenuOptions = page.locator(".top-bar-currency").filter({ has: page.getByRole("list") });
7421
+ this.searchInput = page.getByLabel(translate("storefront:header:searchInputAriaLabel"));
7422
+ this.skipToMainContentLink = page.getByRole("link", { name: translate("storefront:header:skipToContentLink"), exact: true });
7384
7423
  this.wishlistIcon = page.locator(".header-wishlist-icon");
7385
7424
  this.wishlistBasket = page.locator(".header-wishlist-badge");
7386
7425
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shopware-ag/acceptance-test-suite",
3
- "version": "11.36.0",
3
+ "version": "11.38.0",
4
4
  "description": "Shopware Acceptance Test Suite",
5
5
  "author": "shopware AG",
6
6
  "license": "MIT",