Skip to content

Commit 1e565e0

Browse files
Indrani sonawaneIndrani sonawane
authored andcommitted
33326-Replaced remaining see StorefrontProductInfoMainSection.productName with AssertStorefrontProductInfoMainProductNameActionGroup
1 parent df67851 commit 1e565e0

14 files changed

+43
-17
lines changed

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,9 @@
8282
<amOnPage url="{{_defaultProduct.urlKey}}.html" stepKey="goToProductPage"/>
8383
<waitForPageLoad stepKey="waitForProductPageLoad"/>
8484
<seeInTitle userInput="{{_defaultProduct.name}}" stepKey="seeProductNameInTitlte"/>
85-
<see userInput="{{_defaultProduct.name}}" selector="{{StorefrontProductInfoMainSection.productName}}" stepKey="assertProductName"/>
85+
<actionGroup ref="AssertStorefrontProductInfoMainProductNameActionGroup" stepKey="assertProductName">
86+
<argument name="value" value="{{_defaultProduct.name}}"/>
87+
</actionGroup>
8688
<see userInput="{{_defaultProduct.sku}}" selector="{{StorefrontProductInfoMainSection.productSku}}" stepKey="assertProductSku"/>
8789
<see userInput="${{_defaultProduct.price}}" selector="{{StorefrontProductInfoMainSection.productPrice}}" stepKey="assertProductPrice"/>
8890
</test>

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@
5353
<requiredEntity createDataKey="createConfigProductAttribute"/>
5454
<requiredEntity createDataKey="getConfigAttributeOption1"/>
5555
</createData>
56-
<!--Create a simple product and give it the attribute with the second option -->
56+
<!--Create a simple product and give it the attribute with the second option -->
5757
<createData entity="ApiSimpleTwo" stepKey="createConfigChildProduct2">
5858
<requiredEntity createDataKey="createConfigProductAttribute"/>
5959
<requiredEntity createDataKey="getConfigAttributeOption2"/>

app/code/Magento/Catalog/Test/Mftf/Test/StorefrontProductNameWithDoubleQuoteTest/StorefrontProductNameWithHTMLEntitiesTest.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
*/
77
-->
88
<tests xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
9-
xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/testSchema.xsd">
9+
xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/testSchema.xsd">
1010
<test name="StorefrontProductNameWithHTMLEntitiesTest">
1111
<annotations>
1212
<features value="Catalog"/>

