@shopware-ag/acceptance-test-suite 12.15.0 → 12.15.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 +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.mjs +17 -8
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -6274,7 +6274,7 @@ declare class ListingPageLayoutDetail implements PageObject {
|
|
|
6274
6274
|
readonly navigatorButton: Locator;
|
|
6275
6275
|
readonly layoutAssignmentButton: Locator;
|
|
6276
6276
|
readonly page: Page;
|
|
6277
|
-
constructor(page: Page);
|
|
6277
|
+
constructor(page: Page, instanceMeta: HelperFixtureTypes["InstanceMeta"]);
|
|
6278
6278
|
url(layoutId: string): string;
|
|
6279
6279
|
}
|
|
6280
6280
|
|
package/dist/index.d.ts
CHANGED
|
@@ -6274,7 +6274,7 @@ declare class ListingPageLayoutDetail implements PageObject {
|
|
|
6274
6274
|
readonly navigatorButton: Locator;
|
|
6275
6275
|
readonly layoutAssignmentButton: Locator;
|
|
6276
6276
|
readonly page: Page;
|
|
6277
|
-
constructor(page: Page);
|
|
6277
|
+
constructor(page: Page, instanceMeta: HelperFixtureTypes["InstanceMeta"]);
|
|
6278
6278
|
url(layoutId: string): string;
|
|
6279
6279
|
}
|
|
6280
6280
|
|
package/dist/index.mjs
CHANGED
|
@@ -10850,7 +10850,7 @@ class ListingPageLayoutDetail {
|
|
|
10850
10850
|
navigatorButton;
|
|
10851
10851
|
layoutAssignmentButton;
|
|
10852
10852
|
page;
|
|
10853
|
-
constructor(page) {
|
|
10853
|
+
constructor(page, instanceMeta) {
|
|
10854
10854
|
this.page = page;
|
|
10855
10855
|
this.addSectionButton = page.locator(".sw-cms-stage-add-section__button");
|
|
10856
10856
|
this.sectionSelectionField = page.locator(".sw-cms-stage-section-selection");
|
|
@@ -10862,10 +10862,19 @@ class ListingPageLayoutDetail {
|
|
|
10862
10862
|
this.loaderButton = page.locator(".mt-button__loader");
|
|
10863
10863
|
this.productListingBlock = page.locator(".sw-cms-block-product-listing");
|
|
10864
10864
|
this.sidebarTitle = page.locator(".sw-sidebar-item__title");
|
|
10865
|
-
|
|
10866
|
-
|
|
10867
|
-
|
|
10868
|
-
|
|
10865
|
+
if (satisfies(instanceMeta.version, "<6.7.13.0")) {
|
|
10866
|
+
this.settingsButton = page.locator(`button[title="${translate("administration:layout:detail.settings")}"]`);
|
|
10867
|
+
this.blocksButton = page.locator(`button[title="${translate("administration:layout:detail.blocks")}"]`);
|
|
10868
|
+
this.navigatorButton = page.locator(`button[title="${translate("administration:layout:detail.navigator")}"]`);
|
|
10869
|
+
this.layoutAssignmentButton = page.locator(`button[title="${translate("administration:layout:detail.layoutAssignment")}"]`);
|
|
10870
|
+
} else {
|
|
10871
|
+
this.settingsButton = page.getByLabel(translate("administration:layout:detail.settings"), { exact: true });
|
|
10872
|
+
this.blocksButton = page.getByLabel(translate("administration:layout:detail.blocks"), { exact: true });
|
|
10873
|
+
this.navigatorButton = page.getByLabel(translate("administration:layout:detail.navigator"), { exact: true });
|
|
10874
|
+
this.layoutAssignmentButton = page.getByLabel(translate("administration:layout:detail.layoutAssignment"), {
|
|
10875
|
+
exact: true
|
|
10876
|
+
});
|
|
10877
|
+
}
|
|
10869
10878
|
}
|
|
10870
10879
|
url(layoutId) {
|
|
10871
10880
|
return `#/sw/cms/detail/${layoutId}`;
|
|
@@ -11207,8 +11216,8 @@ const test$6 = test$e.extend({
|
|
|
11207
11216
|
AdminLayoutListing: async ({ AdminPage }, use) => {
|
|
11208
11217
|
await use(new LayoutListing(AdminPage));
|
|
11209
11218
|
},
|
|
11210
|
-
AdminListingPageLayoutDetail: async ({ AdminPage }, use) => {
|
|
11211
|
-
await use(new ListingPageLayoutDetail(AdminPage));
|
|
11219
|
+
AdminListingPageLayoutDetail: async ({ AdminPage, InstanceMeta }, use) => {
|
|
11220
|
+
await use(new ListingPageLayoutDetail(AdminPage, InstanceMeta));
|
|
11212
11221
|
},
|
|
11213
11222
|
AdminLayoutCreate: async ({ AdminPage }, use) => {
|
|
11214
11223
|
await use(new LayoutCreate(AdminPage));
|
|
@@ -12674,12 +12683,12 @@ const AddProductToCartFromWishlist = test$e.extend({
|
|
|
12674
12683
|
const task = (ProductData) => {
|
|
12675
12684
|
return async function AddProductToCartFromWishlist2() {
|
|
12676
12685
|
const listedItem = await StorefrontWishlist.getListingItemByProductName(ProductData.name);
|
|
12686
|
+
const expectedPrice = await listedItem.productPrice.innerText();
|
|
12677
12687
|
await ShopCustomer.presses(listedItem.productAddToShoppingCart);
|
|
12678
12688
|
await StorefrontWishlist.page.waitForResponse((response) => response.url().includes(`checkout/offcanvas`) && response.ok());
|
|
12679
12689
|
await ShopCustomer.expects(StorefrontOffCanvasCart.itemCount).toBeVisible();
|
|
12680
12690
|
const offcanvasItem = await StorefrontOffCanvasCart.getLineItemByProductNumber(ProductData.productNumber);
|
|
12681
12691
|
const itemsPrice = await offcanvasItem.productTotalPriceValue.innerText();
|
|
12682
|
-
const expectedPrice = await listedItem.productPrice.innerText();
|
|
12683
12692
|
ShopCustomer.expects(itemsPrice).toBe(expectedPrice);
|
|
12684
12693
|
};
|
|
12685
12694
|
};
|