Skip to content

Commit 6cad7ae

Browse files
committed
magento/partners-magento2b2b#370: [Determine Coverage]: Add Meaningful Titles and Descriptions For All MFTF Tests in the Company, CompanyCredit, CompanyPayment, CompanyShipping, & ConfigurableSharedCatalog Modules
- Cleaning up StorefrontVerifyCompanyCreditStaticsForAnOrderWithOneRefundedProductTest - Cleaning up StorefrontVerifyCompanyCreditStaticsForAnOrderWithReimburseBalanceTest - Cleaning up StorefrontVerifyCreditAndCommentHistoryForCanceledOrderTest - Deprecating unused entities
1 parent e42f90d commit 6cad7ae

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

app/code/Magento/Sales/Test/Mftf/ActionGroup/SubmitCreditMemoActionGroup.xml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,12 @@
99
<actionGroups xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
1010
xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/actionGroupSchema.xsd">
1111
<actionGroup name="SubmitCreditMemoActionGroup">
12+
<arguments>
13+
<argument name="refundButton" defaultValue="{{AdminCreditMemoTotalSection.submitRefundOfflineEnabled}}" type="string"/>
14+
</arguments>
1215
<grabFromCurrentUrl regex="~/order_id/(\d+)/~" stepKey="grabOrderId"/>
13-
<waitForElementVisible selector="{{AdminCreditMemoTotalSection.submitRefundOfflineEnabled}}" stepKey="waitButtonEnabled"/>
14-
<click selector="{{AdminCreditMemoTotalSection.submitRefundOfflineEnabled}}" stepKey="clickSubmitCreditMemo"/>
16+
<waitForElementVisible selector="{{refundButton}}" stepKey="waitButtonEnabled"/>
17+
<click selector="{{refundButton}}" stepKey="clickSubmitCreditMemo"/>
1518
<waitForElementVisible selector="{{AdminMessagesSection.success}}" stepKey="waitForMessageAppears"/>
1619
<see selector="{{AdminMessagesSection.success}}" userInput="You created the credit memo." stepKey="seeCreditMemoCreateSuccess"/>
1720
<seeInCurrentUrl url="{{AdminOrderDetailsPage.url}}$grabOrderId" stepKey="seeViewOrderPageCreditMemo"/>

0 commit comments

Comments
 (0)