|
23 | 23 | <requiredEntity createDataKey="createCategory"/>
|
24 | 24 | <field key="price">100</field>
|
25 | 25 | </createData>
|
| 26 | + <actionGroup ref="AdminLoginActionGroup" stepKey="loginAsAdminInBefore"/> |
26 | 27 | </before>
|
27 | 28 | <after>
|
28 | 29 | <deleteData createDataKey="createSimpleProduct" stepKey="deleteSimpleProduct"/>
|
|
31 | 32 | <actionGroup ref="ResetProductGridToDefaultViewActionGroup" stepKey="resetGridToDefaultKeywordSearch"/>
|
32 | 33 | <actionGroup ref="AdminLogoutActionGroup" stepKey="logoutFromAdmin"/>
|
33 | 34 | </after>
|
34 |
| - <actionGroup ref="AdminLoginActionGroup" stepKey="loginAsAdmin"/> |
| 35 | + |
| 36 | + <comment userInput="Comment is added to preserve the step key for backward compatibility" stepKey="loginAsAdmin"/> |
35 | 37 | <actionGroup ref="SearchForProductOnBackendActionGroup" stepKey="searchForSimpleProduct">
|
36 | 38 | <argument name="product" value="$$createSimpleProduct$$"/>
|
37 | 39 | </actionGroup>
|
38 | 40 | <actionGroup ref="OpenEditProductOnBackendActionGroup" stepKey="openEditProduct1">
|
39 | 41 | <argument name="product" value="$$createSimpleProduct$$"/>
|
40 | 42 | </actionGroup>
|
41 |
| - <scrollToTopOfPage stepKey="scrollToTopOfPage"/> |
42 |
| - <click selector="{{AdminProductFormSection.advancedPricingLink}}" stepKey="clickOnAdvancedPricingButton"/> |
43 |
| - <waitForElement selector="{{AdminProductFormAdvancedPricingSection.customerGroupPriceAddButton}}" stepKey="waitForCustomerGroupPriceAddButton"/> |
44 |
| - <click selector="{{AdminProductFormAdvancedPricingSection.customerGroupPriceAddButton}}" stepKey="addCustomerGroupAllGroupsQty1PriceDiscountAndpercent"/> |
45 |
| - <fillField selector="{{AdminProductFormAdvancedPricingSection.productTierPriceQtyInput('0')}}" userInput="1" stepKey="fillProductTierPriceQtyInput"/> |
46 |
| - <selectOption selector="{{AdminProductFormAdvancedPricingSection.productTierPriceValueTypeSelect('0')}}" userInput="Discount" stepKey="selectProductTierPriceValueType"/> |
47 |
| - <fillField selector="{{AdminProductFormAdvancedPricingSection.productTierPricePercentageValuePriceInput('0')}}" userInput="0.1" stepKey="selectProductTierPricePriceInput"/> |
48 |
| - <click selector="{{AdminProductFormAdvancedPricingSection.doneButton}}" stepKey="clickDoneButton"/> |
| 43 | + |
| 44 | + <comment userInput="Comment is added to preserve the step key for backward compatibility" stepKey="scrollToTopOfPage"/> |
| 45 | + <actionGroup ref="AdminProductFormOpenAdvancedPricingDialogActionGroup" stepKey="clickOnAdvancedPricingButton"/> |
| 46 | + <comment userInput="Comment is added to preserve the step key for backward compatibility" stepKey="addCustomerGroupAllGroupsQty1PriceDiscountAndpercente"/> |
| 47 | + <comment userInput="Comment is added to preserve the step key for backward compatibility" stepKey="fillProductTierPriceQtyInput"/> |
| 48 | + <comment userInput="Comment is added to preserve the step key for backward compatibility" stepKey="selectProductTierPriceValueType"/> |
| 49 | + |
| 50 | + <actionGroup ref="AdminProductFormAdvancedPricingAddTierPriceActionGroup" stepKey="selectProductTierPricePriceInput"> |
| 51 | + <argument name="website" value="{{tierPrice01PercentDiscount.website}}"/> |
| 52 | + <argument name="customerGroup" value="{{tierPrice01PercentDiscount.customer_group}}"/> |
| 53 | + <argument name="quantity" value="{{tierPrice01PercentDiscount.qty}}"/> |
| 54 | + <argument name="priceType" value="Discount"/> |
| 55 | + <argument name="amount" value="{{tierPrice01PercentDiscount.price}}"/> |
| 56 | + </actionGroup> |
| 57 | + |
| 58 | + <actionGroup ref="AdminProductFormDoneAdvancedPricingDialogActionGroup" stepKey="clickDoneButton"/> |
49 | 59 | <actionGroup ref="SaveProductFormActionGroup" stepKey="saveProduct1"/>
|
50 |
| - <amOnPage url="{{StorefrontProductPage.url($$createSimpleProduct.sku$$)}}" stepKey="goProductPageOnStorefront"/> |
51 |
| - <waitForPageLoad time="30" stepKey="waitForPageLoad1"/> |
| 60 | + |
| 61 | + <actionGroup ref="StorefrontOpenProductPageActionGroup" stepKey="goProductPageOnStorefront"> |
| 62 | + <argument name="productUrl" value="$$createSimpleProduct.sku$$"/> |
| 63 | + </actionGroup> |
| 64 | + <comment userInput="Comment is added to preserve the step key for backward compatibility" stepKey="waitForPageLoad1"/> |
52 | 65 | <seeElement selector="{{StorefrontCategoryProductSection.productPriceFinal('99.90')}}" stepKey="assertProductFinalPriceProductPage"/>
|
53 | 66 | <seeElement selector="{{StorefrontCategoryProductSection.productPriceLabel('Regular Price')}}" stepKey="assertRegularPriceProductPage"/>
|
54 | 67 | <seeElement selector="{{StorefrontCategoryProductSection.productPriceOld('100')}}" stepKey="assertRegularPriceAmountProductPage"/>
|
55 |
| - <amOnPage url="{{StorefrontCategoryPage.url($$createCategory.name$$)}}" stepKey="navigateToCategoryPage"/> |
56 |
| - <waitForPageLoad time="30" stepKey="waitForPageLoad2"/> |
| 68 | + |
| 69 | + <actionGroup ref="StorefrontNavigateCategoryPageActionGroup" stepKey="navigateToCategoryPage"> |
| 70 | + <argument name="category" value="$createCategory$"/> |
| 71 | + </actionGroup> |
| 72 | + |
| 73 | + <comment userInput="Comment is added to preserve the step key for backward compatibility" stepKey="waitForPageLoad2"/> |
57 | 74 | <seeElement selector="{{StorefrontCategoryProductSection.productPriceFinal('99.90')}}" stepKey="assertProductFinalPriceCategoryPage"/>
|
58 | 75 | <seeElement selector="{{StorefrontCategoryProductSection.productPriceLabel('Regular Price')}}" stepKey="assertRegularPriceLabelCategoryPage"/>
|
59 | 76 | <seeElement selector="{{StorefrontCategoryProductSection.productPriceOld('100')}}" stepKey="assertRegularPriceAmountCategoryPage"/>
|
|
0 commit comments