|
17 | 17 | <testCaseId value="AC-5671"/>
|
18 | 18 | <group value="Payments"/>
|
19 | 19 | </annotations>
|
20 |
| - <before> |
| 20 | + <before> |
21 | 21 | <magentoCLI command="config:set {{EnablePaymentBankTransferConfigData.path}} {{EnablePaymentBankTransferConfigData.value}}" stepKey="enableBankTransferPayment"/>
|
22 |
| - <!--Create customer--> |
23 |
| - <createData entity="Simple_US_CA_Customer" stepKey="createCustomer"/> |
24 | 22 | <createData entity="defaultSimpleProduct" stepKey="createProduct"/>
|
25 | 23 | <actionGroup ref="AdminLoginActionGroup" stepKey="loginAsAdmin"/>
|
26 | 24 | <actionGroup ref="CreateCustomStoreActionGroup" stepKey="createCustomStore">
|
|
41 | 39 | <after>
|
42 | 40 | <magentoCLI command="config:set {{DisablePaymentBankTransferConfigData.path}} {{DisablePaymentBankTransferConfigData.value}}" stepKey="disableBankTransferPayment"/>
|
43 | 41 | <deleteData stepKey="deleteProduct" createDataKey="createProduct"/>
|
| 42 | + <actionGroup ref="DeleteCustomStoreActionGroup" stepKey="deleteCustomStore"> |
| 43 | + <argument name="storeGroupName" value="customStoreGroup.name"/> |
| 44 | + </actionGroup> |
| 45 | + <actionGroup ref="CliIndexerReindexActionGroup" stepKey="reindex"> |
| 46 | + <argument name="indices" value=""/> |
| 47 | + </actionGroup> |
44 | 48 | <actionGroup ref="AdminLogoutActionGroup" stepKey="logout"/>
|
45 | 49 | </after>
|
46 |
| - <amOnPage url="{{AdminConfigPaymentMethodsPage.url}}" stepKey="navigateToPaymentConfigurationPage"/> |
| 50 | + <actionGroup ref="AdminNavigateToConfigurationPaymentMethodSectionActionGroup" stepKey="navigateToPaymentConfigurationPage"/> |
47 | 51 | <actionGroup ref="AdminSwitchSecondStoreViewActionGroup" stepKey="AdminSwitchSecondStoreView">
|
48 | 52 | <argument name="secondStoreView" value="customStoreEN"/>
|
49 | 53 | </actionGroup>
|
50 | 54 | <conditionalClick selector="{{CatalogSection.expandedTab}}" dependentSelector="{{CatalogSection.productsPerPageOnGridBankTransferPaymentDefaultValueUseConfigCheckbox}}" visible="false" stepKey="expandOtherPaypalConfigButton"/>
|
51 | 55 | <uncheckOption selector="{{CatalogSection.productsPerPageOnGridBankTransferPaymentDefaultValueUseConfigCheckbox}}" stepKey="uncheckUseSystemValue"/>
|
| 56 | + <waitForElementVisible selector="{{CatalogSection.productsPerPageOnGridAllowedBankTransferPaymentValues}}" stepKey="waitForContentHeading"/> |
52 | 57 | <fillField selector="{{CatalogSection.productsPerPageOnGridAllowedBankTransferPaymentValues}}" userInput="Bank Transfer Payment(Second)" stepKey="fillProductQuantity"/>
|
53 | 58 | <actionGroup ref="AdminSavePaymentConfigActionGroup" stepKey="clickSaveConfigBtn"/>
|
54 | 59 | <actionGroup ref="CliCacheCleanActionGroup" stepKey="cleanInvalidatedCaches">
|
55 | 60 | <argument name="tags" value="config full_page"/>
|
56 | 61 | </actionGroup>
|
57 |
| - <!--Open customer edit page--> |
58 |
| - <actionGroup ref="AdminOpenCustomerEditPageActionGroup" stepKey="openCustomerEditPage"> |
59 |
| - <argument name="customerId" value="$createCustomer.id$"/> |
60 |
| - </actionGroup> |
61 |
| - <!--Navigate to "Account Information" tab--> |
62 |
| - <actionGroup ref="AdminOpenAccountInformationTabFromCustomerEditPageActionGroup" stepKey="openAccountInformationEditPage"/> |
63 |
| - <actionGroup ref="AdminSelectStoreInCustomerEditPageActionGroup" stepKey="selectWebsiteGroupStoreForFRCustomerMembersGroup"> |
64 |
| - <argument name="store" value="{{customStoreEN.name}}"/> |
65 |
| - </actionGroup> |
66 |
| - <waitForPageLoad stepKey="waitForCustomersPage"/> |
67 |
| - <actionGroup ref="CliIndexerReindexActionGroup" stepKey="reindex"> |
68 |
| - <argument name="indices" value=""/> |
69 |
| - </actionGroup> |
70 |
| - <!-- Login as Customer Login from Customer page --> |
71 |
| - <actionGroup ref="LoginToStorefrontActionGroup" stepKey="customerLogin"> |
72 |
| - <argument name="Customer" value="$$createCustomer$$" /> |
73 |
| - </actionGroup> |
74 | 62 | <actionGroup ref="StorefrontOpenProductEntityPageActionGroup" stepKey="openProductPage">
|
75 | 63 | <argument name="product" value="$createProduct$"/>
|
76 | 64 | </actionGroup>
|
|
79 | 67 | <argument name="productQty" value="1"/>
|
80 | 68 | </actionGroup>
|
81 | 69 | <actionGroup ref="StorefrontOpenCheckoutPageActionGroup" stepKey="navigateToCheckoutPage"/>
|
82 |
| - <actionGroup ref="StorefrontSetShippingMethodActionGroup" stepKey="selectFlatrate"> |
83 |
| - <argument name="shippingMethodName" value="Flat Rate"/> |
84 |
| - </actionGroup> |
85 |
| - <actionGroup ref="StorefrontCheckoutClickNextOnShippingStepActionGroup" stepKey="clickNext"/> |
| 70 | + <actionGroup ref="GuestCheckoutFillingShippingSectionActionGroup" stepKey="guestCheckoutFillingShipping"/> |
| 71 | + <waitForElementClickable selector="{{StorefrontCheckoutPaymentMethodsSection.bankTransfer}}" stepKey="waitForBankTransferMethod" /> |
86 | 72 | <click selector="{{StorefrontCheckoutPaymentMethodsSection.bankTransfer}}" stepKey="selectBankTransferMethod"/>
|
87 | 73 | <actionGroup ref="ClickPlaceOrderActionGroup" stepKey="checkoutPlaceOrder"/>
|
88 |
| - <waitForElementVisible selector="{{CheckoutSuccessMainSection.orderNumber22}}" stepKey="waitForOderNumber"/> |
89 |
| - <grabTextFrom selector="{{CheckoutSuccessMainSection.orderNumber22}}" stepKey="grabOrderNumber"/> |
| 74 | + <grabTextFrom selector="{{CheckoutSuccessMainSection.orderNumberWithoutLink}}" stepKey="grabOrderNumber"/> |
90 | 75 | <actionGroup ref="AdminOrdersPageOpenActionGroup" stepKey="goToOrders"/>
|
91 | 76 | <actionGroup ref="OpenOrderByIdActionGroup" stepKey="openOrder">
|
92 | 77 | <argument name="orderId" value="{$grabOrderNumber}"/>
|
93 | 78 | </actionGroup>
|
94 | 79 | <actionGroup ref="AdminClickInvoiceButtonOrderViewActionGroup" stepKey="clickInvoiceButton"/>
|
95 | 80 | <actionGroup ref="AdminInvoiceClickSubmitActionGroup" stepKey="clickSubmitInvoice"/>
|
96 | 81 | <scrollTo selector="{{CatalogSection.paymentInformation}}" stepKey="scrollToPaymentAndShippingInformation"/>
|
97 |
| - <waitForText selector="{{AdminOrderPaymentInformationSection.paymentMethod}}" userInput="Bank Transfer Payment(Second)" stepKey="seePaymentMethodName"/> |
| 82 | + <waitForText selector="{{AdminOrderPaymentInformationSection.paymentMethod}}" userInput="Bank Transfer Payment(Second)" stepKey="seePaymentMethodNameU"/> |
| 83 | + <waitForElementClickable selector="{{AdminOrderDetailsMainActionsSection.ship}}" stepKey="waitForShipActionClickable" /> |
98 | 84 | <click selector="{{AdminOrderDetailsMainActionsSection.ship}}" stepKey="clickShipAction"/>
|
| 85 | + <waitForElementClickable selector="{{AdminShipmentMainActionsSection.submitShipment}}" stepKey="waitForSubmitShipmentButtonClickable" /> |
99 | 86 | <click selector="{{AdminShipmentMainActionsSection.submitShipment}}" stepKey="clickSubmitShipment"/>
|
100 |
| - <scrollTo selector="{{CatalogSection.paymentInformation}}" stepKey="scrollToPaymentAndShippingInformation2"/> |
101 |
| - <waitForText selector="{{AdminOrderPaymentInformationSection.paymentMethod}}" userInput="Bank Transfer Payment(Second)" stepKey="seePaymentMethodName2"/> |
| 87 | + <scrollTo selector="{{CatalogSection.paymentInformation}}" stepKey="scrollToPaymentAndShippingInformationUnderShipmentPage"/> |
| 88 | + <waitForText selector="{{AdminOrderPaymentInformationSection.paymentMethod}}" userInput="Bank Transfer Payment(Second)" stepKey="seePaymentMethodNameUnderShipmentPage"/> |
102 | 89 | <actionGroup ref="AdminStartToCreateCreditMemoFromOrderPageActionGroup" stepKey="startCreatingCreditMemo"/>
|
103 | 90 | <actionGroup ref="SubmitCreditMemoActionGroup" stepKey="submitCreditMemo"/>
|
104 |
| - <scrollTo selector="{{CatalogSection.paymentInformation}}" stepKey="scrollToPaymentAndShippingInformation3"/> |
105 |
| - <waitForText selector="{{AdminOrderPaymentInformationSection.paymentMethod}}" userInput="Bank Transfer Payment(Second)" stepKey="seePaymentMethodName3"/> |
| 91 | + <scrollTo selector="{{CatalogSection.paymentInformation}}" stepKey="scrollToPaymentAndShippingInformationUnderCreditMemoPage"/> |
| 92 | + <waitForText selector="{{AdminOrderPaymentInformationSection.paymentMethod}}" userInput="Bank Transfer Payment(Second)" stepKey="seePaymentMethodNameUnderCreditMemoPage"/> |
106 | 93 | </test>
|
107 | 94 | </tests>
|
0 commit comments