|
12 | 12 | <annotations> |
13 | 13 | <features value="Msrp"/> |
14 | 14 | <stories value="Minimum advertised price"/> |
15 | | - <title value="Add simple product with MAP to cart from popup on category page"/> |
16 | | - <description value="Check that simple product with MAP is successfully added to cart from popup on category page"/> |
| 15 | + <title value="Add simple product with minimum advertised price to cart from popup on category page"/> |
| 16 | + <description value="Check that simple product with minimum advertised price is successfully added to cart from popup on category page"/> |
17 | 17 | <severity value="MAJOR"/> |
18 | 18 | <testCaseId value="MC-40419"/> |
19 | 19 | <useCaseId value="MC-35640"/> |
20 | | - <group value="Msrp"/> |
| 20 | + <group value="msrp"/> |
21 | 21 | </annotations> |
22 | 22 | <before> |
23 | 23 | <!-- Enable Minimum advertised Price --> |
|
51 | 51 | <!-- Grab and verify MAP price --> |
52 | 52 | <grabTextFrom selector="{{StorefrontMsrpCategorySection.mapPrice($createProduct.name$)}}" stepKey="grabMapPrice"/> |
53 | 53 | <assertEquals stepKey="assertMapPrice"> |
54 | | - <actualResult type="const">($grabMapPrice)</actualResult> |
| 54 | + <actualResult type="variable">grabMapPrice</actualResult> |
55 | 55 | <expectedResult type="string">${{ApiProductMsrp.value}}</expectedResult> |
56 | 56 | </assertEquals> |
57 | 57 |
|
58 | 58 | <!-- Open 'Click for price' popup and click 'Add to Cart' button --> |
59 | 59 | <click selector="{{StorefrontMsrpCategorySection.clickForPrice($createProduct.name$)}}" stepKey="clickForPrice"/> |
60 | | - <waitForElementVisible selector="{{StorefrontMsrpSection.popupAddToCartButton}}" stepKey="waitForAddToCartButton"/> |
61 | | - <click selector="{{StorefrontMsrpSection.popupAddToCartButton}}" stepKey="clickAddToCartButton"/> |
62 | | - <waitForElementVisible selector="{{StorefrontCategoryMainSection.SuccessMsg}}" stepKey="waitForSuccessMessage"/> |
63 | | - <see selector="{{StorefrontCategoryMainSection.SuccessMsg}}" userInput="You added $createProduct.name$ to your shopping cart." stepKey="assertSuccessMessage"/> |
| 60 | + <waitForElementVisible selector="{{StorefrontMsrpPopupSection.addToCartButton}}" stepKey="waitForAddToCartButton"/> |
| 61 | + <click selector="{{StorefrontMsrpPopupSection.addToCartButton}}" stepKey="clickAddToCartButton"/> |
| 62 | + <waitForElementVisible selector="{{StorefrontMessagesSection.success}}" stepKey="waitForSuccessMessage"/> |
| 63 | + <see selector="{{StorefrontMessagesSection.success}}" userInput="You added $createProduct.name$ to your shopping cart." stepKey="assertSuccessMessage"/> |
64 | 64 | </test> |
65 | 65 | </tests> |
0 commit comments