Skip to content

Commit e26a703

Browse files
committed
ACQE-6496:Configuration for paypal pay later on Category page
Removing pr_exclude as groupvalue in AdminConfigPaymentsStandardTest
1 parent c3445e0 commit e26a703

File tree

4 files changed

+24
-35
lines changed

4 files changed

+24
-35
lines changed

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

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -24,15 +24,15 @@
2424
<selectOption selector="{{PayPalStandardConfigSection.enableSolution(countryCode)}}" userInput="No" stepKey="disableSolution"/>
2525
<selectOption selector="{{PayPalStandardConfigSection.enablePaylaterExperience(countryCode)}}" userInput="Yes" stepKey="EnablePaylaterExperience"/>
2626
<waitForPageLoad stepKey="waitForadvisepaylaterdropdown"/>
27-
<waitForElementClickable selector="{{PayPalStandardConfigSection.advisepaylater(countryCode)}}" stepKey="waitForAdvisepaylaterClickable"/>
28-
<click selector="{{PayPalStandardConfigSection.advisepaylater(countryCode)}}" stepKey="clickAdvisePaylater"/>
27+
<waitForElementClickable selector="{{PayPalStandardConfigSection.advisePaylater(countryCode)}}" stepKey="waitForAdvisepaylaterClickable"/>
28+
<click selector="{{PayPalStandardConfigSection.advisePaylater(countryCode)}}" stepKey="clickAdvisePaylater"/>
2929
<selectOption selector="{{PayPalStandardConfigSection.enablePaypalPaylater(countryCode)}}" userInput="Yes" stepKey="EnablePaypallater"/>
30-
<waitForElementClickable selector="{{PayPalStandardConfigSection.expandcategorypage(countryCode)}}" stepKey="waitForcategorypageClickable"/>
31-
<click selector="{{PayPalStandardConfigSection.expandcategorypage(countryCode)}}" stepKey="clickCategoryPage"/>
30+
<waitForElementClickable selector="{{PayPalStandardConfigSection.expandCategoryPage(countryCode)}}" stepKey="waitForcategorypageClickable"/>
31+
<click selector="{{PayPalStandardConfigSection.expandCategoryPage(countryCode)}}" stepKey="clickCategoryPage"/>
3232
<selectOption selector ="{{PayPalStandardConfigSection.display(countryCode)}}" userInput="Yes" stepKey="enableDisplayforPaylaterCategoryPage"/>
3333
<seeOptionIsSelected selector="{{PayPalStandardConfigSection.position(countryCode)}}" userInput="Header (center)" stepKey="seeSelectedPosition"/>
34-
<seeOptionIsSelected selector="{{PayPalStandardConfigSection.stylelayout(countryCode)}}" userInput="Flex" stepKey="seeSelectedStylelayout"/>
35-
<seeOptionIsSelected selector="{{PayPalStandardConfigSection.Ratio(countryCode)}}" userInput="20x1" stepKey="seeSelectedRatio"/>
34+
<seeOptionIsSelected selector="{{PayPalStandardConfigSection.styleLayout(countryCode)}}" userInput="Flex" stepKey="seeSelectedStylelayout"/>
35+
<seeOptionIsSelected selector="{{PayPalStandardConfigSection.ratio(countryCode)}}" userInput="20x1" stepKey="seeSelectedRatio"/>
3636
<seeOptionIsSelected selector="{{PayPalStandardConfigSection.color(countryCode)}}" userInput="Blue" stepKey="seeSelectedColor"/>
3737
<waitForElementClickable selector="{{AdminConfigSection.saveButton}}" stepKey="waitForConfiguBtn" />
3838
<click selector="{{AdminConfigSection.saveButton}}" stepKey="saveConfiguration"/>

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

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,16 +13,16 @@
1313
</annotations>
1414
<click selector="{{PayPalStandardConfigSection.configureBtn('us')}}" stepKey="clickPayPalConfigureBtn"/>
1515
<selectOption selector="{{PayPalStandardConfigSection.enablePaylaterExperience('us')}}" userInput="Yes" stepKey="EnablePaylaterExperience"/>
16-
<waitForPageLoad stepKey="waitForadvisepaylaterdropdown"/>
17-
<waitForElementClickable selector="{{PayPalStandardConfigSection.advisepaylater('us')}}" stepKey="waitForAdvisepaylaterClickable"/>
18-
<click selector="{{PayPalStandardConfigSection.advisepaylater('us')}}" stepKey="clickAdvisePaylater"/>
16+
<waitForPageLoad stepKey="waitForAdvisepaylaterdropdown"/>
17+
<waitForElementClickable selector="{{PayPalStandardConfigSection.advisePaylater('us')}}" stepKey="waitForAdvisepaylaterClickable"/>
18+
<click selector="{{PayPalStandardConfigSection.advisePaylater('us')}}" stepKey="clickAdvisePaylater"/>
1919
<selectOption selector="{{PayPalStandardConfigSection.enablePaypalPaylater('us')}}" userInput="Yes" stepKey="EnablePaypallater"/>
20-
<waitForElementClickable selector="{{PayPalStandardConfigSection.expandcategorypage('us')}}" stepKey="waitForcategorypageClickable"/>
21-
<click selector="{{PayPalStandardConfigSection.expandcategorypage('us')}}" stepKey="clickCategoryPage"/>
20+
<waitForElementClickable selector="{{PayPalStandardConfigSection.expandCategoryPage('us')}}" stepKey="waitForcategorypageClickable"/>
21+
<click selector="{{PayPalStandardConfigSection.expandCategoryPage('us')}}" stepKey="clickCategoryPage"/>
2222
<selectOption selector ="{{PayPalStandardConfigSection.display('us')}}" userInput="Yes" stepKey="enableDisplayforPaylaterCategory"/>
2323
<seeOptionIsSelected selector="{{PayPalStandardConfigSection.position('us')}}" userInput="Header (center)" stepKey="seeSelectedPosition"/>
24-
<seeOptionIsSelected selector="{{PayPalStandardConfigSection.stylelayout('us')}}" userInput="Flex" stepKey="seeSelectedStylelayout"/>
25-
<seeOptionIsSelected selector="{{PayPalStandardConfigSection.Ratio('us')}}" userInput="20x1" stepKey="seeSelectedRatio"/>
24+
<seeOptionIsSelected selector="{{PayPalStandardConfigSection.styleLayout('us')}}" userInput="Flex" stepKey="seeSelectedStylelayout"/>
25+
<seeOptionIsSelected selector="{{PayPalStandardConfigSection.ratio('us')}}" userInput="20x1" stepKey="seeSelectedRatio"/>
2626
<seeOptionIsSelected selector="{{PayPalStandardConfigSection.color('us')}}" userInput="Blue" stepKey="seeSelectedColor"/>
2727
</actionGroup>
2828
</actionGroups>

