Skip to content

Commit d6aec44

Browse files
ACQE-6375 : Registered Checkout Using PayPal Smart Button and Flat Rate
Replaces see with waitForText and removed extra wait as pe rcode review comments
1 parent 22f3dee commit d6aec44

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

app/code/Magento/Paypal/Test/Mftf/ActionGroup/StorefrontLoginToPayPalPaymentAccountTwoStepActionGroup.xml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@
2121
<waitForElementClickable selector="{{PayPalPaymentSection.email}}" stepKey="waitForLoginForm"/>
2222
<click selector="{{PayPalPaymentSection.email}}" stepKey="focusOnEmailField"/>
2323
<clearField selector="{{PayPalPaymentSection.email}}" stepKey="clearEmailField"/>
24-
<waitForElementVisible selector="{{PayPalPaymentSection.email}}" stepKey="waitForLoginField"/>
2524
<fillField selector="{{PayPalPaymentSection.email}}" userInput="{{credentials.magento/PAYPAL_LOGIN}}" stepKey="fillEmail"/>
2625
<click selector="{{PayPalPaymentSection.nextButton}}" stepKey="clickNext"/>
2726
<waitForElementVisible selector="{{PayPalPaymentSection.password}}" stepKey="waitForPasswordField"/>

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

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,6 @@
2020
</annotations>
2121
<before>
2222
<actionGroup ref="AdminLoginActionGroup" stepKey="login"/>
23-
<!-- Enable Flat rate -->
24-
<magentoCLI command="config:set {{EnableFlatRateConfigData.path}} {{EnableFlatRateConfigData.value}}" stepKey="enableFlatRate"/>
2523
<!-- Create Category -->
2624
<createData entity="SimpleSubCategory" stepKey="createCategory"/>
2725
<createData entity="ApiSimplePrice10Qty10" stepKey="createProduct">
@@ -96,8 +94,8 @@
9694
<waitForPageLoad stepKey="waitForPagePlacingOrderSuccessfully" />
9795
<!--See success messages-->
9896
<waitForElementVisible selector="{{CheckoutSuccessMainSection.successTitle}}" stepKey="waitForSuccessTitle"/>
99-
<see selector="{{CheckoutSuccessMainSection.successTitle}}" userInput="Thank you for your purchase!" stepKey="seeSuccessTitle"/>
100-
<see selector="{{CheckoutSuccessMainSection.orderNumberText}}" userInput="Your order number is: " stepKey="seeOrderNumber"/>
97+
<waitForText selector="{{CheckoutSuccessMainSection.successTitle}}" userInput="Thank you for your purchase!" stepKey="seeSuccessTitle"/>
98+
<waitForText selector="{{CheckoutSuccessMainSection.orderNumberText}}" userInput="Your order number is: " stepKey="seeOrderNumber"/>
10199
<waitForElementVisible selector="{{CheckoutSuccessMainSection.orderNumber22}}" stepKey="waitForOrderNumberToBeGrabbed"/>
102100
<grabTextFrom selector="{{CheckoutSuccessMainSection.orderNumber22}}" stepKey="grabOrderNumber"/>
103101
<!-- Go to order page -->

0 commit comments

Comments
 (0)