|
25 | 25 | <!-- Change indexers to "Update by Schedule" mode -->
|
26 | 26 | <magentoCLI command="indexer:set-mode" arguments="schedule" stepKey="setIndexerMode"/>
|
27 | 27 |
|
28 |
| - <createData entity="_defaultCategory" stepKey="createCategory"/> |
29 |
| - <createData entity="_defaultProduct" stepKey="productAssignedToCustomWebsite"> |
30 |
| - <requiredEntity createDataKey="createCategory"/> |
31 |
| - </createData> |
32 |
| - <createData entity="SimpleProduct" stepKey="productAssignedToMainWebsite"> |
33 |
| - <requiredEntity createDataKey="createCategory"/> |
34 |
| - </createData> |
35 |
| - |
36 | 28 | <actionGroup ref="AdminLoginActionGroup" stepKey="loginAsAdmin"/>
|
37 | 29 |
|
38 | 30 | <actionGroup ref="AdminCreateWebsiteActionGroup" stepKey="createAdditionalWebsite">
|
|
48 | 40 | <argument name="StoreGroup" value="customStoreGroup"/>
|
49 | 41 | <argument name="customStore" value="customStore"/>
|
50 | 42 | </actionGroup>
|
| 43 | + |
| 44 | + |
| 45 | + <createData entity="_defaultCategory" stepKey="createCategory"/> |
| 46 | + <createData entity="_defaultProduct" stepKey="productAssignedToCustomWebsite"> |
| 47 | + <requiredEntity createDataKey="createCategory"/> |
| 48 | + </createData> |
| 49 | + <createData entity="SimpleProduct" stepKey="productAssignedToMainWebsite"> |
| 50 | + <requiredEntity createDataKey="createCategory"/> |
| 51 | + </createData> |
| 52 | + |
| 53 | + |
51 | 54 | <actionGroup ref="EnableWebUrlOptionsActionGroup" stepKey="addStoreCodeToUrls"/>
|
52 | 55 | <comment userInput="Adding the comment to replace CliCacheFlushActionGroup action group ('cache:flush' command) for preserving Backward Compatibility" stepKey="flushCacheAfterEnableWebUrlOptions"/>
|
53 | 56 | </before>
|
|
70 | 73 | <actionGroup ref="AdminLogoutActionGroup" stepKey="logout"/>-->
|
71 | 74 | </after>
|
72 | 75 |
|
73 |
| - |
74 |
| - <!--<actionGroup ref="AssertProductInStorefrontCategoryPage" stepKey="assertProductInStorefront1"> |
75 |
| - <argument name="category" value="$$createPreReqCategory$$"/> |
76 |
| - <argument name="product" value="_defaultProduct"/> |
| 76 | + <actionGroup ref="AssertStorefrontProductAbsentOnCategoryPageActionGroup" stepKey="doNotSeeProductInCategoryPage"> |
| 77 | + <argument name="categoryUrlKey" value="$$createCategory.name$$"/> |
| 78 | + <argument name="productName" value="{{_defaultProduct.name}}"/> |
77 | 79 | </actionGroup>
|
78 |
| - <actionGroup ref="AssertProductInStorefrontProductPageActionGroup" stepKey="assertProductInStorefront2"> |
79 |
| - <argument name="product" value="_defaultProduct"/> |
80 |
| - </actionGroup>--> |
81 | 80 |
|
82 | 81 | <!-- Run cron -->
|
83 | 82 | <!--<magentoCron groups="index" stepKey="runCronIndex"/>-->
|
84 | 83 | <magentoCLI command="cron:run" stepKey="runCron"/>
|
85 | 84 |
|
86 | 85 | <actionGroup ref="AssertProductInStorefrontCategoryPage" stepKey="assertProductInStorefront1">
|
87 |
| - <argument name="category" value="$$createPreReqCategory$$"/> |
| 86 | + <argument name="category" value="$$createCategory$$"/> |
88 | 87 | <argument name="product" value="_defaultProduct"/>
|
89 | 88 | </actionGroup>
|
90 | 89 | <actionGroup ref="AssertProductInStorefrontProductPageActionGroup" stepKey="assertProductInStorefront2">
|
|
0 commit comments