Skip to content

Commit f4ad401

Browse files
ivy00johnstomreece
authored andcommitted
MC-4405: Convert ProductTypeSwitchingOnCreationTest to MFTF
- Adjusting selector slightly to make them more stable.
1 parent 11c9988 commit f4ad401

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

app/code/Magento/Catalog/Test/Mftf/Section/StorefrontCategoryMainSection.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
<element name="productImage" type="text" selector="img.product-image-photo"/>
2626
<element name="productLink" type="text" selector="a.product-item-link"/>
2727
<element name="productLinkByHref" type="text" selector="a.product-item-link[href$='{{var1}}.html']" parameterized="true"/>
28-
<element name="productPrice" type="text" selector="div.price-box.price-final_price"/>
28+
<element name="productPrice" type="text" selector=".price-final_price"/>
2929
<element name="categoryImage" type="text" selector=".category-image"/>
3030
<element name="emptyProductMessage" type="block" selector=".message.info.empty>div"/>
3131
<element name="lineProductName" type="text" selector=".products.list.items.product-items li:nth-of-type({{line}}) .product-item-link" timeout="30" parameterized="true"/>

app/code/Magento/Catalog/Test/Mftf/Section/StorefrontProductInfoMainSection.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
<element name="productName" type="text" selector=".base"/>
1414
<element name="productSku" type="text" selector=".product.attribute.sku>.value"/>
1515
<element name="productPriceLabel" type="text" selector=".price-label"/>
16-
<element name="productPrice" type="text" selector="div.price-box.price-final_price"/>
16+
<element name="productPrice" type="text" selector=".price-final_price"/>
1717
<element name="qty" type="input" selector="#qty"/>
1818
<element name="specialPrice" type="text" selector=".special-price"/>
1919
<element name="specialPriceAmount" type="text" selector=".special-price span.price"/>

app/code/Magento/ConfigurableProduct/Test/Mftf/Section/StorefrontProductInfoMainSection.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,6 @@
1717
<!-- Parameter is the order number of the attribute on the page (1 is the newest) -->
1818
<element name="nthAttributeOnPage" type="block" selector="tr:nth-of-type({{numElement}}) .data" parameterized="true"/>
1919
<element name="stockIndication" type="block" selector=".stock" />
20-
<element name="attributeOptionByAttributeID" type="select" selector="//div[@class='fieldset']/div[//span[text()='{{attribute_code}}']]//option[text()='{{optionName}}']" parameterized="true"/>
20+
<element name="attributeOptionByAttributeID" type="select" selector="//div[@class='fieldset']//div[//span[text()='{{attribute_code}}']]//option[text()='{{optionName}}']" parameterized="true"/>
2121
</section>
2222
</sections>

0 commit comments

Comments
 (0)