Skip to content

Commit 546a91a

Browse files
committed
ACQE-7162:Checking Bank Transfer Payment store label is being displayed on order/invoice/shipping/creditmemo details
Testcase Added
1 parent c94dedc commit 546a91a

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed

app/code/Magento/Paypal/Test/Mftf/Test/AdminPaymentBankTransferHavingMultipleStoresTest.xml

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
<group value="Payments"/>
1919
</annotations>
2020
<before>
21+
<magentoCLI command="config:set {{EnablePaymentBankTransferConfigData.path}} {{EnablePaymentBankTransferConfigData.value}}" stepKey="enableBankTransferPayment"/>
2122
<createData entity="defaultSimpleProduct" stepKey="createProduct"/>
2223
<actionGroup ref="AdminLoginActionGroup" stepKey="loginAsAdmin"/>
2324
<actionGroup ref="CreateCustomStoreActionGroup" stepKey="createCustomStore">
@@ -34,25 +35,21 @@
3435
<argument name="storeGroupName" value="{{customStoreGroup.name}}"/>
3536
<argument name="defaultStoreName" value="{{customStoreGroup.name}}"/>
3637
</actionGroup>
37-
<magentoCLI command="config:set {{enabledBankTransferPaymentOrder.label}} {{enabledBankTransferPaymentOrder.value}}" stepKey="enableBankTransfer"/>
3838
</before>
3939
<after>
4040
<magentoCLI command="config:set {{DisablePaymentBankTransferConfigData.path}} {{DisablePaymentBankTransferConfigData.value}}" stepKey="disableBankTransferPayment"/>
4141
<deleteData stepKey="deleteProduct" createDataKey="createProduct"/>
4242
<actionGroup ref="AdminLogoutActionGroup" stepKey="logout"/>
4343
</after>
4444
<amOnPage url="{{AdminConfigPaymentMethodsPage.url}}" stepKey="navigateToPaymentConfigurationPage"/>
45-
<waitForPageLoad stepKey="waitForSecondStorePageLoad"/>
4645
<actionGroup ref="AdminSwitchSecondStoreViewActionGroup" stepKey="AdminSwitchSecondStoreView">
4746
<argument name="secondStoreView" value="customStoreEN"/>
4847
</actionGroup>
49-
<waitForElementClickable selector="{{CatalogSection.expandedTab}}" stepKey="waitToClickExpandForBankTransferPayment"/>
50-
<click selector="{{CatalogSection.expandedTab}}" stepKey="clickExpandForBankTransferPayment"/>
48+
<waitForElementVisible selector="{{CatalogSection.expandedTab}}" stepKey="clickExpandSearchEngineOptimisation1"/>
49+
<click selector="{{CatalogSection.expandedTab}}" stepKey="clickExpandSearchEngineOptimisation2"/>
5150
<uncheckOption selector="{{CatalogSection.productsPerPageOnGridBankTransferPaymentDefaultValueUseConfigCheckbox}}" stepKey="uncheckUseSystemValue"/>
5251
<fillField selector="{{CatalogSection.productsPerPageOnGridAllowedBankTransferPaymentValues}}" userInput="Bank Transfer Payment(Second)" stepKey="fillProductQuantity"/>
53-
<waitForElementClickable selector="{{AdminConfigSection.saveButton}}" stepKey="waitForSaveConfigbtn" />
54-
<click selector="{{AdminConfigSection.saveButton}}" stepKey="saveConfig"/>
55-
<waitForPageLoad stepKey="waitForPageLoad"/>
52+
<actionGroup ref="AdminSavePaymentConfigActionGroup" stepKey="clickSaveConfigBtn"/>
5653
<actionGroup ref="StorefrontOpenProductEntityPageActionGroup" stepKey="openProductPage">
5754
<argument name="product" value="$createProduct$"/>
5855
</actionGroup>
@@ -75,10 +72,11 @@
7572
<waitForText selector="{{AdminOrderPaymentInformationSection.paymentMethod}}" userInput="Bank Transfer Payment(Second)" stepKey="seePaymentMethodName"/>
7673
<click selector="{{AdminOrderDetailsMainActionsSection.ship}}" stepKey="clickShipAction"/>
7774
<click selector="{{AdminShipmentMainActionsSection.submitShipment}}" stepKey="clickSubmitShipment"/>
78-
<scrollTo selector="{{CatalogSection.paymentInformation}}" stepKey="scrollToPaymentAndShippingInformation1"/>
75+
<scrollTo selector="{{CatalogSection.paymentInformation}}" stepKey="scrollToPaymentAndShippingInformation2"/>
7976
<waitForText selector="{{AdminOrderPaymentInformationSection.paymentMethod}}" userInput="Bank Transfer Payment(Second)" stepKey="seePaymentMethodName2"/>
8077
<actionGroup ref="AdminStartToCreateCreditMemoFromOrderPageActionGroup" stepKey="startCreatingCreditMemo"/>
8178
<actionGroup ref="SubmitCreditMemoActionGroup" stepKey="submitCreditMemo"/>
79+
<scrollTo selector="{{CatalogSection.paymentInformation}}" stepKey="scrollToPaymentAndShippingInformation3"/>
8280
<waitForText selector="{{AdminOrderPaymentInformationSection.paymentMethod}}" userInput="Bank Transfer Payment(Second)" stepKey="seePaymentMethodName3"/>
8381
</test>
8482
</tests>

0 commit comments

Comments
 (0)