|
25 | 25 | <!-- Change indexers to "Update by Schedule" mode --> |
26 | 26 | <magentoCLI command="indexer:set-mode schedule" stepKey="setScheduleIndexer"/> |
27 | 27 |
|
| 28 | + <!-- Login as Admin --> |
28 | 29 | <actionGroup ref="AdminLoginActionGroup" stepKey="loginAsAdmin"/> |
29 | 30 |
|
| 31 | + <!-- Create website, store group, store to assign to new product --> |
30 | 32 | <actionGroup ref="AdminCreateWebsiteActionGroup" stepKey="createAdditionalWebsite"> |
31 | 33 | <argument name="newWebsiteName" value="{{customWebsite.name}}"/> |
32 | 34 | <argument name="websiteCode" value="{{customWebsite.code}}"/> |
|
41 | 43 | <argument name="customStore" value="customStore"/> |
42 | 44 | </actionGroup> |
43 | 45 |
|
44 | | - |
45 | 46 | <createData entity="_defaultCategory" stepKey="createCategory"/> |
46 | 47 | <createData entity="_defaultProduct" stepKey="productAssignedToCustomWebsite"> |
47 | 48 | <requiredEntity createDataKey="createCategory"/> |
48 | 49 | </createData> |
49 | 50 | <createData entity="SimpleProduct" stepKey="productAssignedToMainWebsite"> |
50 | 51 | <requiredEntity createDataKey="createCategory"/> |
51 | 52 | </createData> |
52 | | - |
53 | | - |
54 | 53 | <actionGroup ref="EnableWebUrlOptionsActionGroup" stepKey="addStoreCodeToUrls"/> |
55 | 54 | <comment userInput="Adding the comment to replace CliCacheFlushActionGroup action group ('cache:flush' command) for preserving Backward Compatibility" stepKey="flushCacheAfterEnableWebUrlOptions"/> |
56 | 55 | </before> |
|
68 | 67 | <actionGroup ref="AdminOpenCatalogProductPageActionGroup" stepKey="goToProductCatalogPage"/> |
69 | 68 | <actionGroup ref="ResetProductGridToDefaultViewActionGroup" stepKey="resetProductGridColumnsInitial"/> |
70 | 69 | <actionGroup ref="ResetWebUrlOptionsActionGroup" stepKey="resetUrlOption"/> |
71 | | - <magentoCron groups="index" stepKey="reindex"/> |
| 70 | + <magentoCLI command="indexer:reindex" stepKey="reindex"/> |
| 71 | + <magentoCLI command="cache:flush" stepKey="flushCacheCLI"/> |
72 | 72 | <comment userInput="Adding the comment to replace CliCacheFlushActionGroup action group ('cache:flush' command) for preserving Backward Compatibility" stepKey="flushCache"/> |
73 | 73 | <actionGroup ref="AdminLogoutActionGroup" stepKey="logout"/> |
74 | 74 | </after> |
75 | 75 |
|
| 76 | + <!--Switch to custom store storefront page--> |
| 77 | + <actionGroup ref="StorefrontSwitchStoreActionGroup" stepKey="switchToCustomStore"> |
| 78 | + <argument name="storeName" value="{{customStoreGroup.name}}"/> |
| 79 | + </actionGroup> |
| 80 | + |
76 | 81 | <actionGroup ref="AssertStorefrontProductAbsentOnCategoryPageActionGroup" stepKey="doNotSeeProductInCategoryPage"> |
77 | 82 | <argument name="categoryUrlKey" value="$$createCategory.name$$"/> |
78 | 83 | <argument name="productName" value="{{_defaultProduct.name}}"/> |
|
85 | 90 | <argument name="category" value="$$createCategory$$"/> |
86 | 91 | <argument name="product" value="_defaultProduct"/> |
87 | 92 | </actionGroup> |
88 | | - <actionGroup ref="AssertProductInStorefrontProductPageActionGroup" stepKey="assertProductInStorefront2"> |
89 | | - <argument name="product" value="_defaultProduct"/> |
90 | | - </actionGroup> |
91 | 93 | </test> |
92 | 94 | </tests> |
0 commit comments