|
15 | 15 | <severity value="MAJOR"/> |
16 | 16 | <testCaseId value="AC-5206"/> |
17 | 17 | <group value="3rd_party_integration"/> |
18 | | - <!-- <group value="paypalExpress"/>--> |
19 | | - <!-- <group value="pr_exclude"/>--> |
20 | 18 | </annotations> |
21 | 19 | <before> |
22 | 20 | <createData entity="SimpleProduct" stepKey="simpleProduct"/> |
|
25 | 23 | <actionGroup ref="AdminLoginActionGroup" stepKey="loginAsAdmin"/> |
26 | 24 | <!--Add new tax rates. Go to tax rule page --> |
27 | 25 | <actionGroup ref="AddNewTaxRuleActionGroup" stepKey="addFirstTaxRuleActionGroup"/> |
| 26 | + <waitForElementVisible selector="{{AdminTaxRulesSection.ruleName}}" stepKey="waitForRuleName"/> |
28 | 27 | <fillField stepKey="fillRuleName" selector="{{AdminTaxRulesSection.ruleName}}" userInput="{{TaxRule.name}}"/> |
29 | 28 | <!-- Adding product rate tax for NY --> |
30 | 29 | <actionGroup ref="AddNewTaxRateNoZipUIActionGroup" stepKey="addProductTaxRateForCA"> |
|
34 | 33 | <actionGroup ref="ClickSaveButtonActionGroup" stepKey="saveAnotherTaxRule"> |
35 | 34 | <argument name="message" value="You saved the tax rule."/> |
36 | 35 | </actionGroup> |
37 | | - <!-- Enable flat rate method --> |
38 | | - <magentoCLI command="config:set {{EnableFlatRateConfigData.path}} {{EnableFlatRateConfigData.value}}" stepKey="enableFlatRate"/> |
39 | 36 | <actionGroup ref="AdminPayPalExpressCheckoutEnableActionGroup" stepKey="ConfigPayPalExpress"> |
40 | 37 | <argument name="credentials" value="SamplePaypalExpressConfig2"/> |
41 | 38 | </actionGroup> |
42 | 39 | </before> |
43 | 40 | <after> |
44 | | - <!-- Disable flat rate method --> |
45 | | - <magentoCLI command="config:set {{DisableFlatRateConfigData.path}} {{DisableFlatRateConfigData.value}}" stepKey="disableFlatRate"/> |
46 | 41 | <magentoCLI command="config:set payment/paypal_express/active 0" stepKey="disablePayPalExpress"/> |
47 | 42 | <deleteData createDataKey="simpleProduct" stepKey="deleteProduct"/> |
48 | 43 | <deleteData createDataKey="createCustomer" stepKey="deleteCustomer"/> |
|
58 | 53 | <argument name="submenuUiId" value="{{AdminMenuStoresTaxZonesAndRates.dataUiId}}"/> |
59 | 54 | </actionGroup> |
60 | 55 | <actionGroup ref="deleteEntitySecondaryGrid" stepKey="deleteProductTaxRule1"> |
61 | | - <!-- <argument name="name" value="{{SimpleTaxCA.identifier}}-{{SimpleTaxCA.rate}}"/>--> |
62 | 56 | <argument name="name" value="{{SimpleTaxTexas.identifier}}-{{SimpleTaxTexas.rate}}"/> |
63 | 57 | <argument name="searchInput" value="{{AdminSecondaryGridSection.taxIdentifierSearch}}"/> |
64 | 58 | </actionGroup> |
|
90 | 84 | </actionGroup> |
91 | 85 | <!-- Go to Order review --> |
92 | 86 | <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"/> |
94 | 88 | <click selector="{{StorefrontCheckoutPaymentMethodSection.checkPaymentMethodByName('PayPal Express Checkout')}}" stepKey="clickPayPalExpressCheckout"/> |
95 | 89 | <waitForPageLoad stepKey="waitForPaypalExpressCheckoutToBeLoaded"/> |
96 | 90 | <!-- Click on Paypal paypal button--> |
|
101 | 95 | <actionGroup ref="PayPalAssertTransferLineAndShippingMethodNotExistActionGroup" stepKey="assertPayPalSettings"/> |
102 | 96 | <!--Click PayPal button and go back to Magento site--> |
103 | 97 | <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 | | - <!-- <!– Go to order page –>--> |
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"/> |
114 | 100 | <!--Grab order number--> |
115 | 101 | <waitForElementVisible selector="{{CheckoutSuccessMainSection.orderLink}}" stepKey="waitForOrderNumberToBeGrabbed"/> |
116 | 102 | <grabTextFrom selector="{{CheckoutSuccessMainSection.orderLink}}" stepKey="grabOrderNumber"/> |
|
125 | 111 | <!--Open Invoice--> |
126 | 112 | <waitForElementClickable selector="{{AdminOrderDetailsOrderViewSection.invoices}}" stepKey="waitForInvoicesTabClickable" /> |
127 | 113 | <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"/> |
130 | 116 | </test> |
131 | 117 | </tests> |
0 commit comments