Skip to content

Commit af87a93

Browse files
MAGETWO-89378: Improve selectors
1 parent d00a919 commit af87a93

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,13 @@
1717
<element name="productQuantity" type="input" selector=".admin__field[data-index=qty] input"/>
1818
<element name="productStockStatus" type="select" selector="select[name='product[quantity_and_stock_status][is_in_stock]']"/>
1919
<element name="productWeight" type="input" selector=".admin__field[data-index=weight] input"/>
20-
<element name="contentTab" type="button" selector="//strong[@class='admin__collapsible-title']/span[text()='Content']"/>
20+
<element name="contentTab" type="button" selector="//strong[contains(@class, 'admin__collapsible-title')]/span[text()='Content']"/>
2121
<element name="fieldError" type="text" selector="//input[@name='product[{{fieldName}}]']/following-sibling::label[@class='admin__field-error']" parameterized="true"/>
2222
<element name="priceFieldError" type="text" selector="//input[@name='product[price]']/parent::div/parent::div/label[@class='admin__field-error']"/>
2323
<element name="addAttributeBtn" type="button" selector="#addAttribute"/>
2424
<element name="createNewAttributeBtn" type="button" selector="button[data-index='add_new_attribute_button']"/>
2525
<element name="save" type="button" selector="#save"/>
26-
<element name="attributeTab" type="button" selector="//strong[@class='admin__collapsible-title']/span[text()='Attributes']"/>
26+
<element name="attributeTab" type="button" selector="//strong[contains(@class, 'admin__collapsible-title')]/span[text()='Attributes']"/>
2727
<element name="attributeLabel" type="input" selector="//input[@name='frontend_label[0]']"/>
2828
<element name="frontendInput" type="select" selector="select[name = 'frontend_input']"/>
2929
<element name="productFormTab" type="button" selector="//strong[@class='admin__collapsible-title']/span[contains(text(), '{{tabName}}')]" parameterized="true"/>

0 commit comments

Comments
 (0)