@shopware-ag/acceptance-test-suite 2.6.0 → 2.7.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 +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.mjs +17 -0
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -729,6 +729,7 @@ declare class ProductDetail$1 implements PageObject {
|
|
|
729
729
|
readonly addToCartButton: Locator;
|
|
730
730
|
readonly quantitySelect: Locator;
|
|
731
731
|
readonly productSingleImage: Locator;
|
|
732
|
+
readonly productSinglePrice: Locator;
|
|
732
733
|
readonly offCanvasCartTitle: Locator;
|
|
733
734
|
readonly offCanvasCart: Locator;
|
|
734
735
|
readonly offCanvasCartGoToCheckoutButton: Locator;
|
package/dist/index.d.ts
CHANGED
|
@@ -729,6 +729,7 @@ declare class ProductDetail$1 implements PageObject {
|
|
|
729
729
|
readonly addToCartButton: Locator;
|
|
730
730
|
readonly quantitySelect: Locator;
|
|
731
731
|
readonly productSingleImage: Locator;
|
|
732
|
+
readonly productSinglePrice: Locator;
|
|
732
733
|
readonly offCanvasCartTitle: Locator;
|
|
733
734
|
readonly offCanvasCart: Locator;
|
|
734
735
|
readonly offCanvasCartGoToCheckoutButton: Locator;
|
package/dist/index.mjs
CHANGED
|
@@ -796,6 +796,21 @@ const test$9 = test$d.extend({
|
|
|
796
796
|
}
|
|
797
797
|
await page.getByRole("button", { name: "Log in" }).click();
|
|
798
798
|
await Promise.all(jsLoadingPromises);
|
|
799
|
+
const originalReload = page.reload.bind(page);
|
|
800
|
+
page.reload = async () => {
|
|
801
|
+
const res = await originalReload();
|
|
802
|
+
await page.addStyleTag({
|
|
803
|
+
content: `
|
|
804
|
+
.sf-toolbar {
|
|
805
|
+
width: 0 !important;
|
|
806
|
+
height: 0 !important;
|
|
807
|
+
display: none !important;
|
|
808
|
+
pointer-events: none !important;
|
|
809
|
+
}
|
|
810
|
+
`.trim()
|
|
811
|
+
});
|
|
812
|
+
return res;
|
|
813
|
+
};
|
|
799
814
|
await use(page);
|
|
800
815
|
await page.close();
|
|
801
816
|
await context.close();
|
|
@@ -2139,6 +2154,7 @@ let ProductDetail$1 = class ProductDetail {
|
|
|
2139
2154
|
__publicField$m(this, "addToCartButton");
|
|
2140
2155
|
__publicField$m(this, "quantitySelect");
|
|
2141
2156
|
__publicField$m(this, "productSingleImage");
|
|
2157
|
+
__publicField$m(this, "productSinglePrice");
|
|
2142
2158
|
__publicField$m(this, "offCanvasCartTitle");
|
|
2143
2159
|
__publicField$m(this, "offCanvasCart");
|
|
2144
2160
|
__publicField$m(this, "offCanvasCartGoToCheckoutButton");
|
|
@@ -2148,6 +2164,7 @@ let ProductDetail$1 = class ProductDetail {
|
|
|
2148
2164
|
this.addToCartButton = page.getByRole("button", { name: "Add to shopping cart" });
|
|
2149
2165
|
this.quantitySelect = page.getByLabel("Quantity", { exact: true });
|
|
2150
2166
|
this.productSingleImage = page.locator(".gallery-slider-single-image");
|
|
2167
|
+
this.productSinglePrice = page.locator(".product-detail-price");
|
|
2151
2168
|
this.offCanvas = page.locator("offcanvas-body");
|
|
2152
2169
|
this.offCanvasCartTitle = page.getByText("Shopping cart", { exact: true });
|
|
2153
2170
|
this.offCanvasCart = page.getByRole("dialog");
|