app/code/Magento/ConfigurableImportExport/Test/Mftf/Test/AdminImportSimpleAndConfigurableProductsWithAssignedImagesTest.xml

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,9 @@
276276
<actionGroup ref="StorefrontOpenProductPageActionGroup" stepKey="openProductStorefrontPage">
277277
<argument name="productUrl" value="{{ImportProduct_Configurable.urlKey}}"/>
278278
</actionGroup>
279-
<see selector="{{StorefrontProductInfoMainSection.productName}}" userInput="{{ImportProduct_Configurable.name}}" stepKey="seeProductName"/>
279+
<actionGroup ref="AssertStorefrontProductInfoMainProductNameActionGroup" stepKey="seeProductName">
280+
<argument name="value" value="{{ImportProduct_Configurable.name}}"/>
281+
</actionGroup>
280282
<see selector="{{StorefrontProductInfoMainSection.productSku}}" userInput="{{ImportProduct_Configurable.sku}}" stepKey="seeSku"/>
281283
<see selector="{{StorefrontProductInfoMainSection.productPrice}}" userInput="As low as ${{ImportProductSimple1_Configurable.price}}" stepKey="seePrice"/>
282284
<seeElement selector="{{StorefrontProductInfoMainSection.productImageSrc(ImportProduct_Configurable.baseImageName)}}" stepKey="seeBaseImage"/>
@@ -286,7 +288,9 @@
286288
<argument name="attributeLabel" value="{{ProductAttributeFrontendLabelImport1.label}}"/>
287289
<argument name="optionLabel" value="{{ProductAttributeOptionOneForExportImport.label}}"/>
288290
</actionGroup>
289-
<see selector="{{StorefrontProductInfoMainSection.productName}}" userInput="{{ImportProduct_Configurable.name}}" stepKey="seeProductName2"/>
291+
<actionGroup ref="AssertStorefrontProductInfoMainProductNameActionGroup" stepKey="seeProductName2">
292+
<argument name="value" value="{{ImportProduct_Configurable.name}}"/>
293+
</actionGroup>
290294
<see selector="{{StorefrontProductInfoMainSection.productSku}}" userInput="{{ImportProduct_Configurable.sku}}" stepKey="seeSku2"/>
291295
<see selector="{{StorefrontProductInfoMainSection.productPrice}}" userInput="${{ImportProductSimple1_Configurable.price}}" stepKey="seePrice2"/>
292296
<waitForPageLoad stepKey="waitForImageLoad1"/>
@@ -297,7 +301,9 @@
297301
<argument name="attributeLabel" value="{{ProductAttributeFrontendLabelImport1.label}}"/>
298302
<argument name="optionLabel" value="{{ProductAttributeOptionTwoForExportImport.label}}"/>
299303
</actionGroup>
300-
<see selector="{{StorefrontProductInfoMainSection.productName}}" userInput="{{ImportProduct_Configurable.name}}" stepKey="seeProductName3"/>
304+
<actionGroup ref="AssertStorefrontProductInfoMainProductNameActionGroup" stepKey="seeProductName3">
305+
<argument name="value" value="{{ImportProduct_Configurable.name}}"/>
306+
</actionGroup>
301307
<see selector="{{StorefrontProductInfoMainSection.productSku}}" userInput="{{ImportProduct_Configurable.sku}}" stepKey="seeSku3"/>
302308
<see selector="{{StorefrontProductInfoMainSection.productPrice}}" userInput="${{ImportProductSimple2_Configurable.price}}" stepKey="seePrice3"/>
303309
<waitForPageLoad stepKey="waitForImageLoad2"/>
@@ -308,7 +314,9 @@
308314
<argument name="attributeLabel" value="{{ProductAttributeFrontendLabelImport1.label}}"/>
309315
<argument name="optionLabel" value="{{ProductAttributeOptionThreeForImport.label}}"/>
310316
</actionGroup>
311-
<see selector="{{StorefrontProductInfoMainSection.productName}}" userInput="{{ImportProduct_Configurable.name}}" stepKey="seeProductName4"/>
317+
<actionGroup ref="AssertStorefrontProductInfoMainProductNameActionGroup" stepKey="seeProductName4">
318+
<argument name="value" value="{{ImportProduct_Configurable.name}}"/>
319+
</actionGroup>
312320
<see selector="{{StorefrontProductInfoMainSection.productSku}}" userInput="{{ImportProduct_Configurable.sku}}" stepKey="seeSku4"/>
313321
<see selector="{{StorefrontProductInfoMainSection.productPrice}}" userInput="${{ImportProductSimple3_Configurable.price}}" stepKey="seePrice4"/>
314322
<waitForPageLoad stepKey="waitForImageLoad3"/>

app/code/Magento/ConfigurableProduct/Test/Mftf/Test/AdminConfigurableProductLongSkuTest.xml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,9 @@
105105
<click selector="{{StorefrontCategoryProductSection.ProductTitleByName(ProductWithLongNameSku.name)}}" stepKey="clickOnProductName"/>
106106
<waitForPageLoad stepKey="waitForProductPageLoad"/>
107107
<seeInTitle userInput="{{ProductWithLongNameSku.name}}" stepKey="assertProductNameTitle"/>
108-
<see userInput="{{ProductWithLongNameSku.name}}" selector="{{StorefrontProductInfoMainSection.productName}}" stepKey="assertProductName"/>
108+
<actionGroup ref="AssertStorefrontProductInfoMainProductNameActionGroup" stepKey="assertProductName">
109+
<argument name="value" value="{{ProductWithLongNameSku.name}}"/>
110+
</actionGroup>
109111
<see userInput="{{ProductWithLongNameSku.sku}}" selector="{{StorefrontProductInfoMainSection.productSku}}" stepKey="assertProductSku"/>
110112
<see selector="{{StorefrontProductInfoMainSection.productAttributeTitle1}}" userInput="$$createConfigProductAttribute.default_frontend_label$$" stepKey="seeColorAttributeName1"/>
111113
<see selector="{{StorefrontProductInfoMainSection.productAttributeOptions1}}" userInput="$$getConfigAttributeOption1.label$$" stepKey="seeInDropDown1"/>

