Skip to content

Commit b643a22

Browse files
committed
MAGETWO-89282: Shopping cart price is not actual on staging preview
1 parent b4269c2 commit b643a22

File tree

2 files changed

+17
-0
lines changed

2 files changed

+17
-0
lines changed

app/code/Magento/CatalogRule/Test/Mftf/ActionGroup/CatalogPriceRuleActionGroup.xml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,4 +68,18 @@
6868
<fillField selector="{{AdminCatalogPriceRuleConditionsSection.targetInput('1', '1')}}" userInput="{{productSku}}" after="clickEllipsis" stepKey="fillProductSku"/>
6969
<click selector="{{AdminCatalogPriceRuleConditionsSection.applyButton('1', '1')}}" after="fillProductSku" stepKey="clickApply"/>
7070
</actionGroup>
71+
72+
<!-- Open rule for Edit -->
73+
<actionGroup name="OpenCatalogPriceRule">
74+
<arguments>
75+
<argument name="ruleName" type="string" defaultValue="CustomCatalogRule.name"/>
76+
</arguments>
77+
78+
<amOnPage url="{{AdminCatalogPriceRuleGridPage.url}}" stepKey="goToAdminCatalogPriceRuleGridPage"/>
79+
<conditionalClick selector="{{AdminDataGridHeaderSection.clearFilters}}" dependentSelector="{{AdminDataGridHeaderSection.clearFilters}}" visible="true" stepKey="clearExistingFilters"/>
80+
<fillField selector="{{AdminCatalogPriceRuleGridSection.filterByRuleName}}" userInput="{{ruleName}}" stepKey="filterByRuleName"/>
81+
<click selector="{{AdminDataGridHeaderSection.applyFilters}}" stepKey="clickSearch"/>
82+
<click selector="{{AdminGridTableSection.row('1')}}" stepKey="clickEdit"/>
83+
<waitForLoadingMaskToDisappear stepKey="waitForLoadingMaskToDisappear1"/>
84+
</actionGroup>
7185
</actionGroups>

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,5 +32,8 @@
3232
parameterized="true"/>
3333
<element name="removeItem" type="button"
3434
selector="//table[@id='shopping-cart-table']//tbody//tr[contains(@class,'item-actions')]//a[contains(@class,'action-delete')]"/>
35+
<element name="productPriceByName" type="text"
36+
selector="//table[@id='shopping-cart-table']//tbody//tr[//a/text()='{{var1}}']//ancestor::td[contains(@class,'price')]//span[@class='price']"
37+
parameterized="true"/>
3538
</section>
3639
</sections>

0 commit comments

Comments
 (0)