File tree Expand file tree Collapse file tree 1 file changed +13
-5
lines changed
app/code/Magento/ConfigurableProduct/Test/Mftf/Test Expand file tree Collapse file tree 1 file changed +13
-5
lines changed Original file line number Diff line number Diff line change 82
82
<argument name =" productId" value =" $$createConfigProduct.id$$" />
83
83
</actionGroup >
84
84
<waitForPageLoad stepKey =" waitForEditPage" />
85
- <fillField selector =" {{AdminProductFormSection.setProductAsNewFrom}}" userInput =" 01/1/2000" stepKey =" fillProductNewFrom" />
86
- <fillField selector =" {{AdminProductFormSection.setProductAsNewTo}}" userInput =" 01/1/2099" stepKey =" fillProductNewTo" />
85
+ <actionGroup ref =" AdminSetProductAsNewDateActionGroup" stepKey =" fillProductNewFrom" >
86
+ <argument name =" fromDate" value =" 01/1/2000" />
87
+ <argument name =" toDate" value =" 01/1/2099" />
88
+ </actionGroup >
89
+ <comment userInput =" Comment is added to preserve the step key for backward compatibility" stepKey =" fillProductNewTo" />
87
90
<actionGroup ref =" AdminProductFormSaveActionGroup" stepKey =" clickSaveProduct" />
88
91
89
92
<!-- If PageCache is enabled, Cache clearing happens here, via merge -->
90
93
91
94
<!-- Check for product on the CMS page with the New Products widget -->
92
- <amOnPage url =" {{_newDefaultCmsPage.identifier}}" stepKey =" amOnCmsPage" />
93
- <waitForPageLoad stepKey =" waitForCmsPage" />
94
- <see selector =" {{StorefrontCategoryMainSection.ProductItemInfo}}" userInput =" $$createConfigProduct.name$$" stepKey =" seeProductName" />
95
+ <actionGroup ref =" StorefrontGoToCMSPageActionGroup" stepKey =" amOnCmsPage" >
96
+ <argument name =" identifier" value =" {{_newDefaultCmsPage.identifier}}" />
97
+ </actionGroup >
98
+ <comment userInput =" Comment is added to preserve the step key for backward compatibility" stepKey =" waitForCmsPage" />
99
+ <actionGroup ref =" AssertStorefrontProductIsShownOnCmsPageActionGroup" stepKey =" seeProductName" >
100
+ <argument name =" cmsTitle" value =" {{_newDefaultCmsPage.title}}" />
101
+ <argument name =" productName" value =" $$createConfigProduct.name$$" />
102
+ </actionGroup >
95
103
</test >
96
104
</tests >
You can’t perform that action at this time.
0 commit comments