Skip to content

Commit 645e337

Browse files
committed
Merge remote-tracking branch 'origin/2.3-develop' into 2.3-develop-mftf-pr11
2 parents 9aafeda + 02b74fe commit 645e337

File tree

3 files changed

+25
-3
lines changed

3 files changed

+25
-3
lines changed

app/code/Magento/Catalog/Test/Mftf/Test/CheckTierPricingOfProductsTest.xml

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,10 @@
108108
</actionGroup>
109109
<actionGroup ref="ClearProductsFilterActionGroup" stepKey="ClearProductsFilterActionGroup"/>
110110

111+
<!--Flush cache-->
112+
<magentoCLI command="cache:flush" stepKey="cleanCache"/>
113+
114+
111115
<!--Edit customer info-->
112116
<actionGroup ref="OpenEditCustomerFromAdminActionGroup" stepKey="OpenEditCustomerFrom">
113117
<argument name="customer" value="$$customer$$"/>
@@ -318,13 +322,17 @@
318322
<deleteData createDataKey="category" stepKey="deleteCategory"/>
319323
<deleteData createDataKey="customer" stepKey="deleteCustomer"/>
320324
<createData entity="DefaultConfigCatalogPrice" stepKey="defaultConfigCatalogPrice"/>
321-
<actionGroup ref="AdminDeleteWebsiteActionGroup" stepKey="DeleteWebsite">
322-
<argument name="websiteName" value="secondWebsite"/>
323-
</actionGroup>
324325
<actionGroup ref="DeleteCartPriceRuleByName" stepKey="cleanUpRule">
325326
<argument name="ruleName" value="ship"/>
326327
</actionGroup>
328+
<actionGroup ref="AdminDeleteWebsiteActionGroup" stepKey="DeleteWebsite">
329+
<argument name="websiteName" value="secondWebsite"/>
330+
</actionGroup>
327331
<actionGroup ref="logout" stepKey="logout"/>
332+
333+
<!--Do reindex and flush cache-->
334+
<magentoCLI command="indexer:reindex" stepKey="reindex"/>
335+
<magentoCLI command="cache:flush" stepKey="flushCache"/>
328336
</after>
329337
</test>
330338
</tests>

app/code/Magento/SalesRule/Test/Mftf/ActionGroup/AdminCreateCartPriceRuleActionGroup.xml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,4 +48,15 @@
4848
<click selector="{{AdminCartPriceRulesFormSection.delete}}" stepKey="clickDeleteButton"/>
4949
<click selector="{{AdminCartPriceRulesFormSection.modalAcceptButton}}" stepKey="confirmDelete"/>
5050
</actionGroup>
51+
52+
<actionGroup name="CreateCartPriceRuleSecondWebsiteActionGroup">
53+
<arguments>
54+
<argument name="ruleName"/>
55+
</arguments>
56+
<amOnPage url="{{AdminCartPriceRulesPage.url}}" stepKey="amOnCartPriceList"/>
57+
<waitForPageLoad stepKey="waitForPriceList"/>
58+
<click selector="{{AdminCartPriceRulesSection.addNewRuleButton}}" stepKey="clickAddNewRule"/>
59+
<fillField selector="{{AdminCartPriceRulesFormSection.ruleName}}" userInput="{{ruleName.name}}" stepKey="fillRuleName"/>
60+
<selectOption selector="{{AdminCartPriceRulesFormSection.websites}}" userInput="Second Website" stepKey="selectWebsites"/>
61+
</actionGroup>
5162
</actionGroups>

app/code/Magento/SalesRule/Test/Mftf/Section/AdminCartPriceRulesSection.xml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,8 @@
1515
<element name="nameColumns" type="text" selector="td[data-column='name']"/>
1616
<element name="rowContainingText" type="text" selector="//*[@id='promo_quote_grid_table']/tbody/tr[td//text()[contains(., '{{var1}}')]]" parameterized="true" timeout="30"/>
1717
<element name="rowByIndex" type="text" selector="tr[data-role='row']:nth-of-type({{var1}})" parameterized="true" timeout="30"/>
18+
<element name="rulesRow" type="text" selector="//tr[@data-role='row']"/>
19+
<element name="pageCurrent" type="text" selector="//label[@for='promo_quote_grid_page-current']"/>
20+
<element name="totalCount" type="text" selector="span[data-ui-id*='grid-total-count']"/>
1821
</section>
1922
</sections>

0 commit comments

Comments
 (0)