app/code/Magento/Paypal/Test/Mftf/Section/PayPalStandardConfigSection.xml

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,17 +17,16 @@
1717
<element name="sandboxMode" type="input" selector="#payment_{{countryCode}}_paypal_group_all_in_one_wps_express_express_checkout_required_express_checkout_required_express_checkout_sandbox_flag" parameterized="true"/>
1818
<element name="enableSolution" type="input" selector="#payment_{{countryCode}}_paypal_group_all_in_one_wps_express_express_checkout_required_enable_express_checkout" parameterized="true"/>
1919
<element name="enablePaylaterExperience" type="input" selector="#payment_{{countryCode}}_paypal_group_all_in_one_wps_express_express_checkout_required_enable_paypal_paylater_experience" parameterized="true"/>
20-
<element name="expandcategorypage" type="input" selector="#payment_{{countryCode}}_paypal_group_all_in_one_wps_express_express_checkout_required_advertise_paylater_settings_paylater_categorypage-head" parameterized="true"/>
21-
<element name="advisepaylater" type="input" selector="#payment_{{countryCode}}_paypal_group_all_in_one_wps_express_express_checkout_required_advertise_paylater-head" parameterized="true"/>
20+
<element name="expandCategoryPage" type="input" selector="#payment_{{countryCode}}_paypal_group_all_in_one_wps_express_express_checkout_required_advertise_paylater_settings_paylater_categorypage-head" parameterized="true"/>
21+
<element name="advisePaylater" type="input" selector="#payment_{{countryCode}}_paypal_group_all_in_one_wps_express_express_checkout_required_advertise_paylater-head" parameterized="true"/>
2222
<element name="enablePaypalPaylater" type="input" selector="#payment_{{countryCode}}_paypal_group_all_in_one_wps_express_express_checkout_required_advertise_paylater_paylater_enabled" parameterized="true"/>
2323
<element name="display" type="input" selector="#payment_{{countryCode}}_paypal_group_all_in_one_wps_express_express_checkout_required_advertise_paylater_settings_paylater_categorypage_paylater_categorypage_display" parameterized="true"/>
2424
<element name="position" type="input" selector="#payment_{{countryCode}}_paypal_group_all_in_one_wps_express_express_checkout_required_advertise_paylater_settings_paylater_categorypage_paylater_categorypage_position" parameterized="true"/>
25-
<element name="stylelayout" type="input" selector="#payment_{{countryCode}}_paypal_group_all_in_one_wps_express_express_checkout_required_advertise_paylater_settings_paylater_categorypage_paylater_categorypage_stylelayout" parameterized="true"/>
26-
<element name="Ratio" type="input" selector="#payment_{{countryCode}}_paypal_group_all_in_one_wps_express_express_checkout_required_advertise_paylater_settings_paylater_categorypage_paylater_categorypage_ratio" parameterized="true"/>
25+
<element name="styleLayout" type="input" selector="#payment_{{countryCode}}_paypal_group_all_in_one_wps_express_express_checkout_required_advertise_paylater_settings_paylater_categorypage_paylater_categorypage_stylelayout" parameterized="true"/>
26+
<element name="ratio" type="input" selector="#payment_{{countryCode}}_paypal_group_all_in_one_wps_express_express_checkout_required_advertise_paylater_settings_paylater_categorypage_paylater_categorypage_ratio" parameterized="true"/>
2727
<element name="color" type="input" selector="#payment_{{countryCode}}_paypal_group_all_in_one_wps_express_express_checkout_required_advertise_paylater_settings_paylater_categorypage_paylater_categorypage_color" parameterized="true"/>
28-
<element name="payPaFrame" type="iframe" selector="//iframe[contains(@id, 'jsx-iframe')]"/>
2928
<element name="categoryClick" type="button" selector="//span[contains(text(), 'SimpleSubCategory')]"/>
3029
<element name="payPaliFrame" type="iframe" selector="//iframe[contains(@name, 'zoid__paypal_message')]"/>
31-
<element name="PaypallaterMessage" type="input" selector="//span[text()='Buy now, pay later.']"/>
30+
<element name="paypalPaylaterMessage" type="input" selector="//span[text()='Buy now, pay later.']"/>
3231
</section>
3332
</sections>

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

