Skip to content

Commit 65114b8

Browse files
committed
MAGETWO-87775: Automate MFTF tests
- Added test to create product attribute from product
1 parent 16b6122 commit 65114b8

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

dev/tests/acceptance/tests/functional/Magento/FunctionalTest/Catalog/Section/AdminProductAttributeGridSection.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,6 @@
1010
xsi:noNamespaceSchemaLocation="../../../../../../vendor/magento/magento2-functional-testing-framework/src/Magento/FunctionalTestingFramework/Page/etc/SectionObject.xsd">
1111
<section name="AdminProductAttributeGridSection">
1212
<element name="AttributeCode" type="text" selector="//td[contains(text(),'{{var1}}')]" parameterized="true"/>
13+
<element name="createNewAttributeBtn" type="button" selector="button[data-index='add_new_attribute_button']"/>
1314
</section>
1415
</sections>

dev/tests/acceptance/tests/functional/Magento/FunctionalTest/Catalog/Section/AdminProductFormSection.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
<element name="contentTab" type="button" selector="//strong[@class='admin__collapsible-title']/span[text()='Content']"/>
2020
<element name="fieldError" type="text" selector="//input[@name='product[{{fieldName}}]']/following-sibling::label[@class='admin__field-error']" parameterized="true"/>
2121
<element name="priceFieldError" type="text" selector="//input[@name='product[price]']/parent::div/parent::div/label[@class='admin__field-error']"/>
22+
<element name="addAttributeBtn" type="button" selector="#addAttribute"/>
2223
</section>
2324
<section name="ProductWYSIWYGSection">
2425
<element name="Switcher" type="button" selector="//select[@id='dropdown-switcher']"/>

0 commit comments

Comments
 (0)