Skip to content

Commit a64b8b6

Browse files
Ashish.Kumar18Ashish.Kumar18
authored andcommitted
[MFTF Test] ConfigurableProductAttributeNameDesignTest added new label for design
1 parent f26ae80 commit a64b8b6

File tree

5 files changed

+5
-3
lines changed

5 files changed

+5
-3
lines changed

app/code/Magento/ConfigurableProduct/Test/Mftf/ActionGroup/CreateNewAttributeActionGroup.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@
5252
<switchToIFrame stepKey="switchOutOfIFrame"/>
5353

5454
<!--Select created Attribute -->
55-
<click selector="{{ConfigurableProductSection.selectCreatedAttribute}}" stepKey="selectCreatedAttribute"/>
55+
<click selector="{{ConfigurableProductSection.selectTheCreatedAttribute(NewProductsData.defaultLabel)}}" stepKey="selectCreatedAttribute"/>
5656

5757
<!--Click Next button-->
5858
<click selector="{{ConfigurableProductSection.nextButton}}" stepKey="clickNextButton"/>

app/code/Magento/ConfigurableProduct/Test/Mftf/ActionGroup/DeleteCreatedAttributeActionGroup.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
<fillField stepKey="searchProductDefaultLabel" selector="{{CatalogProductsSection.searchDefaultLabelField}}" userInput="{{NewProductsData.defaultLabel}}"/>
2727
<click stepKey="clickSearchButton" selector="{{CatalogProductsSection.searchButton}}"/>
2828
<waitForPageLoad stepKey="waitForCreatedAttributeLoad"/>
29-
<click stepKey="clickOnCreatedAttributeItem" selector="{{CatalogProductsSection.createdAttributeItem}}"/>
29+
<click stepKey="clickOnCreatedAttributeItem" selector="{{CatalogProductsSection.createdTheAttributeItem(NewProductsData.defaultLabel)}}"/>
3030
<waitForPageLoad stepKey="waitForAttributePropertiesPageLoad"/>
3131

3232
<!--Click on Delete Attribute item-->

app/code/Magento/ConfigurableProduct/Test/Mftf/Data/ConfigurableProductAttributeNameDesignData.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
<data key="productName" unique="prefix">Shoes</data>
1313
<data key="price">60</data>
1414
<data key="weight">100</data>
15-
<data key="defaultLabel">design123</data>
15+
<data key="defaultLabel" unique="suffix">design</data>
1616
<data key="adminFieldRed">red</data>
1717
<data key="defaultStoreViewFieldRed">red123</data>
1818
<data key="adminFieldBlue">blue</data>

app/code/Magento/ConfigurableProduct/Test/Mftf/Section/ConfigurableProductAttributeNameDesignSection/CatalogProductsSection.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
<element name="searchButton" type="button" selector="//div[@class='admin__filter-actions']//*[contains(text(), 'Search')]"/>
1616
<element name="storesProductItem" type="button" selector="//*[@data-ui-id='menu-magento-catalog-catalog-attributes-attributes']/a"/>
1717
<element name="createdAttributeItem" type="button" selector="//td[contains(@class, 'col-label') and normalize-space()='design123']"/>
18+
<element name="createdTheAttributeItem" type="button" selector="//td[contains(@class, 'col-label') and normalize-space()='{{text}}']" parameterized="true"/>
1819
<element name="deleteAttributeItem" type="button" selector="//*[@id='delete']"/>
1920
<element name="okButton" type="button" selector="//footer[@class='modal-footer']//*[contains(text(),'OK')]"/>
2021
<element name="messageSuccessSavedProduct" type="button" selector="//div[@data-ui-id='messages-message-success']"/>

app/code/Magento/ConfigurableProduct/Test/Mftf/Section/ConfigurableProductAttributeNameDesignSection/ConfigurableProductSection.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
<element name="nextButton" type="button" selector="//div[@class='nav-bar-outer-actions']//*[contains(text(),'Next')]"/>
1414
<element name="generateConfigure" type="button" selector="//div[@class='nav-bar-outer-actions']//*[contains(text(),'Generate Products')]"/>
1515
<element name="selectCreatedAttribute" type="button" selector="//*[@class='admin__data-grid-wrap']//td[normalize-space()='design123']/preceding-sibling::td"/>
16+
<element name="selectTheCreatedAttribute" type="button" selector="//*[@class='admin__data-grid-wrap']//td[normalize-space()='{{text}}']/preceding-sibling::td" parameterized="true"/>
1617
<element name="closeFrame" type="button" selector="//*[@class='modal-header']//*[contains(text(),'Create Product Configurations')]/following-sibling::button"/>
1718
</section>
1819
</sections>

0 commit comments

Comments
 (0)