Lines changed: 6 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,6 @@
1616
<severity value="CRITICAL"/>
1717
<testCaseId value="AC-5639"/>
1818
<group value="paypalStandard"/>
19-
<group value="3rd_party_integration" />
20-
<group value="pr_exclude" />
2119
</annotations>
2220
<before>
2321
<createData entity="SimpleSubCategory" stepKey="simpleCategory"/>
@@ -36,12 +34,8 @@
3634
<actionGroup ref="EnablePaylaterPaypalStandardActionGroup" stepKey="enablePaypalStandard">
3735
</actionGroup>
3836
<!-- Reindex and cache flush -->
39-
<actionGroup ref="CliIndexerReindexActionGroup" stepKey="reindexPage">
40-
<argument name="indices" value=""/>
41-
</actionGroup>
42-
<actionGroup ref="CliCacheFlushActionGroup" stepKey="flushCachePage">
43-
<argument name="tags" value=""/>
44-
</actionGroup>
37+
<magentoCLI command="indexer:reindex" stepKey="performReindex"/>
38+
<magentoCLI command="cache:flush" stepKey="cleanCache"/>
4539
<!--Navigate to Storefront-->
4640
<actionGroup ref="StorefrontOpenHomePageActionGroup" stepKey="goToStoreFront"/>
4741
<waitForPageLoad stepKey="waitForProductPage"/>
@@ -50,25 +44,21 @@
5044
<waitForPageLoad stepKey="waitForCategrypageTobeLoaded"/>
5145
<waitForElementVisible selector="{{PayPalStandardConfigSection.payPaliFrame}}" stepKey="waitForElement"/>
5246
<switchToIFrame selector="{{PayPalStandardConfigSection.payPaliFrame}}" stepKey="switchToBuyNowPaylaterIFrame"/>
53-
<seeElement selector="{{PayPalStandardConfigSection.PaypallaterMessage}}" stepKey="verifyBuyNowPaylaterMessage"/>
47+
<seeElement selector="{{PayPalStandardConfigSection.paypalPaylaterMessage}}" stepKey="verifyBuyNowPaylaterMessage"/>
5448
<switchToIFrame stepKey="switchBackToMainPaypalFrame"/>
5549
<!--Disable Paypal Standard-->
5650
<actionGroup ref="AdminPayPalStandardDisableActionGroup" stepKey="disablePaypalStandard">
5751
</actionGroup>
5852
<!-- Reindex and cache flush -->
59-
<actionGroup ref="CliIndexerReindexActionGroup" stepKey="reindexAdminPage">
60-
<argument name="indices" value=""/>
61-
</actionGroup>
62-
<actionGroup ref="CliCacheFlushActionGroup" stepKey="flushCacheAdminPage">
63-
<argument name="tags" value=""/>
64-
</actionGroup>
53+
<magentoCLI command="indexer:reindex" stepKey="performReIndex"/>
54+
<magentoCLI command="cache:flush" stepKey="flushCache"/>
6555
<!--Validate Paylater Message On Storefront Category Page-->
6656
<actionGroup ref="StorefrontOpenHomePageActionGroup" stepKey="goToStoreFrontPage"/>
6757
<waitForPageLoad stepKey="waitForItemPage"/>
6858
<waitForElementClickable selector="{{PayPalStandardConfigSection.categoryClick}}" stepKey="waitForCategryToBeClickable"/>
6959
<click selector ="{{PayPalStandardConfigSection.categoryClick}}" stepKey="clickCatagoryeTab"/>
7060
<waitForPageLoad stepKey="waitForCategoryPageTobeLoaded"/>
71-
<dontSeeElement selector="{{PayPalStandardConfigSection.PaypallaterMessage}}" stepKey="verifyPaylaterMessageToBeDisappeared"/>
61+
<dontSeeElement selector="{{PayPalStandardConfigSection.paypalPaylaterMessage}}" stepKey="verifyPaylaterMessageToBeDisappeared"/>
7262
</test>
7363
</tests>
7464

0 commit comments

Comments
 (0)