Skip to content

Commit 125b01a

Browse files
#31131: [MFTF] Refactoring of AddOutOfStockProductToCompareListTest.
1 parent d001c99 commit 125b01a

File tree

1 file changed

+10
-8
lines changed

1 file changed

+10
-8
lines changed

app/code/Magento/Catalog/Test/Mftf/Test/AddOutOfStockProductToCompareListTest.xml

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
<group value="Catalog"/>
2121
</annotations>
2222
<before>
23+
<comment userInput="Adding the comment for preserving Backward Compatibility" stepKey="loginAsAdmin"/>
2324
<magentoCLI command="config:set {{CatalogInventoryOptionsShowOutOfStockDisable.path}} {{CatalogInventoryOptionsShowOutOfStockDisable.value}}" stepKey="setConfigShowOutOfStockFalse"/>
2425
<actionGroup ref="CliCacheFlushActionGroup" stepKey="flushCache">
2526
<argument name="tags" value=""/>
@@ -35,8 +36,9 @@
3536
<actionGroup ref="CliCacheFlushActionGroup" stepKey="flushCache">
3637
<argument name="tags" value=""/>
3738
</actionGroup>
38-
<deleteData createDataKey="product" stepKey="deleteProduct"/>
39-
<deleteData createDataKey="category" stepKey="deleteCategory"/>
39+
<deleteData createDataKey="product" stepKey="deleteProduct"/>
40+
<deleteData createDataKey="category" stepKey="deleteCategory"/>
41+
<comment userInput="Adding the comment for preserving Backward Compatibility" stepKey="logout"/>
4042
</after>
4143
<comment userInput="Open product page | Comment is kept to preserve the step key for backward compatibility" stepKey="openProdPage"/>
4244
<comment userInput="Comment is added to preserve the step key for backward compatibility" stepKey="goToSimpleProductPage"/>
@@ -48,10 +50,10 @@
4850
<comment userInput="'Add to compare' link is not available | Comment is kept to preserve the step key for backward compatibility" stepKey="addToCompareLinkAvailability"/>
4951

5052
<dontSeeElement selector="{{StorefrontProductInfoMainSection.productAddToCompare}}" stepKey="dontSeeAddToCompareLink"/>
51-
53+
5254
<comment userInput="Turn on 'out of stock' config | Comment is kept to preserve the step key for backward compatibility" stepKey="onOutOfStockConfig"/>
5355
<magentoCLI command="config:set {{CatalogInventoryOptionsShowOutOfStockEnable.path}} {{CatalogInventoryOptionsShowOutOfStockEnable.value}}" stepKey="setConfigShowOutOfStockTrue"/>
54-
56+
5557
<comment userInput="Clear cache and reindex | Comment is kept to preserve the step key for backward compatibility" stepKey="cleanCache"/>
5658
<actionGroup ref="CliIndexerReindexActionGroup" stepKey="reindex">
5759
<argument name="indices" value=""/>
@@ -72,13 +74,13 @@
7274
<comment userInput="Comment is added to preserve the step key for backward compatibility" stepKey="waitForProdAddToCmpList"/>
7375
<comment userInput="Assert success message | Comment is kept to preserve the step key for backward compatibility" stepKey="assertSuccessMsg"/>
7476
<comment userInput="Comment is added to preserve the step key for backward compatibility" stepKey="grabTextFromSuccessMessage"/>
75-
77+
7678
<actionGroup ref="StorefrontAddProductToCompareActionGroup" stepKey="assertSuccessMessage">
7779
<argument name="productVar" value="$$product$$"/>
7880
</actionGroup>
7981

8082
<comment userInput="See product in the comparison list | Comment is kept to preserve the step key for backward compatibility" stepKey="seeProductInComparisonList"/>
81-
83+
8284
<actionGroup ref="StorefrontGoToCategoryPageActionGroup" stepKey="openCategoryPage">
8385
<argument name="categoryName" value="$$category.name$$"/>
8486
</actionGroup>
@@ -112,13 +114,13 @@
112114
<comment userInput="Comment is added to preserve the step key for backward compatibility" stepKey="grabTextFromSuccessMessage2"/>
113115
<comment userInput="Comment is added to preserve the step key for backward compatibility" stepKey="assertSuccessMessage2"/>
114116

115-
<comment userInput="Check that product displays on add to compare widget | Comment is kept to preserve the step key for backward compatibility" stepKey="checkProdNameOnWidget"/>
117+
<comment userInput="Check that product displays on add to compare widget | Comment is kept to preserve the step key for backward compatibility" stepKey="checkProdNameOnWidget"/>
116118
<seeElement selector="{{StorefrontComparisonSidebarSection.ProductTitleByName($$product.name$$)}}" stepKey="seeProdNameOnCmpWidget"/>
117119

118120
<comment userInput="See product in the compare page" stepKey="seeProductInComparePage"/>
119121
<actionGroup ref="StorefrontOpenAndCheckComparisionActionGroup" stepKey="navigateToComparePage2"/>
120122
<comment userInput="Comment is added to preserve the step key for backward compatibility" stepKey="waitForStorefrontProductComparePageLoad2"/>
121-
123+
122124
<actionGroup ref="SeeProductInComparisonListActionGroup" stepKey="seeProductInCompareList2">
123125
<argument name="productVar" value="$$product$$"/>
124126
</actionGroup>

0 commit comments

Comments
 (0)