Skip to content

Commit 70fa65b

Browse files
committed
MC-10974: Return "Is Active" toggle to Catalog Price Rule Page
- Updated automated test script.
1 parent c1054d7 commit 70fa65b

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

app/code/Magento/CatalogRule/Test/Mftf/Section/AdminNewCatalogPriceRuleSection.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
<element name="websites" type="select" selector="[name='website_ids']"/>
2626
<element name="active" type="checkbox" selector="//div[contains(@class, 'admin__actions-switch')]/input[@name='is_active']/../label"/>
2727
<element name="activeIsEnabled" type="checkbox" selector="(//div[contains(@class, 'admin__actions-switch')])[1]/input[@value='1']"/>
28-
<element name="activePosition" type="checkbox" selector="//fieldset[@class='admin__fieldset']//div[4]"/>
28+
<element name="activePosition" type="checkbox" selector="fieldset[class='admin__fieldset'] div[class*='_required']:nth-of-type(4)"/>
2929
<element name="websitesOptions" type="select" selector="[name='website_ids'] option"/>
3030
<element name="customerGroups" type="select" selector="[name='customer_group_ids']"/>
3131
<element name="customerGroupsOptions" type="select" selector="[name='customer_group_ids'] option"/>

app/code/Magento/Checkout/Test/Mftf/Section/CheckoutCartProductSection.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
<element name="ProductRegularPriceByName" type="text"
1919
selector="//div[descendant::*[contains(text(), '{{var1}}')]]//*[contains(@class, 'subtotal')]"
2020
parameterized="true"/>
21-
<element name="productFirstPriceByName" type="text" selector="(//tbody//a[@title='{{prodName}}']/../following-sibling::*//span[@class='price'])[1]" parameterized="true"/>
21+
<element name="productFirstPrice" type="text" selector="td[class~=price] span[class='price']"/>
2222
<element name="ProductImageByName" type="text"
2323
selector="//main//table[@id='shopping-cart-table']//tbody//tr//img[contains(@class, 'product-image-photo') and @alt='{{var1}}']"
2424
parameterized="true"/>

app/code/Magento/Checkout/Test/Mftf/Section/StorefrontMiniCartSection.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@
1414
<element name="productLinkByName" type="button" selector="//header//ol[@id='mini-cart']//div[@class='product-item-details']//a[contains(text(), '{{var1}}')]" parameterized="true"/>
1515
<element name="productPriceByName" type="text" selector="//header//ol[@id='mini-cart']//div[@class='product-item-details'][.//a[contains(text(), '{{var1}}')]]//span[@class='price']" parameterized="true"/>
1616
<element name="productPriceByItsName" type="text" selector="//a[normalize-space()='{{prodName}}']/../following-sibling::*//*[@class='price']" parameterized="true"/>
17-
<element name="productImageByName" type="text" selector="//header//ol[@id='mini-cart']//span[@class='product-image-container']//img[@alt='{{var1}}']" parameterized="true"/>
18-
<element name="productImageByItsName" type="text" selector="//img[@alt='{{prodName}}']" parameterized="true"/>
17+
<element name="productImageByName" type="text" selector="header ol[id='mini-cart'] span[class='product-image-container'] img[alt='{{prodName}}']" parameterized="true"/>
18+
<element name="productImageByItsName" type="text" selector="img[alt='{{prodName}}']" parameterized="true"/>
1919
<element name="productName" type="text" selector=".product-item-name"/>
2020
<element name="productOptionsDetailsByName" type="button" selector="//header//ol[@id='mini-cart']//div[@class='product-item-details'][.//a[contains(text(), '{{var1}}')]]//span[.='See Details']" parameterized="true"/>
2121
<element name="productOptionByNameAndAttribute" type="text" selector="//header//ol[@id='mini-cart']//div[@class='product-item-details'][.//a[contains(text(), '{{var1}}')]]//dt[@class='label' and .='{{var2}}']/following-sibling::dd[@class='values']//span" parameterized="true"/>

0 commit comments

Comments
 (0)