|
25 | 25 | </createData> |
26 | 26 |
|
27 | 27 | <actionGroup ref="AdminLoginActionGroup" stepKey="loginAsAdmin"/> |
| 28 | + <actionGroup ref="AdminCatalogPriceRuleDeleteAllActionGroup" stepKey="deleteAllCatalogPriceRule"/> |
28 | 29 | </before> |
29 | 30 | <after> |
30 | 31 | <!-- Delete the simple product and category --> |
|
37 | 38 | <argument name="name" value="{{_defaultCatalogRule.name}}"/> |
38 | 39 | <argument name="searchInput" value="{{AdminSecondaryGridSection.catalogRuleIdentifierSearch}}"/> |
39 | 40 | </actionGroup> |
40 | | - <amOnPage url="{{AdminLogoutPage.url}}" stepKey="amOnLogoutPage"/> |
| 41 | + <actionGroup ref="AdminCatalogPriceRuleDeleteAllActionGroup" stepKey="deleteAllCatalogPriceRule"/> |
| 42 | + <actionGroup ref="AdminLogoutActionGroup" stepKey="amOnLogoutPage"/> |
41 | 43 | </after> |
42 | 44 |
|
43 | 45 | <!-- Create a catalog rule for the NOT LOGGED IN customer group --> |
44 | | - <actionGroup ref="NewCatalogPriceRuleByUIActionGroup" stepKey="createNewPriceRule"/> |
45 | | - <actionGroup ref="SelectNotLoggedInCustomerGroupActionGroup" stepKey="selectNotLoggedInCustomerGroup"/> |
46 | | - <click selector="{{AdminNewCatalogPriceRule.saveAndApply}}" stepKey="saveAndApply"/> |
47 | | - <see selector="{{AdminCategoryMessagesSection.SuccessMessage}}" userInput="You saved the rule." stepKey="assertSuccess"/> |
48 | | - |
49 | | - <!-- Perform reindex and flush cache --> |
50 | | - <magentoCLI command="indexer:reindex" stepKey="reindex"/> |
51 | | - <magentoCLI command="cache:flush" stepKey="flushCache"/> |
| 46 | + <actionGroup ref="AdminOpenNewCatalogPriceRuleFormPageActionGroup" stepKey="createNewPriceRule"/> |
| 47 | + <actionGroup ref="AdminCatalogPriceRuleFillMainInfoActionGroup" stepKey="fillMainInfoForPriceRule"> |
| 48 | + <argument name="groups" value="'NOT LOGGED IN'"/> |
| 49 | + </actionGroup> |
| 50 | + <actionGroup ref="AdminCatalogPriceRuleFillActionsActionGroup" stepKey="fillActionsPriceRule"/> |
| 51 | + <actionGroup ref="AdminCatalogPriceRuleSaveAndApplyActionGroup" stepKey="saveAndApplyFPriceRule"/> |
| 52 | + <!-- Perform reindex --> |
| 53 | + <magentoCLI command="indexer:reindex" arguments="catalogrule_rule" stepKey="reindexPriceRuleIndex"/> |
52 | 54 |
|
53 | 55 | <!-- As a NOT LOGGED IN user, go to the storefront category page and should see the discount --> |
54 | | - <amOnPage url="$$createCategory.name$$.html" stepKey="goToCategory1"/> |
| 56 | + <actionGroup ref="StorefrontNavigateCategoryPageActionGroup" stepKey="goToCategory1"> |
| 57 | + <argument name="category" value="$createCategory$"/> |
| 58 | + </actionGroup> |
55 | 59 | <see selector="{{StorefrontCategoryProductSection.ProductInfoByNumber('1')}}" userInput="$$createProduct.name$$" stepKey="seeProduct1"/> |
56 | 60 | <see selector="{{StorefrontCategoryProductSection.ProductInfoByNumber('1')}}" userInput="$110.70" stepKey="seeDiscountedPrice1"/> |
57 | 61 |
|
|
67 | 71 | </actionGroup> |
68 | 72 |
|
69 | 73 | <!-- As a logged in user, go to the storefront category page and should NOT see discount --> |
70 | | - <amOnPage url="$$createCategory.name$$.html" stepKey="goToCategory2"/> |
| 74 | + <actionGroup ref="StorefrontNavigateCategoryPageActionGroup" stepKey="goToCategory2"> |
| 75 | + <argument name="category" value="$createCategory$"/> |
| 76 | + </actionGroup> |
71 | 77 | <see selector="{{StorefrontCategoryProductSection.ProductInfoByNumber('1')}}" userInput="$$createProduct.name$$" stepKey="seeProduct2"/> |
72 | 78 | <see selector="{{StorefrontCategoryProductSection.ProductInfoByNumber('1')}}" userInput="$123.00" stepKey="seeDiscountedPrice2"/> |
73 | 79 | </test> |
|
0 commit comments