@shopware-ag/acceptance-test-suite 12.2.3 → 12.3.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
@@ -5706,7 +5706,8 @@ declare class Home implements PageObject {
5706
5706
  readonly productRatingButton: Locator;
5707
5707
  readonly productRatingList: Locator;
5708
5708
  readonly page: Page;
5709
- constructor(page: Page);
5709
+ readonly instanceMeta: HelperFixtureTypes['InstanceMeta'];
5710
+ constructor(page: Page, instanceMeta: HelperFixtureTypes['InstanceMeta']);
5710
5711
  getRatingItemLocatorByRating(rating: number): Promise<Locator>;
5711
5712
  getFilterItemByFilterName(filterName: string): Promise<Locator>;
5712
5713
  getFilterButtonByFilterName(filterName: string): Promise<Locator>;
@@ -6061,7 +6062,7 @@ declare class SearchSuggest extends Home implements PageObject {
6061
6062
  readonly searchResultTotal: Locator;
6062
6063
  readonly searchHeadline: Locator;
6063
6064
  readonly page: Page;
6064
- constructor(page: Page);
6065
+ constructor(page: Page, instanceMeta: HelperFixtureTypes['InstanceMeta']);
6065
6066
  getTotalSearchResultCount(): Promise<number>;
6066
6067
  url(searchTerm?: string): string;
6067
6068
  }
@@ -6173,7 +6174,7 @@ declare class Wishlist extends Home implements PageObject {
6173
6174
  readonly removeAlert: Locator;
6174
6175
  readonly emptyListing: Locator;
6175
6176
  readonly page: Page;
6176
- constructor(page: Page);
6177
+ constructor(page: Page, instanceMeta: HelperFixtureTypes['InstanceMeta']);
6177
6178
  getListingItemByProductName(productListingName: string): Promise<Record<string, Locator>>;
6178
6179
  url(): string;
6179
6180
  }
package/dist/index.d.ts CHANGED
@@ -5706,7 +5706,8 @@ declare class Home implements PageObject {
5706
5706
  readonly productRatingButton: Locator;
5707
5707
  readonly productRatingList: Locator;
5708
5708
  readonly page: Page;
5709
- constructor(page: Page);
5709
+ readonly instanceMeta: HelperFixtureTypes['InstanceMeta'];
5710
+ constructor(page: Page, instanceMeta: HelperFixtureTypes['InstanceMeta']);
5710
5711
  getRatingItemLocatorByRating(rating: number): Promise<Locator>;
5711
5712
  getFilterItemByFilterName(filterName: string): Promise<Locator>;
5712
5713
  getFilterButtonByFilterName(filterName: string): Promise<Locator>;
@@ -6061,7 +6062,7 @@ declare class SearchSuggest extends Home implements PageObject {
6061
6062
  readonly searchResultTotal: Locator;
6062
6063
  readonly searchHeadline: Locator;
6063
6064
  readonly page: Page;
6064
- constructor(page: Page);
6065
+ constructor(page: Page, instanceMeta: HelperFixtureTypes['InstanceMeta']);
6065
6066
  getTotalSearchResultCount(): Promise<number>;
6066
6067
  url(searchTerm?: string): string;
6067
6068
  }
@@ -6173,7 +6174,7 @@ declare class Wishlist extends Home implements PageObject {
6173
6174
  readonly removeAlert: Locator;
6174
6175
  readonly emptyListing: Locator;
6175
6176
  readonly page: Page;
6176
- constructor(page: Page);
6177
+ constructor(page: Page, instanceMeta: HelperFixtureTypes['InstanceMeta']);
6177
6178
  getListingItemByProductName(productListingName: string): Promise<Record<string, Locator>>;
6178
6179
  url(): string;
6179
6180
  }
package/dist/index.mjs CHANGED
@@ -6526,8 +6526,10 @@ class Home {
6526
6526
  productRatingButton;
6527
6527
  productRatingList;
6528
6528
  page;
6529
- constructor(page) {
6529
+ instanceMeta;
6530
+ constructor(page, instanceMeta) {
6530
6531
  this.page = page;
6532
+ this.instanceMeta = instanceMeta;
6531
6533
  this.categoryTitle = page.getByRole("heading", { level: 1 });
6532
6534
  this.accountMenuButton = page.getByLabel(translate("storefront:home:account.yourAccount"));
6533
6535
  this.closeGuestSessionButton = page.locator(".account-aside-btn");
@@ -6545,16 +6547,6 @@ class Home {
6545
6547
  this.consentCookiePermissionContent = page.locator(".cookie-permission-content");
6546
6548
  this.consentDialog = page.getByRole("dialog").filter({ hasText: translate("storefront:home:consent.cookiePreferences") });
6547
6549
  this.consentDialogCloseButton = this.consentDialog.getByRole("button", { name: translate("storefront:home:consent.close") });
6548
- this.consentDialogTechnicallyRequiredCheckbox = this.consentDialog.getByRole("checkbox", {
6549
- name: translate("storefront:home:consent.technicallyRequired"),
6550
- exact: true
6551
- });
6552
- this.consentDialogStatisticsCheckbox = this.consentDialog.getByRole("checkbox", {
6553
- name: translate("storefront:home:consent.statistics"),
6554
- exact: true
6555
- });
6556
- this.consentDialogMarketingdCheckbox = this.consentDialog.getByRole("checkbox", { name: translate("storefront:home:consent.marketing"), exact: true });
6557
- this.consentDialogMarketingCheckbox = this.consentDialog.getByRole("checkbox", { name: translate("storefront:home:consent.marketing"), exact: true });
6558
6550
  this.consentDialogSaveButton = this.consentDialog.getByRole("button", {
6559
6551
  name: translate("storefront:home:consent.save"),
6560
6552
  exact: true
@@ -6563,6 +6555,29 @@ class Home {
6563
6555
  name: translate("storefront:home:consent.acceptAllCookies"),
6564
6556
  exact: true
6565
6557
  });
6558
+ if (satisfies(instanceMeta.version, "<6.7.6.0")) {
6559
+ this.consentDialogTechnicallyRequiredCheckbox = this.consentDialog.getByRole("checkbox", {
6560
+ name: translate("storefront:home:consent.technicallyRequired"),
6561
+ exact: true
6562
+ });
6563
+ this.consentDialogStatisticsCheckbox = this.consentDialog.getByRole("checkbox", {
6564
+ name: translate("storefront:home:consent.statistics"),
6565
+ exact: true
6566
+ });
6567
+ this.consentDialogMarketingdCheckbox = this.consentDialog.getByRole("checkbox", { name: translate("storefront:home:consent.marketing"), exact: true });
6568
+ this.consentDialogMarketingCheckbox = this.consentDialog.getByRole("checkbox", { name: translate("storefront:home:consent.marketing"), exact: true });
6569
+ } else {
6570
+ this.consentDialogTechnicallyRequiredCheckbox = this.consentDialog.getByRole("switch", {
6571
+ name: translate("storefront:home:consent.technicallyRequired"),
6572
+ exact: true
6573
+ });
6574
+ this.consentDialogStatisticsCheckbox = this.consentDialog.getByRole("switch", {
6575
+ name: translate("storefront:home:consent.statistics"),
6576
+ exact: true
6577
+ });
6578
+ this.consentDialogMarketingdCheckbox = this.consentDialog.getByRole("switch", { name: translate("storefront:home:consent.marketing"), exact: true });
6579
+ this.consentDialogMarketingCheckbox = this.consentDialog.getByRole("switch", { name: translate("storefront:home:consent.marketing"), exact: true });
6580
+ }
6566
6581
  this.offcanvasBackdrop = page.locator(".offcanvas-backdrop");
6567
6582
  this.mainNavigationLink = page.locator(".main-navigation-link-text");
6568
6583
  this.contactFormLink = this.page.getByRole("listitem").getByTitle(translate("storefront:contact:link.contactForm"), { exact: true });
@@ -7444,8 +7459,8 @@ class SearchSuggest extends Home {
7444
7459
  searchResultTotal;
7445
7460
  searchHeadline;
7446
7461
  page;
7447
- constructor(page) {
7448
- super(page);
7462
+ constructor(page, instanceMeta) {
7463
+ super(page, instanceMeta);
7449
7464
  this.page = page;
7450
7465
  this.searchSuggestLineItemImages = page.locator(".search-suggest-product-image-container");
7451
7466
  this.searchInput = page.locator(".header-search-input");
@@ -7611,7 +7626,7 @@ class ContactForm extends Home {
7611
7626
  greCaptchaProtectionInformation;
7612
7627
  instanceMeta;
7613
7628
  constructor(page, instanceMeta) {
7614
- super(page);
7629
+ super(page, instanceMeta);
7615
7630
  this.instanceMeta = instanceMeta;
7616
7631
  this.contactWrapper = this.page.locator(".card").filter({ has: this.page.getByText(translate("storefront:contact:title")) });
7617
7632
  this.formFieldFeedback = this.contactWrapper.locator(".form-field-feedback");
@@ -7652,8 +7667,8 @@ class Wishlist extends Home {
7652
7667
  removeAlert;
7653
7668
  emptyListing;
7654
7669
  page;
7655
- constructor(page) {
7656
- super(page);
7670
+ constructor(page, instanceMeta) {
7671
+ super(page, instanceMeta);
7657
7672
  this.page = page;
7658
7673
  this.wishListHeader = page.locator(".wishlist-headline");
7659
7674
  this.removeAlert = page.locator(".alert-success");
@@ -7753,8 +7768,8 @@ const StorefrontPageObjects = {
7753
7768
  Header
7754
7769
  };
7755
7770
  const test$7 = test$e.extend({
7756
- StorefrontHome: async ({ StorefrontPage }, use) => {
7757
- await use(new Home(StorefrontPage));
7771
+ StorefrontHome: async ({ StorefrontPage, InstanceMeta }, use) => {
7772
+ await use(new Home(StorefrontPage, InstanceMeta));
7758
7773
  },
7759
7774
  StorefrontProductDetail: async ({ StorefrontPage }, use) => {
7760
7775
  await use(new ProductDetail$1(StorefrontPage));
@@ -7804,8 +7819,8 @@ const test$7 = test$e.extend({
7804
7819
  StorefrontSearch: async ({ StorefrontPage }, use) => {
7805
7820
  await use(new Search(StorefrontPage));
7806
7821
  },
7807
- StorefrontSearchSuggest: async ({ StorefrontPage }, use) => {
7808
- await use(new SearchSuggest(StorefrontPage));
7822
+ StorefrontSearchSuggest: async ({ StorefrontPage, InstanceMeta }, use) => {
7823
+ await use(new SearchSuggest(StorefrontPage, InstanceMeta));
7809
7824
  },
7810
7825
  StorefrontCustomRegister: async ({ StorefrontPage }, use) => {
7811
7826
  await use(new CustomRegister(StorefrontPage));
@@ -7819,8 +7834,8 @@ const test$7 = test$e.extend({
7819
7834
  StorefrontContactForm: async ({ StorefrontPage, InstanceMeta }, use) => {
7820
7835
  await use(new ContactForm(StorefrontPage, InstanceMeta));
7821
7836
  },
7822
- StorefrontWishlist: async ({ StorefrontPage }, use) => {
7823
- await use(new Wishlist(StorefrontPage));
7837
+ StorefrontWishlist: async ({ StorefrontPage, InstanceMeta }, use) => {
7838
+ await use(new Wishlist(StorefrontPage, InstanceMeta));
7824
7839
  },
7825
7840
  StorefrontFooter: async ({ StorefrontPage }, use) => {
7826
7841
  await use(new Footer(StorefrontPage));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shopware-ag/acceptance-test-suite",
3
- "version": "12.2.3",
3
+ "version": "12.3.0",
4
4
  "description": "Shopware Acceptance Test Suite",
5
5
  "author": "shopware AG",
6
6
  "license": "MIT",