@shopware-ag/acceptance-test-suite 3.11.1 → 4.0.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 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.mjs +30 -6
- package/package.json +2 -2
package/dist/index.d.mts
CHANGED
|
@@ -872,7 +872,7 @@ declare class CheckoutCart implements PageObject {
|
|
|
872
872
|
readonly page: Page;
|
|
873
873
|
readonly headline: Locator;
|
|
874
874
|
readonly goToCheckoutButton: Locator;
|
|
875
|
-
readonly
|
|
875
|
+
readonly enterPromoInput: Locator;
|
|
876
876
|
readonly grandTotalPrice: Locator;
|
|
877
877
|
readonly emptyCartAlert: Locator;
|
|
878
878
|
readonly stockReachedAlert: Locator;
|
|
@@ -891,7 +891,7 @@ declare class OffCanvasCart implements PageObject {
|
|
|
891
891
|
readonly goToCheckoutButton: Locator;
|
|
892
892
|
readonly goToCartButton: Locator;
|
|
893
893
|
readonly continueShoppingButton: Locator;
|
|
894
|
-
readonly
|
|
894
|
+
readonly enterPromoInput: Locator;
|
|
895
895
|
readonly submitDiscountButton: Locator;
|
|
896
896
|
readonly subTotalPrice: Locator;
|
|
897
897
|
readonly shippingCosts: Locator;
|
package/dist/index.d.ts
CHANGED
|
@@ -872,7 +872,7 @@ declare class CheckoutCart implements PageObject {
|
|
|
872
872
|
readonly page: Page;
|
|
873
873
|
readonly headline: Locator;
|
|
874
874
|
readonly goToCheckoutButton: Locator;
|
|
875
|
-
readonly
|
|
875
|
+
readonly enterPromoInput: Locator;
|
|
876
876
|
readonly grandTotalPrice: Locator;
|
|
877
877
|
readonly emptyCartAlert: Locator;
|
|
878
878
|
readonly stockReachedAlert: Locator;
|
|
@@ -891,7 +891,7 @@ declare class OffCanvasCart implements PageObject {
|
|
|
891
891
|
readonly goToCheckoutButton: Locator;
|
|
892
892
|
readonly goToCartButton: Locator;
|
|
893
893
|
readonly continueShoppingButton: Locator;
|
|
894
|
-
readonly
|
|
894
|
+
readonly enterPromoInput: Locator;
|
|
895
895
|
readonly submitDiscountButton: Locator;
|
|
896
896
|
readonly subTotalPrice: Locator;
|
|
897
897
|
readonly shippingCosts: Locator;
|
package/dist/index.mjs
CHANGED
|
@@ -2384,7 +2384,31 @@ class TestDataService {
|
|
|
2384
2384
|
const basicCmsPage = {
|
|
2385
2385
|
id: cmsPageUuid,
|
|
2386
2386
|
type: cmsType,
|
|
2387
|
-
name: cmsPageName
|
|
2387
|
+
name: cmsPageName,
|
|
2388
|
+
sections: [
|
|
2389
|
+
{
|
|
2390
|
+
id: this.IdProvider.getIdPair().uuid,
|
|
2391
|
+
pageId: this.IdProvider.getIdPair().uuid,
|
|
2392
|
+
position: 0,
|
|
2393
|
+
type: "full_width",
|
|
2394
|
+
blocks: [
|
|
2395
|
+
{
|
|
2396
|
+
id: this.IdProvider.getIdPair().uuid,
|
|
2397
|
+
sectionId: this.IdProvider.getIdPair().uuid,
|
|
2398
|
+
type: "text",
|
|
2399
|
+
position: 0,
|
|
2400
|
+
slots: [
|
|
2401
|
+
{
|
|
2402
|
+
id: this.IdProvider.getIdPair().uuid,
|
|
2403
|
+
type: "text",
|
|
2404
|
+
blockId: this.IdProvider.getIdPair().uuid,
|
|
2405
|
+
slot: "content"
|
|
2406
|
+
}
|
|
2407
|
+
]
|
|
2408
|
+
}
|
|
2409
|
+
]
|
|
2410
|
+
}
|
|
2411
|
+
]
|
|
2388
2412
|
};
|
|
2389
2413
|
return Object.assign({}, basicCmsPage, overrides);
|
|
2390
2414
|
}
|
|
@@ -2581,7 +2605,7 @@ class CheckoutCart {
|
|
|
2581
2605
|
this.page = page;
|
|
2582
2606
|
__publicField$q(this, "headline");
|
|
2583
2607
|
__publicField$q(this, "goToCheckoutButton");
|
|
2584
|
-
__publicField$q(this, "
|
|
2608
|
+
__publicField$q(this, "enterPromoInput");
|
|
2585
2609
|
__publicField$q(this, "grandTotalPrice");
|
|
2586
2610
|
__publicField$q(this, "emptyCartAlert");
|
|
2587
2611
|
__publicField$q(this, "stockReachedAlert");
|
|
@@ -2590,13 +2614,13 @@ class CheckoutCart {
|
|
|
2590
2614
|
__publicField$q(this, "cartQuantityNumber");
|
|
2591
2615
|
this.headline = page.getByRole("heading", { name: "Shopping cart" });
|
|
2592
2616
|
this.goToCheckoutButton = page.getByRole("link", { name: "Go to checkout" });
|
|
2593
|
-
this.
|
|
2617
|
+
this.enterPromoInput = page.getByLabel("Promo code");
|
|
2594
2618
|
this.grandTotalPrice = page.locator('dt:has-text("Grand total") + dd:visible');
|
|
2595
2619
|
this.emptyCartAlert = page.getByText("Your shopping cart is empty.");
|
|
2596
2620
|
this.stockReachedAlert = page.getByText("only available 1 times");
|
|
2597
2621
|
this.cartLineItemImages = page.locator(".line-item-img-link");
|
|
2598
2622
|
this.unitPriceInfo = page.locator(".line-item-unit-price-value");
|
|
2599
|
-
this.cartQuantityNumber = page.
|
|
2623
|
+
this.cartQuantityNumber = page.locator('input[name="quantity"]');
|
|
2600
2624
|
}
|
|
2601
2625
|
url() {
|
|
2602
2626
|
return "checkout/cart";
|
|
@@ -2642,7 +2666,7 @@ class OffCanvasCart {
|
|
|
2642
2666
|
__publicField$p(this, "goToCheckoutButton");
|
|
2643
2667
|
__publicField$p(this, "goToCartButton");
|
|
2644
2668
|
__publicField$p(this, "continueShoppingButton");
|
|
2645
|
-
__publicField$p(this, "
|
|
2669
|
+
__publicField$p(this, "enterPromoInput");
|
|
2646
2670
|
__publicField$p(this, "submitDiscountButton");
|
|
2647
2671
|
__publicField$p(this, "subTotalPrice");
|
|
2648
2672
|
__publicField$p(this, "shippingCosts");
|
|
@@ -2652,7 +2676,7 @@ class OffCanvasCart {
|
|
|
2652
2676
|
this.goToCheckoutButton = page.getByRole("link", { name: "Go to checkout" });
|
|
2653
2677
|
this.goToCartButton = page.getByRole("link", { name: "Display shopping cart" });
|
|
2654
2678
|
this.continueShoppingButton = page.getByRole("button", { name: "Continue shopping" });
|
|
2655
|
-
this.
|
|
2679
|
+
this.enterPromoInput = page.getByPlaceholder("Enter promo code...");
|
|
2656
2680
|
this.submitDiscountButton = page.locator("#addPromotionOffcanvasCart");
|
|
2657
2681
|
this.subTotalPrice = page.locator('dt:has-text("Subtotal") + dd:visible');
|
|
2658
2682
|
this.shippingCosts = page.locator('dt:has-text("Shipping costs") + dd:visible');
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@shopware-ag/acceptance-test-suite",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "4.0.0",
|
|
4
4
|
"description": "Shopware Acceptance Test Suite",
|
|
5
5
|
"author": "shopware AG",
|
|
6
6
|
"license": "MIT",
|
|
@@ -54,4 +54,4 @@
|
|
|
54
54
|
"typescript": "5.4.5",
|
|
55
55
|
"unbuild": "2.0.0"
|
|
56
56
|
}
|
|
57
|
-
}
|
|
57
|
+
}
|