|
13 | 13 | <description>Check MAP of configurable product options on store-front.</description> |
14 | 14 | </annotations> |
15 | 15 | <arguments> |
16 | | - <argument name="configProductUrlKey" type="string"/> |
17 | | - <argument name="productMap1" type="string"/> |
18 | | - <argument name="productMap2" type="string"/> |
19 | | - <argument name="productAttributeOptionValue2" type="string"/> |
20 | | - <argument name="productAttributeOptionValue1" type="string"/> |
| 16 | + <argument name="productMap" type="string"/> |
| 17 | + <argument name="productAttributeOptionValue" type="string"/> |
21 | 18 | </arguments> |
22 | 19 |
|
23 | | - <!--Go to store front and check map for products--> |
24 | | - <amOnPage url="{{StorefrontProductPage.url(configProductUrlKey)}}" stepKey="navigateToConfigProductPage"/> |
25 | | - <waitForPageLoad stepKey="waitForLoadConfigProductPage"/> |
26 | | - |
27 | | - <!--Check msrp for second child product--> |
28 | | - <selectOption selector="{{StorefrontProductInfoMainSection.productAttributeOptionsSelectButton}}" userInput="{{productAttributeOptionValue2}}" stepKey="selectSecondOption"/> |
| 20 | + <!--Check msrp for configurable product option --> |
| 21 | + <selectOption selector="{{StorefrontProductInfoMainSection.productAttributeOptionsSelectButton}}" userInput="{{productAttributeOptionValue}}" stepKey="selectOption"/> |
29 | 22 | <waitForElement selector="{{StorefrontProductInfoMainSection.mapPrice}}" stepKey="waitForLoad"/> |
30 | | - <grabTextFrom selector="{{StorefrontProductInfoMainSection.mapPrice}}" stepKey="grabSecondProductMapPrice"/> |
31 | | - <assertEquals stepKey="assertSecondProductMapPrice"> |
32 | | - <actualResult type="const">($grabSecondProductMapPrice)</actualResult> |
33 | | - <expectedResult type="string">${{productMap2}}</expectedResult> |
34 | | - </assertEquals> |
35 | | - <seeElement selector="{{StorefrontProductInfoMainSection.clickForPriceLink}}" stepKey="checkClickForPriceLinkForSecondProduct"/> |
36 | | - |
37 | | - <!--Check msrp for first child product--> |
38 | | - <selectOption selector="{{StorefrontProductInfoMainSection.productAttributeOptionsSelectButton}}" userInput="{{productAttributeOptionValue1}}" stepKey="selectFirstOption"/> |
39 | | - <waitForElement selector="{{StorefrontProductInfoMainSection.mapPrice}}" stepKey="waitForLoad1"/> |
40 | | - <grabTextFrom selector="{{StorefrontProductInfoMainSection.mapPrice}}" stepKey="grabFirstProductMapPrice"/> |
41 | | - <assertEquals stepKey="assertFirstProductMapPrice"> |
42 | | - <actualResult type="const">($grabFirstProductMapPrice)</actualResult> |
43 | | - <expectedResult type="string">${{productMap1}}</expectedResult> |
| 23 | + <grabTextFrom selector="{{StorefrontProductInfoMainSection.mapPrice}}" stepKey="grabProductMapPrice"/> |
| 24 | + <assertEquals stepKey="assertProductMapPrice"> |
| 25 | + <actualResult type="const">($grabProductMapPrice)</actualResult> |
| 26 | + <expectedResult type="string">${{productMap}}</expectedResult> |
44 | 27 | </assertEquals> |
45 | | - <seeElement selector="{{StorefrontProductInfoMainSection.clickForPriceLink}}" stepKey="checkClickForPriceLinkForFirstProduct"/> |
| 28 | + <seeElement selector="{{StorefrontProductInfoMainSection.clickForPriceLink}}" stepKey="checkClickForPriceLinkForProduct"/> |
46 | 29 | </actionGroup> |
47 | 30 | </actionGroups> |
0 commit comments