|
15 | 15 | <description value="Customer should be able to add one more bundle product to the cart and get the right price"/>
|
16 | 16 | <severity value="CRITICAL"/>
|
17 | 17 | <testCaseId value="MC-19727"/>
|
18 |
| - <group value="Bundle"/> |
| 18 | + <group value="bundle"/> |
19 | 19 | </annotations>
|
20 | 20 | <before>
|
21 |
| - <actionGroup ref="LoginAsAdmin" stepKey="login"/> |
22 | 21 | <createData entity="SimpleProduct2" stepKey="simpleProduct1"/>
|
23 | 22 | <createData entity="SimpleProduct2" stepKey="simpleProduct2"/>
|
| 23 | + <actionGroup ref="LoginAsAdmin" stepKey="login"/> |
24 | 24 | </before>
|
25 | 25 | <after>
|
| 26 | + <deleteData createDataKey="simpleProduct1" stepKey="deleteSimpleProduct1"/> |
| 27 | + <deleteData createDataKey="simpleProduct2" stepKey="deleteSimpleProduct2"/> |
26 | 28 | <actionGroup stepKey="deleteBundle" ref="deleteProductUsingProductGrid">
|
27 | 29 | <argument name="product" value="BundleProduct"/>
|
28 | 30 | </actionGroup>
|
29 |
| - <actionGroup ref="AdminClearFiltersActionGroup" stepKey="ClearFiltersAfter"/> |
30 |
| - <waitForPageLoad stepKey="waitForClearFilter"/> |
31 |
| - <deleteData createDataKey="simpleProduct1" stepKey="deleteSimpleProduct1"/> |
32 |
| - <deleteData createDataKey="simpleProduct2" stepKey="deleteSimpleProduct2"/> |
| 31 | + <actionGroup ref="AdminClearFiltersActionGroup" stepKey="clearFiltersAfter"/> |
| 32 | + <amOnPage url="{{AdminLogoutPage.url}}" stepKey="logout"/> |
33 | 33 | </after>
|
34 | 34 | <amOnPage url="{{AdminProductCreatePage.url(BundleProduct.set, BundleProduct.type)}}" stepKey="goToBundleProductCreationPage"/>
|
35 | 35 | <waitForPageLoad stepKey="waitForBundleProductCreatePageToLoad"/>
|
|
50 | 50 | <argument name="optionTitle" value="Option2"/>
|
51 | 51 | <argument name="inputType" value="checkbox"/>
|
52 | 52 | </actionGroup>
|
53 |
| - <actionGroup ref="saveProductForm" stepKey="saveProduct"/> |
| 53 | + <scrollToTopOfPage stepKey="scrollTopPageProduct"/> |
54 | 54 | <actionGroup ref="ProductSetAdvancedPricing" stepKey="addTierPriceProduct1">
|
55 |
| - <argument name="group" value="General"/> |
| 55 | + <argument name="group" value="ALL GROUPS"/> |
56 | 56 | <argument name="quantity" value="1"/>
|
57 | 57 | <argument name="price" value="Discount"/>
|
58 | 58 | <argument name="amount" value="50"/>
|
59 | 59 | </actionGroup>
|
60 |
| - <actionGroup ref="SignUpNewUserFromStorefrontActionGroup" stepKey="SignUpNewUser"> |
| 60 | + <actionGroup ref="SignUpNewUserFromStorefrontActionGroup" stepKey="signUpNewUser"> |
61 | 61 | <argument name="Customer" value="CustomerEntityOne"/>
|
62 | 62 | </actionGroup>
|
63 |
| - <amOnPage url="{{BundleProduct.sku}}.html" stepKey="goToStorefront"/> |
| 63 | + <amOnPage url="{{StorefrontProductPage.url(BundleProduct.urlKey)}}" stepKey="goToStorefront"/> |
64 | 64 | <waitForPageLoad stepKey="waitForStorefront"/>
|
65 |
| - <actionGroup ref="StorefrontSelectCustomizeAndAddToTheCartButtonActionGroup" stepKey="clickOnCustomizeAndAddtoCartButton"/> |
| 65 | + <actionGroup ref="StorefrontSelectCustomizeAndAddToTheCartButtonActionGroup" stepKey="clickOnCustomizeAndAddToCartButton"/> |
66 | 66 | <actionGroup ref="StorefrontEnterProductQuantityAndAddToTheCartActionGroup" stepKey="enterProductQuantityAndAddToTheCart">
|
67 | 67 | <argument name="quantity" value="1"/>
|
68 | 68 | </actionGroup>
|
69 | 69 | <actionGroup ref="StorefrontEnterProductQuantityAndAddToTheCartActionGroup" stepKey="enterProductQuantityAndAddToTheCartAgain">
|
70 | 70 | <argument name="quantity" value="1"/>
|
71 | 71 | </actionGroup>
|
72 |
| - <click stepKey="openMiniCart" selector="{{StorefrontMinicartSection.showCart}}"/> |
73 |
| - <waitForPageLoad stepKey="waitForMiniCart"/> |
74 |
| - <see stepKey="seeCartSubtotal" userInput="$246.00"/> |
| 72 | + <actionGroup ref="AssertSubTotalOnStorefrontMiniCartActionGroup" stepKey="assertSubTotalOnStorefrontMiniCart"> |
| 73 | + <argument name="subTotal" value="$246.00"/> |
| 74 | + </actionGroup> |
75 | 75 | </test>
|
76 | 76 | </tests>
|
0 commit comments