@shopware-ag/acceptance-test-suite 11.12.0 → 11.12.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.d.mts CHANGED
@@ -2073,6 +2073,7 @@ declare class LandingPageDetail implements PageObject {
2073
2073
 
2074
2074
  declare class Categories implements PageObject {
2075
2075
  readonly page: Page;
2076
+ readonly instanceMeta: HelperFixtureTypes['InstanceMeta'];
2076
2077
  /**
2077
2078
  * Landing pages
2078
2079
  */
@@ -2110,7 +2111,9 @@ declare class Categories implements PageObject {
2110
2111
  readonly filterResultPopoverTreeCheckboxItemList: Locator;
2111
2112
  readonly openInNewTabCheckbox: Locator;
2112
2113
  readonly popoverCategoryTree: Locator;
2113
- constructor(page: Page);
2114
+ readonly categorySelectionListWrapper: Locator;
2115
+ readonly productSelectionInput: Locator;
2116
+ constructor(page: Page, instanceMeta: HelperFixtureTypes['InstanceMeta']);
2114
2117
  getLandingPageByName(landingPageName: string): Promise<Locator>;
2115
2118
  getPopOverCategoryByName(categoryName: string): Promise<Locator>;
2116
2119
  getTreeItemContextButton(name: string): Locator;
package/dist/index.d.ts CHANGED
@@ -2073,6 +2073,7 @@ declare class LandingPageDetail implements PageObject {
2073
2073
 
2074
2074
  declare class Categories implements PageObject {
2075
2075
  readonly page: Page;
2076
+ readonly instanceMeta: HelperFixtureTypes['InstanceMeta'];
2076
2077
  /**
2077
2078
  * Landing pages
2078
2079
  */
@@ -2110,7 +2111,9 @@ declare class Categories implements PageObject {
2110
2111
  readonly filterResultPopoverTreeCheckboxItemList: Locator;
2111
2112
  readonly openInNewTabCheckbox: Locator;
2112
2113
  readonly popoverCategoryTree: Locator;
2113
- constructor(page: Page);
2114
+ readonly categorySelectionListWrapper: Locator;
2115
+ readonly productSelectionInput: Locator;
2116
+ constructor(page: Page, instanceMeta: HelperFixtureTypes['InstanceMeta']);
2114
2117
  getLandingPageByName(landingPageName: string): Promise<Locator>;
2115
2118
  getPopOverCategoryByName(categoryName: string): Promise<Locator>;
2116
2119
  getTreeItemContextButton(name: string): Locator;
package/dist/index.mjs CHANGED
@@ -5421,8 +5421,9 @@ var __publicField$e = (obj, key, value) => {
5421
5421
  return value;
5422
5422
  };
5423
5423
  class Categories {
5424
- constructor(page) {
5424
+ constructor(page, instanceMeta) {
5425
5425
  this.page = page;
5426
+ this.instanceMeta = instanceMeta;
5426
5427
  /**
5427
5428
  * Landing pages
5428
5429
  */
@@ -5460,6 +5461,8 @@ class Categories {
5460
5461
  __publicField$e(this, "filterResultPopoverTreeCheckboxItemList");
5461
5462
  __publicField$e(this, "openInNewTabCheckbox");
5462
5463
  __publicField$e(this, "popoverCategoryTree");
5464
+ __publicField$e(this, "categorySelectionListWrapper");
5465
+ __publicField$e(this, "productSelectionInput");
5463
5466
  this.landingPageArea = page.locator(".sw-category-detail__landing-page-collapse");
5464
5467
  this.landingPageHeadline = this.landingPageArea.getByRole("heading", { name: "Landing pages" });
5465
5468
  this.addLandingPageButton = this.landingPageArea.getByText("Add landing page");
@@ -5476,14 +5479,21 @@ class Categories {
5476
5479
  this.categoryTypeSelectionList = page.locator(".sw-select").filter({ hasText: "Category type" }).locator(".sw-select__selection");
5477
5480
  this.linkTypeSelectionList = page.locator(".sw-select").filter({ hasText: "Link type" }).locator(".sw-select__selection");
5478
5481
  this.entitySelectionList = page.locator(".sw-select").filter({ hasText: "Entity" }).locator(".sw-select__selection");
5479
- this.categorySelectionList = page.locator(".sw-category-link-settings__selection-category");
5482
+ if (satisfies(instanceMeta.version, "<6.7")) {
5483
+ this.categorySelectionList = page.locator(".sw-category-link-settings__selection-category");
5484
+ } else {
5485
+ this.categorySelectionList = page.locator(".sw-category-tree__input-field");
5486
+ }
5487
+ this.categorySelectionListWrapper = page.locator(".sw-category-tree-field__main-wrapper");
5480
5488
  this.productSelectionList = page.locator(".sw-category-link-settings__selection-product");
5489
+ this.productSelectionInput = this.productSelectionList.locator(".sw-entity-single-select__selection-input");
5481
5490
  this.landingPageSelectionList = page.locator(".sw-category-link-settings__selection-landing-page");
5482
5491
  this.filtersResultPopoverItemList = page.locator(".sw-select-result-list__content").getByRole("listitem");
5483
5492
  this.popoverCategoryTree = page.locator(".sw-category-tree-field__results_popover");
5484
5493
  this.filterResultPopoverTreeCheckboxItemList = this.popoverCategoryTree.locator(".sw-tree__content").locator(".sw-tree-item");
5485
5494
  this.openInNewTabCheckbox = page.getByRole("checkbox", { name: "Open in new tab" });
5486
5495
  this.loadingSpinner = page.locator(".sw-loader");
5496
+ this.loadingSpinner = page.locator(".mt-loader");
5487
5497
  this.fadingBar = page.locator(".fade-leave-active");
5488
5498
  }
5489
5499
  async getLandingPageByName(landingPageName) {
@@ -6265,8 +6275,8 @@ const test$6 = test$f.extend({
6265
6275
  AdminPaymentDetail: async ({ AdminPage }, use) => {
6266
6276
  await use(new PaymentDetail(AdminPage));
6267
6277
  },
6268
- AdminCategories: async ({ AdminPage }, use) => {
6269
- await use(new Categories(AdminPage));
6278
+ AdminCategories: async ({ AdminPage, InstanceMeta }, use) => {
6279
+ await use(new Categories(AdminPage, InstanceMeta));
6270
6280
  },
6271
6281
  AdminCategoryDetail: async ({ AdminPage, InstanceMeta }, use) => {
6272
6282
  await use(new CategoryDetail(AdminPage, InstanceMeta));
@@ -6923,6 +6933,9 @@ const CreateLinkTypeCategory = test$f.extend({
6923
6933
  break;
6924
6934
  case "Product":
6925
6935
  await AdminCategories.productSelectionList.click();
6936
+ if (categoryCustomizableLinkData.product != null) {
6937
+ await AdminCategories.productSelectionInput.fill(categoryCustomizableLinkData.product);
6938
+ }
6926
6939
  await AdminCategories.filtersResultPopoverItemList.filter({ hasText: categoryCustomizableLinkData.product }).click();
6927
6940
  break;
6928
6941
  case "Landing page":
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shopware-ag/acceptance-test-suite",
3
- "version": "11.12.0",
3
+ "version": "11.12.1",
4
4
  "description": "Shopware Acceptance Test Suite",
5
5
  "author": "shopware AG",
6
6
  "license": "MIT",