Skip to content

Commit c0ed65c

Browse files
committed
ACQE-6746: Verify authentication popup still shows properly when guest user tries to go to the checkout but guest checkout is disabled
Added new files
1 parent 7cabfb4 commit c0ed65c

File tree

2 files changed

+46
-1
lines changed

2 files changed

+46
-1
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!--
3+
/**
4+
* Copyright © Magento, Inc. All rights reserved.
5+
* See COPYING.txt for license details.
6+
*/
7+
-->
8+
9+
<tests xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
10+
xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/testSchema.xsd">
11+
<test name="StorefrontVerifyAuthenticationPopupStillShowsProperlyWhenGuestUserTriesToGoToTheCheckoutButGuestCheckoutIsDisabledTest" extends="StorefrontModalWindowForSignInIsShownIfGuestCheckoutIsDisabledTest">
12+
<annotations>
13+
<features value="Backend"/>
14+
<stories value="Verify authentication popup if Guest checkout is disabled. "/>
15+
<title value="Verify authentication popup still shows properly when guest user tries to go to the checkout but guest checkout is disabled"/>
16+
<description value="Verify authentication popup still shows properly when guest user tries to go to the checkout when guest checkout is disabled and do checkout with sign in as created customer"/>
17+
<severity value="AVERAGE"/>
18+
<testCaseId value="AC-5588"/>
19+
</annotations>
20+
<before>
21+
<remove keyForRemoval="createCategory"/>
22+
<remove keyForRemoval="createProduct"/>
23+
<remove keyForRemoval="storeConfigurationAllowGuestCheckoutNo"/>
24+
<!--Create simple product-->
25+
<createData entity="SimpleProduct" stepKey="createProduct"/>
26+
<!--Flush cache and Reindex-->
27+
<actionGroup ref="CliIndexerReindexActionGroup" after="createCustomer" stepKey="reindex">
28+
<argument name="indices" value=""/>
29+
</actionGroup>
30+
<actionGroup ref="CliCacheFlushActionGroup" after="reindex" stepKey="flushCache">
31+
<argument name="tags" value="config full_page"/>
32+
</actionGroup>
33+
</before>
34+
<after>
35+
<remove keyForRemoval="deleteCategory"/>
36+
</after>
37+
<remove keyForRemoval="shippingStepIsOpened"/>
38+
<waitForText userInput="Checkout using your account" selector="{{StorefrontCustomerSignInPopupFormSection.authenticationPopUp}}" after="guestGoToCheckoutFromMiniCart" stepKey="assertAuthenticationMessage"/>
39+
<actionGroup ref="StorefrontCheckoutClickNextButtonActionGroup" stepKey="clickOnNextButton"/>
40+
<actionGroup ref="CheckoutSelectCheckMoneyOrderPaymentActionGroup" stepKey="selectCheckMoneyOrder"/>
41+
<actionGroup ref="ClickPlaceOrderActionGroup" stepKey="clickOnPlaceOrder"/>
42+
<waitForText selector="{{CheckoutSuccessMainSection.successTitle}}" userInput="Thank you for your purchase!" stepKey="waitForSuccessMessage"/>
43+
</test>
44+
</tests>

app/code/Magento/Customer/Test/Mftf/Section/StorefrontCustomerSignInFormSection/StorefrontCustomerSignInPopupFormSection.xml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,6 @@
1414
<element name="signIn" type="button" selector="(//button[@id='send2'][contains(@class, 'login')])[1]" timeout="30"/>
1515
<element name="forgotYourPassword" type="button" selector="//a[@class='action']//span[contains(text(),'Forgot Your Password?')]" timeout="30"/>
1616
<element name="createAnAccount" type="button" selector="(//div[contains(@class,'actions-toolbar')]//a[contains(.,'Create an Account')])[last()]" timeout="30"/>
17+
<element name="authenticationPopUp" type="text" selector="#block-customer-login-heading" timeout="30"/>
1718
</section>
18-
</sections>
19+
</sections>

0 commit comments

Comments
 (0)