|
50 | 50 | <actionGroup ref="CliCacheCleanActionGroup" stepKey="cleanCache">
|
51 | 51 | <argument name="tags" value="config full_page"/>
|
52 | 52 | </actionGroup>
|
| 53 | + <waitForElementNotVisible selector="{{AdminPayPalPayFlowLinkConfigSection.closeButton('us')}}" stepKey="assertConfigureBtnNotVisible"/> |
53 | 54 | <!--Login to storefront as guest customer-->
|
54 | 55 | <actionGroup ref="LoginToStorefrontActionGroup" stepKey="customerLogin">
|
55 | 56 | <argument name="Customer" value="$$createCustomer$$"/>
|
|
78 | 79 | <waitForPageLoad stepKey="waitForPaymentMethodPageToLoad"/>
|
79 | 80 | <waitForElementClickable selector="{{AdminPayPalPayFlowLinkConfigSection.configureBtn('us')}}" stepKey="waitForClickPayPalConfigureBtnToAssertStatus"/>
|
80 | 81 | <click selector="{{AdminPayPalPayFlowLinkConfigSection.configureBtn('us')}}" stepKey="clickPayPalConfigureBtnToAssertStatus"/>
|
81 |
| - <waitForElementNotVisible selector="{{AdminPayPalPayFlowLinkConfigSection.disabledEnableSolution('us')}}" stepKey="assertNoGreenTickMarkForEnableThisSolutionDropdown"/> |
| 82 | + <waitForElementNotVisible selector="{{AdminPayPalPayFlowLinkConfigSection.disabledEnableSolution('us')}}" stepKey="assertGreenTickMarkAbsentForEnableThisSolutionDropdown"/> |
82 | 83 | <assertElementContainsAttribute stepKey="seePaypalExpressCheckoutIsDisabled">
|
83 | 84 | <expectedResult selector="{{AdminPayPalPayFlowLinkConfigSection.enableExpressCheckout('us')}}" attribute="disabled" type="string"></expectedResult>
|
84 | 85 | </assertElementContainsAttribute>
|
85 |
| - <waitForElementNotVisible selector="{{AdminPayPalPayFlowLinkConfigSection.disabledExpressCheckout('us')}}" stepKey="assertNoGreenTickMarkForEnablePaypalExpressCheckoutDropdown"/> |
| 86 | + <waitForElementNotVisible selector="{{AdminPayPalPayFlowLinkConfigSection.disabledExpressCheckout('us')}}" stepKey="assertGreenTickMarkAbsentForEnablePaypalExpressCheckoutDropdown"/> |
86 | 87 | <seeOptionIsSelected selector="{{AdminPayPalPayFlowLinkConfigSection.enableExpressCheckout('us')}}" userInput="No" stepKey="seeExpressCheckoutIsSetAsNo"/>
|
87 | 88 | <assertElementContainsAttribute stepKey="seePaypalCreditIsDisabled">
|
88 | 89 | <expectedResult selector="{{AdminPayPalPayFlowLinkConfigSection.enablePaypalCredit('us')}}" attribute="disabled" type="string"></expectedResult>
|
89 | 90 | </assertElementContainsAttribute>
|
90 |
| - <waitForElementNotVisible selector="{{AdminPayPalPayFlowLinkConfigSection.disabledPaypalCredit('us')}}" stepKey="assertNoGreenTickMarkForEnablePaypalCreditDropdown"/> |
| 91 | + <waitForElementNotVisible selector="{{AdminPayPalPayFlowLinkConfigSection.disabledPaypalCredit('us')}}" stepKey="assertGreenTickMarkAbsentForEnablePaypalCreditDropdown"/> |
91 | 92 | <seeOptionIsSelected selector="{{AdminPayPalPayFlowLinkConfigSection.enablePaypalCredit('us')}}" userInput="No" stepKey="seePaypalCreditIsSetAsNo"/>
|
92 | 93 | <waitForElementNotVisible selector="{{AdminPayPalPayFlowLinkConfigSection.sortOrder('us')}}" stepKey="assertSortOrderFieldIsDisappeared"/>
|
93 | 94 | <actionGroup ref="AdminSaveConfigActionGroup" stepKey="saveConfiguration"/>
|
|
103 | 104 | <waitForPageLoad stepKey="waitForPaymentMethodPageToLoadAfterEnabling"/>
|
104 | 105 | <waitForElementClickable selector="{{AdminPayPalPayFlowLinkConfigSection.configureBtn('us')}}" stepKey="waitForClickPayPalConfigureBtnToAssertStatusAfterEnabling"/>
|
105 | 106 | <click selector="{{AdminPayPalPayFlowLinkConfigSection.configureBtn('us')}}" stepKey="clickPayPalConfigureBtnToAssertStatusAfterEnabling"/>
|
106 |
| - <waitForElementVisible selector="{{AdminPayPalPayFlowLinkConfigSection.disabledEnableSolution('us')}}" stepKey="assertGreenTickMarkEnableThisSolutionDropdown"/> |
107 |
| - <waitForElementNotVisible selector="{{AdminPayPalPayFlowLinkConfigSection.disabledExpressCheckout('us')}}" stepKey="assertNoGreenTickMarkForEnablePaypalExpressCheckoutDropdown1"/> |
| 107 | + <waitForElementVisible selector="{{AdminPayPalPayFlowLinkConfigSection.disabledEnableSolution('us')}}" stepKey="assertGreenTickMarkPresentEnableThisSolutionDropdown"/> |
| 108 | + <waitForElementNotVisible selector="{{AdminPayPalPayFlowLinkConfigSection.disabledExpressCheckout('us')}}" stepKey="assertGreenTickMarkAbsentForEnablePaypalExpressCheckoutDropdown1"/> |
108 | 109 | <seeOptionIsSelected selector="{{AdminPayPalPayFlowLinkConfigSection.enableExpressCheckout('us')}}" userInput="No" stepKey="seeExpressCheckoutIsSetAsNo1"/>
|
109 | 110 | <assertElementContainsAttribute stepKey="seePaypalCreditIsDisabled1">
|
110 | 111 | <expectedResult selector="{{AdminPayPalPayFlowLinkConfigSection.enablePaypalCredit('us')}}" attribute="disabled" type="string"></expectedResult>
|
111 | 112 | </assertElementContainsAttribute>
|
112 |
| - <waitForElementNotVisible selector="{{AdminPayPalPayFlowLinkConfigSection.disabledPaypalCredit('us')}}" stepKey="assertNoGreenTickMarkForEnablePaypalCreditDropdown1"/> |
| 113 | + <waitForElementNotVisible selector="{{AdminPayPalPayFlowLinkConfigSection.disabledPaypalCredit('us')}}" stepKey="assertGreenTickMarkAbsentForEnablePaypalCreditDropdown1"/> |
113 | 114 | <seeOptionIsSelected selector="{{AdminPayPalPayFlowLinkConfigSection.enablePaypalCredit('us')}}" userInput="No" stepKey="seePaypalCreditIsSetAsNo1"/>
|
114 | 115 | <waitForElementNotVisible selector="{{AdminPayPalPayFlowLinkConfigSection.sortOrder('us')}}" stepKey="assertSortOrderFieldIsDisappeared1"/>
|
115 | 116 | <actionGroup ref="AdminSaveConfigActionGroup" stepKey="saveConfiguration1"/>
|
116 |
| - |
117 | 117 | <actionGroup ref="CliCacheCleanActionGroup" stepKey="cleanCache2">
|
118 | 118 | <argument name="tags" value="config full_page"/>
|
119 | 119 | </actionGroup>
|
| 120 | + <waitForElementNotVisible selector="{{AdminPayPalPayFlowLinkConfigSection.closeButton('us')}}" stepKey="assertConfigBtnNotVisible"/> |
120 | 121 | <!--Go to checkout page and assert paypal express checkout option is present-->
|
121 | 122 | <actionGroup ref="StorefrontNavigateToGuestCheckoutReviewAndPaymentsPageActionGroup" stepKey= "goToStoreFrontCheckoutPageToAssertPaypalPaymentMethodIsPresent"/>
|
122 | 123 | <waitForElementVisible selector="{{StorefrontCheckoutPaymentMethodSection.checkPaymentMethodByName('Credit Card (Payflow Link)')}}" stepKey="creditcardPayflowLinkInPaymentPage"/>
|
123 | 124 | <magentoCLI command="config:set payment/payflow_express/active 1" stepKey="enablePayPalExpressCheckoutPaymentMethod"/>
|
| 125 | + <magentoCLI command="config:set payment/payflow_express_bml/active 0" stepKey="disableAgainPaypalCredit"/> |
124 | 126 | <amOnPage url="{{AdminConfigPaymentMethodsPage.url}}" stepKey="navigateToPaymentConfigurationPageAfterEnablePayPalExpressCheckout"/>
|
125 | 127 | <waitForPageLoad stepKey="waitForPaymentMethodPageToLoad1"/>
|
126 | 128 | <waitForElementClickable selector="{{AdminPayPalPayFlowLinkConfigSection.configureBtn('us')}}" stepKey="waitForClickPayPalConfigureBtnToAssertAfterEnabling"/>
|
127 | 129 | <click selector="{{AdminPayPalPayFlowLinkConfigSection.configureBtn('us')}}" stepKey="clickPayPalConfigureBtnToAssertAfterEnabling"/>
|
128 |
| - <waitForElementVisible selector="{{AdminPayPalPayFlowLinkConfigSection.disabledEnableSolution('us')}}" stepKey="assertGreenTickMarkEnableThisSolutionDropdown1"/> |
129 |
| - <waitForElementVisible selector="{{AdminPayPalPayFlowLinkConfigSection.disabledExpressCheckout('us')}}" stepKey="assertGreenTickMarkForEnablePaypalExpressCheckoutDropdown1"/> |
130 |
| - <waitForElementNotVisible selector="{{AdminPayPalPayFlowLinkConfigSection.disabledPaypalCredit('us')}}" stepKey="assertNoGreenTickMarkForEnablePaypalCreditDropdown2"/> |
| 130 | + <waitForElementVisible selector="{{AdminPayPalPayFlowLinkConfigSection.disabledEnableSolution('us')}}" stepKey="assertGreenTickMarkPresentEnableThisSolutionDropdown1"/> |
| 131 | + <waitForElementVisible selector="{{AdminPayPalPayFlowLinkConfigSection.disabledExpressCheckout('us')}}" stepKey="assertGreenTickMarkPresentForEnablePaypalExpressCheckoutDropdown1"/> |
| 132 | + <waitForElementNotVisible selector="{{AdminPayPalPayFlowLinkConfigSection.disabledPaypalCredit('us')}}" stepKey="assertGreenTickMarkAbsentForEnablePaypalCreditDropdown2"/> |
131 | 133 | <seeOptionIsSelected selector="{{AdminPayPalPayFlowLinkConfigSection.enablePaypalCredit('us')}}" userInput="No" stepKey="seePaypalCreditIsSetAsNo2"/>
|
132 | 134 | <waitForElementNotVisible selector="{{AdminPayPalPayFlowLinkConfigSection.sortOrder('us')}}" stepKey="assertSortOrderFieldIsDisappeared2"/>
|
133 | 135 | <actionGroup ref="AdminSaveConfigActionGroup" stepKey="saveConfiguration2"/>
|
134 | 136 | <actionGroup ref="CliCacheCleanActionGroup" stepKey="cleanCache3">
|
135 | 137 | <argument name="tags" value="config full_page"/>
|
136 | 138 | </actionGroup>
|
| 139 | + <waitForElementNotVisible selector="{{AdminPayPalPayFlowLinkConfigSection.closeButton('us')}}" stepKey="assertConfigureBtnNotToBeVisible"/> |
137 | 140 | <!--Go to checkout page and assert paypal express checkout option is present-->
|
138 | 141 | <actionGroup ref="StorefrontNavigateToGuestCheckoutReviewAndPaymentsPageActionGroup" stepKey= "goToStoreFrontCheckoutPageToAssertPaypalPaymentMethodsPresent"/>
|
139 | 142 | <waitForElementVisible selector="{{StorefrontCheckoutPaymentMethodSection.checkPaymentMethodByName('Credit Card (Payflow Link)')}}" stepKey="creditcardPayflowLinkInPaymentPage2"/>
|
|
0 commit comments