Skip to content

Commit 1089f15

Browse files
committed
restoring stepKeys
1 parent 3cf82b7 commit 1089f15

File tree

1 file changed

+46
-14
lines changed

1 file changed

+46
-14
lines changed

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

Lines changed: 46 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -38,57 +38,89 @@
3838
<deleteData createDataKey="product" stepKey="deleteProduct"/>
3939
<deleteData createDataKey="category" stepKey="deleteCategory"/>
4040
</after>
41+
<comment userInput="Open product page | Comment is kept to preserve the step key for backward compatibility" stepKey="openProdPage"/>
42+
<comment userInput="Comment is added to preserve the step key for backward compatibility" stepKey="goToSimpleProductPage"/>
4143

42-
<actionGroup ref="StorefrontOpenProductPageActionGroup" stepKey="openProductStorefront">
44+
<actionGroup ref="StorefrontOpenProductPageActionGroup" stepKey="waitForSimpleProductPage">
4345
<argument name="productUrl" value="$$product.custom_attributes[url_key]$$"/>
4446
</actionGroup>
45-
47+
48+
<comment userInput="'Add to compare' link is not available | Comment is kept to preserve the step key for backward compatibility" stepKey="addToCompareLinkAvailability"/>
49+
4650
<dontSeeElement selector="{{StorefrontProductInfoMainSection.productAddToCompare}}" stepKey="dontSeeAddToCompareLink"/>
4751

52+
<comment userInput="Turn on 'out of stock' config | Comment is kept to preserve the step key for backward compatibility" stepKey="onOutOfStockConfig"/>
4853
<magentoCLI command="config:set {{CatalogInventoryOptionsShowOutOfStockEnable.path}} {{CatalogInventoryOptionsShowOutOfStockEnable.value}}" stepKey="setConfigShowOutOfStockTrue"/>
4954

55+
<comment userInput="Clear cache and reindex | Comment is kept to preserve the step key for backward compatibility" stepKey="cleanCache"/>
5056
<actionGroup ref="CliIndexerReindexActionGroup" stepKey="reindex">
5157
<argument name="indices" value=""/>
5258
</actionGroup>
5359
<actionGroup ref="CliCacheFlushActionGroup" stepKey="flushCache">
5460
<argument name="tags" value=""/>
5561
</actionGroup>
5662

57-
<actionGroup ref="StorefrontOpenProductPageActionGroup" stepKey="openProductStorefront1">
63+
<comment userInput="Open product page | Comment is kept to preserve the step key for backward compatibility" stepKey="openProductPage"/>
64+
<comment userInput="Comment is added to preserve the step key for backward compatibility" stepKey="goToSimpleProductPage2"/>
65+
<comment userInput="Comment is added to preserve the step key for backward compatibility" stepKey="waitForSimpleProductPage2"/>
66+
<actionGroup ref="StorefrontOpenProductPageActionGroup" stepKey="seeAddToCompareLink">
5867
<argument name="productUrl" value="$$product.custom_attributes[url_key]$$"/>
5968
</actionGroup>
69+
70+
<comment userInput="Click on 'Add to Compare' link | Comment is kept to preserve the step key for backward compatibility" stepKey="clickOnAddToCompareLink"/>
71+
<comment userInput="Comment is added to preserve the step key for backward compatibility" stepKey="clickOnAddToCompare"/>
72+
<comment userInput="Comment is added to preserve the step key for backward compatibility" stepKey="waitForProdAddToCmpList"/>
73+
<comment userInput="Assert success message | Comment is kept to preserve the step key for backward compatibility" stepKey="assertSuccessMsg"/>
74+
<comment userInput="Comment is added to preserve the step key for backward compatibility" stepKey="grabTextFromSuccessMessage"/>
6075

61-
<actionGroup ref="StorefrontAddProductToCompareActionGroup" stepKey="addProductToCompare1">
76+
<actionGroup ref="StorefrontAddProductToCompareActionGroup" stepKey="assertSuccessMessage">
6277
<argument name="productVar" value="$$product$$"/>
6378
</actionGroup>
6479

65-
<actionGroup ref="StorefrontGoToCategoryPageActionGroup" stepKey="openCategoryPage">
80+
<comment userInput="See product in the comparison list | Comment is kept to preserve the step key for backward compatibility" stepKey="seeProductInComparisonList"/>
81+
82+
<actionGroup ref="StorefrontGoToCategoryPageActionGroup" stepKey="openCategoryPage">
6683
<argument name="categoryName" value="$$category.name$$"/>
6784
</actionGroup>
6885