app/code/Magento/ConfigurableProduct/Test/Mftf/Test/StorefrontConfigurableProductDetailsTest/StorefrontConfigurableProductCanAddToCartTest.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
*/
77
-->
88
<tests xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
9-
xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/testSchema.xsd">
9+
xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/testSchema.xsd">
1010
<test name="StorefrontConfigurableProductCanAddToCartTest">
1111
<annotations>
1212
<features value="ConfigurableProduct"/>

app/code/Magento/ConfigurableProduct/Test/Mftf/Test/StorefrontConfigurableProductDetailsTest/StorefrontConfigurableProductCantAddToCartTest.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
*/
77
-->
88
<tests xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
9-
xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/testSchema.xsd">
9+
xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/testSchema.xsd">
1010
<test name="StorefrontConfigurableProductCantAddToCartTest">
1111
<annotations>
1212
<features value="ConfigurableProduct"/>

app/code/Magento/ConfigurableProduct/Test/Mftf/Test/StorefrontVisibilityOfDuplicateProductTest.xml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,9 @@
205205
<comment userInput="Assert product options in Storefront product page" stepKey="commentAssertProductOptions"/>
206206
<amOnPage url="{{StorefrontProductPage.url($$createConfigProduct.custom_attributes[url_key]$$-1)}}" stepKey="amOnSimpleProductPage"/>
207207
<waitForPageLoad stepKey="waitForProductPageLoadOnStorefront"/>
208-
<see selector="{{StorefrontProductInfoMainSection.productName}}" userInput="$$createConfigProduct.name$$-Updated" stepKey="seeConfigurableProductName"/>
208+
<actionGroup ref="AssertStorefrontProductInfoMainProductNameActionGroup" stepKey="seeConfigurableProductName">
209+
<argument name="value" value="$$createConfigProduct.name$$-Updated"/>
210+
</actionGroup>
209211
<see userInput="{{productAttributeColor.default_label}}" selector="{{StorefrontProductInfoMainSection.productAttributeTitle1}}" stepKey="seeColorAttributeName"/>
210212
<selectOption selector="{{StorefrontProductInfoMainSection.productAttributeOptionsSelectButton}}" userInput="{{colorConfigurableProductAttribute1.name}}" stepKey="selectFirstOption"/>
211213
<see userInput="{{virtualProductWithRequiredFields.price}}" selector="{{StorefrontProductInfoMainSection.productPrice}}" stepKey="assertFirstOptionProductPrice"/>

app/code/Magento/Customer/Test/Mftf/Test/StorefrontCheckTaxAddingValidVATIdTest.xml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,9 @@
8080

8181
<!-- Go to product visible -->
8282
<amOnPage url="$$createProduct.custom_attributes[url_key]$$.html" stepKey="navigateToProductPageOnDefaultStore"/>
83-
<see userInput="$$createProduct.name$$" selector="{{StorefrontProductInfoMainSection.productName}}" stepKey="assertFirstProductNameTitle"/>
83+
<actionGroup ref="AssertStorefrontProductInfoMainProductNameActionGroup" stepKey="assertFirstProductNameTitle">
84+
<argument name="value" value="$$createProduct.name$$"/>
85+
</actionGroup>
8486

8587
<!--Add a product to the cart-->
8688
<actionGroup ref="StorefrontClickAddToCartOnProductPageActionGroup" stepKey="addToCartFromStorefrontProductPage"/>

app/code/Magento/Downloadable/Test/Mftf/Test/AdminCreateDownloadableProductWithManageStockTest.xml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,9 @@
102102
<!-- Assert product is out of stock in store front -->
103103
<amOnPage url="{{DownloadableProduct.urlKey}}.html" stepKey="navigateToProductPage"/>
104104
<waitForPageLoad stepKey="waitForProductPageLoad"/>
105-
<see selector="{{StorefrontProductInfoMainSection.productName}}" userInput="{{DownloadableProduct.name}}" stepKey="seeProductNameInStoreFront"/>
105+
<actionGroup ref="AssertStorefrontProductInfoMainProductNameActionGroup" stepKey="seeProductNameInStoreFront">
106+
<argument name="value" value="{{DownloadableProduct.name}}"/>
107+
</actionGroup>
106108
<see selector="{{StorefrontProductInfoMainSection.productStockStatus}}" userInput="OUT OF STOCK" stepKey="seeProductStatusInStoreFront"/>
107109
</test>
108110
</tests>

0 commit comments

Comments
 (0)