|
20 | 20 | </annotations>
|
21 | 21 | <before>
|
22 | 22 | <actionGroup ref="LoginAsAdmin" stepKey="loginAsAdmin"/>
|
23 |
| - <createData entity="DisableDisplayOutOfStock" stepKey="displayOutOfStockNo"/> |
| 23 | + <magentoCLI command="config:set cataloginventory/options/show_out_of_stock 0" stepKey="displayOutOfStockNo"/> |
24 | 24 | <magentoCLI command="cache:flush" stepKey="flushCache"/>
|
25 | 25 | <createData entity="SimpleSubCategory" stepKey="category"/>
|
26 | 26 | <createData entity="SimpleProduct4" stepKey="product">
|
27 | 27 | <requiredEntity createDataKey="category"/>
|
28 | 28 | </createData>
|
29 | 29 | </before>
|
30 | 30 | <after>
|
31 |
| - <actionGroup ref="setAsDefaultOutOfStockProduct" stepKey="setAsDefaultOutOfStockProduct"/> |
| 31 | + <magentoCLI command="config:set cataloginventory/options/show_out_of_stock 0" stepKey="displayOutOfStockNo2"/> |
32 | 32 | <magentoCLI command="cache:flush" stepKey="flushCache"/>
|
33 | 33 | <deleteData createDataKey="product" stepKey="deleteProduct"/>
|
34 | 34 | <deleteData createDataKey="category" stepKey="deleteCategory"/>
|
35 | 35 | <actionGroup ref="logout" stepKey="logout"/>
|
36 |
| - |
37 | 36 | </after>
|
38 | 37 | <!--Open product page-->
|
39 | 38 | <comment userInput="Open product page" stepKey="openProdPage"/>
|
|
44 | 43 | <dontSeeElement selector="{{StorefrontProductInfoMainSection.productAddToCompare}}" stepKey="dontSeeAddToCompareLink"/>
|
45 | 44 | <!--Turn on 'out on stock' config-->
|
46 | 45 | <comment userInput="Turn on 'out of stock' config" stepKey="onOutOfStockConfig"/>
|
47 |
| - <createData entity="EnableDisplayOutOfStock" stepKey="displayOutOfStockYes"/> |
| 46 | + <magentoCLI command="config:set cataloginventory/options/show_out_of_stock 1" stepKey="displayOutOfStockYes"/> |
48 | 47 | <!--Clear cache and reindex-->
|
49 | 48 | <comment userInput="Clear cache and reindex" stepKey="cleanCache"/>
|
50 | 49 | <magentoCLI command="indexer:reindex" stepKey="reindex"/>
|
|
66 | 65 | <amOnPage url="{{StorefrontProductComparePage.url}}" stepKey="navigateToComparePage"/>
|
67 | 66 | <waitForPageLoad stepKey="waitForStorefrontProductComparePageLoad"/>
|
68 | 67 | <seeElement selector="{{StorefrontProductCompareMainSection.ProductLinkByName($product.name$)}}" stepKey="seeProductInCompareList"/>
|
69 |
| - <!--Add product to compare list fom Category page--> |
70 |
| - <comment userInput="Add product to compare list fom Category page" stepKey="addToCmpFromCategPage"/> |
| 68 | + <!--Go to Category page and delete product from comparison list--> |
| 69 | + <comment userInput="Go to Category page and delete prduct from comparison list" stepKey="deletProdFromCmpList"/> |
71 | 70 | <amOnPage url="{{StorefrontCategoryPage.url($$category.name$$)}}" stepKey="onCategoryPage"/>
|
72 | 71 | <waitForPageLoad time="30" stepKey="waitForPageLoad1"/>
|
| 72 | + <click selector="{{StorefrontComparisonSidebarSection.ClearAll}}" stepKey="clickClearAll"/> |
| 73 | + <waitForPageLoad time="30" stepKey="waitForConfirmPageLoad"/> |
| 74 | + <click selector="{{AdminDeleteRoleSection.confirm}}" stepKey="confirmProdDelate"/> |
| 75 | + <waitForPageLoad time="30" stepKey="waitForConfirmLoad"/> |
| 76 | + <!--Add product to compare list from Category page--> |
| 77 | + <comment userInput="Add product to compare list fom Category page" stepKey="addToCmpFromCategPage"/> |
73 | 78 | <moveMouseOver selector="{{StorefrontCategoryMainSection.ProductItemInfo}}" stepKey="hoverOverProduct"/>
|
74 | 79 | <click selector="{{StorefrontProductInfoMainSection.productAddToCompare}}" stepKey="clickAddToCompare"/>
|
75 | 80 | <waitForPageLoad stepKey="waitProdAddingToCmpList"/>
|
|
0 commit comments