69-
<actionGroup ref="StorefrontOpenAndCheckComparisionActionGroup" stepKey="compareOpenComparePage"/>
86+
<actionGroup ref="StorefrontOpenAndCheckComparisionActionGroup" stepKey="navigateToComparePage"/>
87+
<comment userInput="Comment is added to preserve the step key for backward compatibility" stepKey="waitForStorefrontProductComparePageLoad"/>
7088

71-
<actionGroup ref="SeeProductInComparisonListActionGroup" stepKey="seeProductInComparisonList">
89+
<actionGroup ref="SeeProductInComparisonListActionGroup" stepKey="seeProductInCompareList">
7290
<argument name="productVar" value="$$product$$"/>
7391
</actionGroup>
7492

75-
<actionGroup ref="StorefrontGoToCategoryPageActionGroup" stepKey="openCategoryPage1">
93+
94+
<comment userInput="Comment is added to preserve the step key for backward compatibility" stepKey="deleteProdFromCmpList"/>
95+
<comment userInput="Comment is added to preserve the step key for backward compatibility" stepKey="onCategoryPage"/>
96+
<actionGroup ref="StorefrontGoToCategoryPageActionGroup" stepKey="waitForPageLoad1">
7697
<argument name="categoryName" value="$$category.name$$"/>
7798
</actionGroup>
7899

79-
<actionGroup ref="StorefrontClearCompareActionGroup" stepKey="clearList"/>
100+
<actionGroup ref="StorefrontClearCompareActionGroup" stepKey="clickClearAll"/>
101+
<comment userInput="Comment is added to preserve the step key for backward compatibility" stepKey="waitForConfirmPageLoad"/>
102+
<comment userInput="Comment is added to preserve the step key for backward compatibility" stepKey="confirmProdDelate"/>
103+
<comment userInput="Comment is added to preserve the step key for backward compatibility" stepKey="waitForConfirmLoad"/>
104+
<comment userInput="Add product to compare list fom Category page | Comment is kept to preserve the step key for backward compatibility" stepKey="addToCmpFromCategPage"/>
80105

81-
<actionGroup ref="StorefrontHoverProductOnCategoryPageActionGroup" stepKey="hoverProduct"/>
106+
<actionGroup ref="StorefrontHoverProductOnCategoryPageActionGroup" stepKey="hoverOverProduct"/>
82107

83-
<actionGroup ref="StorefrontAddProductToCompareActionGroup" stepKey="addProductToCompare2">
108+
<actionGroup ref="StorefrontAddProductToCompareActionGroup" stepKey="clickAddToCompare">
84109
<argument name="productVar" value="$$product$$"/>
85110
</actionGroup>
86-
111+
<comment userInput="Comment is added to preserve the step key for backward compatibility" stepKey="waitProdAddingToCmpList"/>
112+
<comment userInput="Assert success message | Comment is kept to preserve the step key for backward compatibility" stepKey="assertSuccessMsg2"/>
113+
<comment userInput="Comment is added to preserve the step key for backward compatibility" stepKey="grabTextFromSuccessMessage2"/>
114+
<comment userInput="Comment is added to preserve the step key for backward compatibility" stepKey="assertSuccessMessage2"/>
115+
116+
<comment userInput="Check that product displays on add to compare widget | Comment is kept to preserve the step key for backward compatibility" stepKey="checkProdNameOnWidget"/>
87117
<seeElement selector="{{StorefrontComparisonSidebarSection.ProductTitleByName($$product.name$$)}}" stepKey="seeProdNameOnCmpWidget"/>
88118

89-
<actionGroup ref="StorefrontOpenAndCheckComparisionActionGroup" stepKey="compareOpenComparePage1"/>
119+
<comment userInput="See product in the compare page" stepKey="seeProductInComparePage"/>
120+
<actionGroup ref="StorefrontOpenAndCheckComparisionActionGroup" stepKey="navigateToComparePage2"/>
121+
<comment userInput="Comment is added to preserve the step key for backward compatibility" stepKey="waitForStorefrontProductComparePageLoad2"/>
90122

91-
<actionGroup ref="SeeProductInComparisonListActionGroup" stepKey="seeProductInComparisonList1">
123+
<actionGroup ref="SeeProductInComparisonListActionGroup" stepKey="seeProductInCompareList2">
92124
<argument name="productVar" value="$$product$$"/>
93125
</actionGroup>
94126

0 commit comments

Comments
 (0)