@shopware-ag/acceptance-test-suite 11.12.0 → 11.12.2
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 +4 -1
- package/dist/index.d.ts +4 -1
- package/dist/index.mjs +22 -5
- package/package.json +1 -1
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
|
-
|
|
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
|
-
|
|
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
|
@@ -4598,7 +4598,11 @@ class ProductDetail {
|
|
|
4598
4598
|
this.activeForAllSalesChannelsToggle = page.locator(".sw-field--product-active").getByRole("checkbox");
|
|
4599
4599
|
this.tagsInput = page.locator(".sw-product-category-form__tag-field");
|
|
4600
4600
|
this.saleChannelsInput = page.locator(".sw-product-detail__select-visibility");
|
|
4601
|
-
|
|
4601
|
+
if (satisfies(instanceMeta.version, "<6.7")) {
|
|
4602
|
+
this.releaseDateInput = page.locator(".sw-product-detail-base__labelling-card").locator(".form-control");
|
|
4603
|
+
} else {
|
|
4604
|
+
this.releaseDateInput = page.locator(".dp__input_readonly");
|
|
4605
|
+
}
|
|
4602
4606
|
this.uploadMediaButton = page.getByRole("button", { name: "Upload file" });
|
|
4603
4607
|
this.coverImage = page.locator(".sw-product-media-form__cover-image");
|
|
4604
4608
|
this.productImage = page.locator(".sw-media-preview-v2__item");
|
|
@@ -5421,8 +5425,9 @@ var __publicField$e = (obj, key, value) => {
|
|
|
5421
5425
|
return value;
|
|
5422
5426
|
};
|
|
5423
5427
|
class Categories {
|
|
5424
|
-
constructor(page) {
|
|
5428
|
+
constructor(page, instanceMeta) {
|
|
5425
5429
|
this.page = page;
|
|
5430
|
+
this.instanceMeta = instanceMeta;
|
|
5426
5431
|
/**
|
|
5427
5432
|
* Landing pages
|
|
5428
5433
|
*/
|
|
@@ -5460,6 +5465,8 @@ class Categories {
|
|
|
5460
5465
|
__publicField$e(this, "filterResultPopoverTreeCheckboxItemList");
|
|
5461
5466
|
__publicField$e(this, "openInNewTabCheckbox");
|
|
5462
5467
|
__publicField$e(this, "popoverCategoryTree");
|
|
5468
|
+
__publicField$e(this, "categorySelectionListWrapper");
|
|
5469
|
+
__publicField$e(this, "productSelectionInput");
|
|
5463
5470
|
this.landingPageArea = page.locator(".sw-category-detail__landing-page-collapse");
|
|
5464
5471
|
this.landingPageHeadline = this.landingPageArea.getByRole("heading", { name: "Landing pages" });
|
|
5465
5472
|
this.addLandingPageButton = this.landingPageArea.getByText("Add landing page");
|
|
@@ -5476,14 +5483,21 @@ class Categories {
|
|
|
5476
5483
|
this.categoryTypeSelectionList = page.locator(".sw-select").filter({ hasText: "Category type" }).locator(".sw-select__selection");
|
|
5477
5484
|
this.linkTypeSelectionList = page.locator(".sw-select").filter({ hasText: "Link type" }).locator(".sw-select__selection");
|
|
5478
5485
|
this.entitySelectionList = page.locator(".sw-select").filter({ hasText: "Entity" }).locator(".sw-select__selection");
|
|
5479
|
-
|
|
5486
|
+
if (satisfies(instanceMeta.version, "<6.7")) {
|
|
5487
|
+
this.categorySelectionList = page.locator(".sw-category-link-settings__selection-category");
|
|
5488
|
+
} else {
|
|
5489
|
+
this.categorySelectionList = page.locator(".sw-category-tree__input-field");
|
|
5490
|
+
}
|
|
5491
|
+
this.categorySelectionListWrapper = page.locator(".sw-category-tree-field__main-wrapper");
|
|
5480
5492
|
this.productSelectionList = page.locator(".sw-category-link-settings__selection-product");
|
|
5493
|
+
this.productSelectionInput = this.productSelectionList.locator(".sw-entity-single-select__selection-input");
|
|
5481
5494
|
this.landingPageSelectionList = page.locator(".sw-category-link-settings__selection-landing-page");
|
|
5482
5495
|
this.filtersResultPopoverItemList = page.locator(".sw-select-result-list__content").getByRole("listitem");
|
|
5483
5496
|
this.popoverCategoryTree = page.locator(".sw-category-tree-field__results_popover");
|
|
5484
5497
|
this.filterResultPopoverTreeCheckboxItemList = this.popoverCategoryTree.locator(".sw-tree__content").locator(".sw-tree-item");
|
|
5485
5498
|
this.openInNewTabCheckbox = page.getByRole("checkbox", { name: "Open in new tab" });
|
|
5486
5499
|
this.loadingSpinner = page.locator(".sw-loader");
|
|
5500
|
+
this.loadingSpinner = page.locator(".mt-loader");
|
|
5487
5501
|
this.fadingBar = page.locator(".fade-leave-active");
|
|
5488
5502
|
}
|
|
5489
5503
|
async getLandingPageByName(landingPageName) {
|
|
@@ -6265,8 +6279,8 @@ const test$6 = test$f.extend({
|
|
|
6265
6279
|
AdminPaymentDetail: async ({ AdminPage }, use) => {
|
|
6266
6280
|
await use(new PaymentDetail(AdminPage));
|
|
6267
6281
|
},
|
|
6268
|
-
AdminCategories: async ({ AdminPage }, use) => {
|
|
6269
|
-
await use(new Categories(AdminPage));
|
|
6282
|
+
AdminCategories: async ({ AdminPage, InstanceMeta }, use) => {
|
|
6283
|
+
await use(new Categories(AdminPage, InstanceMeta));
|
|
6270
6284
|
},
|
|
6271
6285
|
AdminCategoryDetail: async ({ AdminPage, InstanceMeta }, use) => {
|
|
6272
6286
|
await use(new CategoryDetail(AdminPage, InstanceMeta));
|
|
@@ -6923,6 +6937,9 @@ const CreateLinkTypeCategory = test$f.extend({
|
|
|
6923
6937
|
break;
|
|
6924
6938
|
case "Product":
|
|
6925
6939
|
await AdminCategories.productSelectionList.click();
|
|
6940
|
+
if (categoryCustomizableLinkData.product != null) {
|
|
6941
|
+
await AdminCategories.productSelectionInput.fill(categoryCustomizableLinkData.product);
|
|
6942
|
+
}
|
|
6926
6943
|
await AdminCategories.filtersResultPopoverItemList.filter({ hasText: categoryCustomizableLinkData.product }).click();
|
|
6927
6944
|
break;
|
|
6928
6945
|
case "Landing page":
|