@shopware-ag/acceptance-test-suite 11.1.3 → 11.1.4

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
@@ -1092,6 +1092,7 @@ interface PageObject {
1092
1092
 
1093
1093
  declare class Home implements PageObject {
1094
1094
  readonly page: Page;
1095
+ readonly instanceMeta: HelperFixtureTypes['InstanceMeta'];
1095
1096
  readonly productImages: Locator;
1096
1097
  readonly productListItems: Locator;
1097
1098
  readonly languagesDropdown: Locator;
@@ -1111,7 +1112,7 @@ declare class Home implements PageObject {
1111
1112
  readonly consentDialogSaveButton: Locator;
1112
1113
  readonly consentCookieBannerContainer: Locator;
1113
1114
  readonly offcanvasBackdrop: Locator;
1114
- constructor(page: Page);
1115
+ constructor(page: Page, instanceMeta: HelperFixtureTypes['InstanceMeta']);
1115
1116
  getListingItemByProductId(productId: string): Promise<Record<string, Locator>>;
1116
1117
  url(): string;
1117
1118
  }
package/dist/index.d.ts CHANGED
@@ -1092,6 +1092,7 @@ interface PageObject {
1092
1092
 
1093
1093
  declare class Home implements PageObject {
1094
1094
  readonly page: Page;
1095
+ readonly instanceMeta: HelperFixtureTypes['InstanceMeta'];
1095
1096
  readonly productImages: Locator;
1096
1097
  readonly productListItems: Locator;
1097
1098
  readonly languagesDropdown: Locator;
@@ -1111,7 +1112,7 @@ declare class Home implements PageObject {
1111
1112
  readonly consentDialogSaveButton: Locator;
1112
1113
  readonly consentCookieBannerContainer: Locator;
1113
1114
  readonly offcanvasBackdrop: Locator;
1114
- constructor(page: Page);
1115
+ constructor(page: Page, instanceMeta: HelperFixtureTypes['InstanceMeta']);
1115
1116
  getListingItemByProductId(productId: string): Promise<Record<string, Locator>>;
1116
1117
  url(): string;
1117
1118
  }
package/dist/index.mjs CHANGED
@@ -3024,8 +3024,9 @@ var __publicField$O = (obj, key, value) => {
3024
3024
  return value;
3025
3025
  };
3026
3026
  class Home {
3027
- constructor(page) {
3027
+ constructor(page, instanceMeta) {
3028
3028
  this.page = page;
3029
+ this.instanceMeta = instanceMeta;
3029
3030
  __publicField$O(this, "productImages");
3030
3031
  __publicField$O(this, "productListItems");
3031
3032
  __publicField$O(this, "languagesDropdown");
@@ -3045,7 +3046,11 @@ class Home {
3045
3046
  __publicField$O(this, "consentDialogSaveButton");
3046
3047
  __publicField$O(this, "consentCookieBannerContainer");
3047
3048
  __publicField$O(this, "offcanvasBackdrop");
3048
- this.productImages = page.locator(".product-image-link");
3049
+ if (satisfies(instanceMeta.version, "<6.7")) {
3050
+ this.productImages = page.locator(".product-image-link");
3051
+ } else {
3052
+ this.productImages = page.locator(".product-image");
3053
+ }
3049
3054
  this.productListItems = page.getByRole("listitem");
3050
3055
  this.languagesDropdown = page.locator(".top-bar-language").filter({ has: page.getByRole("button") });
3051
3056
  this.languagesMenuOptions = page.locator(".top-bar-language").filter({ has: page.getByRole("list") });
@@ -3798,8 +3803,8 @@ const StorefrontPageObjects = {
3798
3803
  CheckoutOrderEdit
3799
3804
  };
3800
3805
  const test$6 = test$e.extend({
3801
- StorefrontHome: async ({ StorefrontPage }, use) => {
3802
- await use(new Home(StorefrontPage));
3806
+ StorefrontHome: async ({ StorefrontPage, InstanceMeta }, use) => {
3807
+ await use(new Home(StorefrontPage, InstanceMeta));
3803
3808
  },
3804
3809
  StorefrontProductDetail: async ({ StorefrontPage }, use) => {
3805
3810
  await use(new ProductDetail$1(StorefrontPage));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shopware-ag/acceptance-test-suite",
3
- "version": "11.1.3",
3
+ "version": "11.1.4",
4
4
  "description": "Shopware Acceptance Test Suite",
5
5
  "author": "shopware AG",
6
6
  "license": "MIT",