@shopware-ag/acceptance-test-suite 12.3.0 → 12.4.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 +2 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.mjs +18 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -6299,6 +6299,8 @@ declare const test: playwright_test.TestType<playwright_test.PlaywrightTestArgs
|
|
|
6299
6299
|
AddNewAddress: Task;
|
|
6300
6300
|
} & {
|
|
6301
6301
|
AddProductToCart: Task;
|
|
6302
|
+
} & {
|
|
6303
|
+
CloseTheOffCanvasCart: Task;
|
|
6302
6304
|
} & {
|
|
6303
6305
|
ChangeProductQuantity: Task;
|
|
6304
6306
|
} & {
|
package/dist/index.d.ts
CHANGED
|
@@ -6299,6 +6299,8 @@ declare const test: playwright_test.TestType<playwright_test.PlaywrightTestArgs
|
|
|
6299
6299
|
AddNewAddress: Task;
|
|
6300
6300
|
} & {
|
|
6301
6301
|
AddProductToCart: Task;
|
|
6302
|
+
} & {
|
|
6303
|
+
CloseTheOffCanvasCart: Task;
|
|
6302
6304
|
} & {
|
|
6303
6305
|
ChangeProductQuantity: Task;
|
|
6304
6306
|
} & {
|
package/dist/index.mjs
CHANGED
|
@@ -6750,7 +6750,8 @@ let ProductDetail$1 = class ProductDetail {
|
|
|
6750
6750
|
constructor(page) {
|
|
6751
6751
|
this.page = page;
|
|
6752
6752
|
this.addToCartButton = page.getByRole("button", { name: translate("storefront:product:addToCart") });
|
|
6753
|
-
|
|
6753
|
+
const form = page.locator(".buy-widget:not(.d-none)");
|
|
6754
|
+
this.quantitySelect = form.getByLabel(translate("storefront:product:quantity"), { exact: true });
|
|
6754
6755
|
this.productSingleImage = page.locator(".gallery-slider-single-image");
|
|
6755
6756
|
this.productSinglePrice = page.locator(".product-detail-price");
|
|
6756
6757
|
this.productPriceRangesRow = page.locator(".product-block-prices-row");
|
|
@@ -11749,6 +11750,21 @@ const ProceedFromProductToCheckout = test$e.extend({
|
|
|
11749
11750
|
}
|
|
11750
11751
|
});
|
|
11751
11752
|
|
|
11753
|
+
const CloseTheOffCanvasCart = test$e.extend({
|
|
11754
|
+
CloseTheOffCanvasCart: async ({
|
|
11755
|
+
ShopCustomer,
|
|
11756
|
+
StorefrontOffCanvasCart
|
|
11757
|
+
}, use) => {
|
|
11758
|
+
const task = () => {
|
|
11759
|
+
return async function CloseTheOffCanvasCart2() {
|
|
11760
|
+
await StorefrontOffCanvasCart.continueShoppingButton.scrollIntoViewIfNeeded();
|
|
11761
|
+
await ShopCustomer.presses(StorefrontOffCanvasCart.continueShoppingButton);
|
|
11762
|
+
};
|
|
11763
|
+
};
|
|
11764
|
+
await use(task);
|
|
11765
|
+
}
|
|
11766
|
+
});
|
|
11767
|
+
|
|
11752
11768
|
const ProceedFromCartToCheckout = test$e.extend({
|
|
11753
11769
|
ProceedFromCartToCheckout: async ({
|
|
11754
11770
|
ShopCustomer,
|
|
@@ -12046,6 +12062,7 @@ const test$3 = mergeTests(
|
|
|
12046
12062
|
ChangeStorefrontCurrency,
|
|
12047
12063
|
AddNewAddress,
|
|
12048
12064
|
AddProductToCart,
|
|
12065
|
+
CloseTheOffCanvasCart,
|
|
12049
12066
|
ChangeProductQuantity,
|
|
12050
12067
|
ProceedFromProductToCheckout,
|
|
12051
12068
|
ProceedFromCartToCheckout,
|