Skip to content

Commit cc98ae9

Browse files
committed
ACQE-6260: In-Context Checkout with PayPal Express Checkout with API Credentials from checkout page1
1 parent ab21550 commit cc98ae9

File tree

2 files changed

+7
-21
lines changed

2 files changed

+7
-21
lines changed

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

Lines changed: 6 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,6 @@
1515
<severity value="MAJOR"/>
1616
<testCaseId value="AC-5206"/>
1717
<group value="3rd_party_integration"/>
18-
<!-- <group value="paypalExpress"/>-->
19-
<!-- <group value="pr_exclude"/>-->
2018
</annotations>
2119
<before>
2220
<createData entity="SimpleProduct" stepKey="simpleProduct"/>
@@ -25,6 +23,7 @@
2523
<actionGroup ref="AdminLoginActionGroup" stepKey="loginAsAdmin"/>
2624
<!--Add new tax rates. Go to tax rule page -->
2725
<actionGroup ref="AddNewTaxRuleActionGroup" stepKey="addFirstTaxRuleActionGroup"/>
26+
<waitForElementVisible selector="{{AdminTaxRulesSection.ruleName}}" stepKey="waitForRuleName"/>
2827
<fillField stepKey="fillRuleName" selector="{{AdminTaxRulesSection.ruleName}}" userInput="{{TaxRule.name}}"/>
2928
<!-- Adding product rate tax for NY -->
3029
<actionGroup ref="AddNewTaxRateNoZipUIActionGroup" stepKey="addProductTaxRateForCA">
@@ -34,15 +33,11 @@
3433
<actionGroup ref="ClickSaveButtonActionGroup" stepKey="saveAnotherTaxRule">
3534
<argument name="message" value="You saved the tax rule."/>
3635
</actionGroup>
37-
<!-- Enable flat rate method -->
38-
<magentoCLI command="config:set {{EnableFlatRateConfigData.path}} {{EnableFlatRateConfigData.value}}" stepKey="enableFlatRate"/>
3936
<actionGroup ref="AdminPayPalExpressCheckoutEnableActionGroup" stepKey="ConfigPayPalExpress">
4037
<argument name="credentials" value="SamplePaypalExpressConfig2"/>
4138
</actionGroup>
4239
</before>
4340
<after>
44-
<!-- Disable flat rate method -->
45-
<magentoCLI command="config:set {{DisableFlatRateConfigData.path}} {{DisableFlatRateConfigData.value}}" stepKey="disableFlatRate"/>
4641
<magentoCLI command="config:set payment/paypal_express/active 0" stepKey="disablePayPalExpress"/>
4742
<deleteData createDataKey="simpleProduct" stepKey="deleteProduct"/>
4843
<deleteData createDataKey="createCustomer" stepKey="deleteCustomer"/>
@@ -58,7 +53,6 @@
5853
<argument name="submenuUiId" value="{{AdminMenuStoresTaxZonesAndRates.dataUiId}}"/>
5954
</actionGroup>
6055
<actionGroup ref="deleteEntitySecondaryGrid" stepKey="deleteProductTaxRule1">
61-
<!-- <argument name="name" value="{{SimpleTaxCA.identifier}}-{{SimpleTaxCA.rate}}"/>-->
6256
<argument name="name" value="{{SimpleTaxTexas.identifier}}-{{SimpleTaxTexas.rate}}"/>
6357
<argument name="searchInput" value="{{AdminSecondaryGridSection.taxIdentifierSearch}}"/>
6458
</actionGroup>
@@ -90,7 +84,7 @@
9084
</actionGroup>
9185
<!-- Go to Order review -->
9286
<actionGroup ref="StorefrontCheckoutClickNextOnShippingStepActionGroup" stepKey="goToCheckoutPaymentPage"/>
93-
<waitForElement selector="{{StorefrontCheckoutPaymentMethodSection.checkPaymentMethodByName('PayPal Express Checkout')}}" stepKey="waitForPayPalExpressCheckoutIsPresent"/>
87+
<waitForElementClickable selector="{{StorefrontCheckoutPaymentMethodSection.checkPaymentMethodByName('PayPal Express Checkout')}}" stepKey="waitForPayPalExpressCheckoutIsPresent"/>
9488
<click selector="{{StorefrontCheckoutPaymentMethodSection.checkPaymentMethodByName('PayPal Express Checkout')}}" stepKey="clickPayPalExpressCheckout"/>
9589
<waitForPageLoad stepKey="waitForPaypalExpressCheckoutToBeLoaded"/>
9690
<!-- Click on Paypal paypal button-->
@@ -101,16 +95,8 @@
10195
<actionGroup ref="PayPalAssertTransferLineAndShippingMethodNotExistActionGroup" stepKey="assertPayPalSettings"/>
10296
<!--Click PayPal button and go back to Magento site-->
10397
<actionGroup ref="StorefrontPaypalSwitchBackToMagentoFromCheckoutPageActionGroup" stepKey="goBackToMagentoSite"/>
104-
<!-- <waitForElementVisible selector="{{CheckoutSuccessMainSection.orderNumber}}" stepKey="waitForOrderNumberToBeGrabbed"/>-->
105-
<!-- <grabTextFrom selector="{{CheckoutSuccessMainSection.orderNumber}}" stepKey="grabOrderNumber"/>-->
106-
<!-- <waitForText selector="{{CheckoutSuccessMainSection.success}}" userInput="We'll email you an order confirmation with details and tracking info." stepKey="seeSuccessMessage"/>-->
107-
<!-- &lt;!&ndash; Go to order page &ndash;&gt;-->
108-
<!-- <actionGroup ref="OpenOrderByIdActionGroup" stepKey="openFirstOrderPage">-->
109-
<!-- <argument name="orderId" value="{$grabOrderNumber}"/>-->
110-
<!-- </actionGroup>-->
111-
<!-- See order successful Page instead of Order Review Page -->
112-
<waitForElement selector="{{CheckoutSuccessMainSection.successTitle}}" stepKey="waitForLoadSuccessPageTitle"/>
113-
<waitForElement selector="{{CheckoutSuccessMainSection.success}}" stepKey="waitForLoadSuccessPage"/>
98+
<waitForElementVisible selector="{{CheckoutSuccessMainSection.successTitle}}" stepKey="waitForLoadSuccessPageTitle"/>
99+
<waitForElementVisible selector="{{CheckoutSuccessMainSection.success}}" stepKey="waitForLoadSuccessPage"/>
114100
<!--Grab order number-->
115101
<waitForElementVisible selector="{{CheckoutSuccessMainSection.orderLink}}" stepKey="waitForOrderNumberToBeGrabbed"/>
116102
<grabTextFrom selector="{{CheckoutSuccessMainSection.orderLink}}" stepKey="grabOrderNumber"/>
@@ -125,7 +111,7 @@
125111
<!--Open Invoice-->
126112
<waitForElementClickable selector="{{AdminOrderDetailsOrderViewSection.invoices}}" stepKey="waitForInvoicesTabClickable" />
127113
<click selector="{{AdminOrderDetailsOrderViewSection.invoices}}" stepKey="openInvoicesTab"/>
128-
<!--Assert Invoice amount -->
129-
<waitForElementVisible selector="{{AdminOrderDetailsMainActionsSection.invoiceTabDetails}}" stepKey="waitForInvoiceSectionDetailsToBeAppeared"/>
114+
<!--Check Invoice Section -->
115+
<waitForElementVisible selector="{{AdminOrderDetailsMainActionsSection.invoiceTabContent}}" stepKey="waitForInvoiceSectionContentToBeAppeared"/>
130116
</test>
131117
</tests>

app/code/Magento/Sales/Test/Mftf/Section/AdminOrderDetailsMainActionsSection.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
<element name="hold" type="button" selector="#order-view-hold-button" timeout="30"/>
1818
<element name="invoice" type="button" selector="#order_invoice" timeout="30"/>
1919
<element name="invoiceTab" type="button" selector="#sales_order_view_tabs_order_invoices" timeout="30"/>
20-
<element name="invoiceTabDetails" type="text" selector="#sales_order_view_tabs_order_invoices_content > div > div.admin__data-grid-wrap > table > tbody > tr > td" timeout="30"/>
20+
<element name="invoiceTabContent" type="text" selector="#sales_order_view_tabs_order_invoices_content > div > div.admin__data-grid-wrap > table > tbody > tr > td" timeout="30"/>
2121
<element name="ship" type="button" selector="#order_ship" timeout="30"/>
2222
<element name="reorder" type="button" selector="#order_reorder" timeout="30"/>
2323
<element name="edit" type="button" selector="#order_edit" timeout="30"/>

0 commit comments

Comments
 (0)