Skip to content

Commit fc1a6c5

Browse files
added mftf test for case if on checkout page entered unregistered email
1 parent a9ca0f6 commit fc1a6c5

File tree

3 files changed

+90
-0
lines changed

3 files changed

+90
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
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+
<actionGroups xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
10+
xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/actionGroupSchema.xsd">
11+
<actionGroup name="AssertStorefrontVisiblePasswordFieldForUnregisteredEmailOnCheckoutActionGroup">
12+
<annotations>
13+
<description>Checks if visible password field for unregistered email on checkout page</description>
14+
</annotations>
15+
16+
<waitForPageLoad stepKey="waitForCheckoutPageLoaded"/>
17+
<dontSeeElement selector="{{StorefrontCheckoutCheckoutCustomerLoginSection.password}}" stepKey="checkIfPasswordVisible"/>
18+
</actionGroup>
19+
</actionGroups>
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
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+
<actionGroups xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
10+
xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/actionGroupSchema.xsd">
11+
<actionGroup name="StorefrontOpenCheckoutCartPageActionGroup">
12+
<annotations>
13+
<description>Goes to the Storefront Checkout Cart page.</description>
14+
</annotations>
15+
16+
<amOnPage url="{{CheckoutPage.url}}/cart" stepKey="openCheckoutCartPage"/>
17+
<waitForPageLoad stepKey="waitForCheckoutCartPageLoaded"/>
18+
<amOnPage url="{{CheckoutPage.url}}" stepKey="openCheckoutPage"/>
19+
<waitForPageLoad stepKey="waitForCheckoutPageLoaded"/>
20+
</actionGroup>
21+
</actionGroups>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
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="StorefrontVisiblePasswordFieldForUnregisteredEmailOnCheckoutTest">
12+
<annotations>
13+
<features value="Checkout"/>
14+
<stories value="Visible password field for unregistered e-mail on Checkout"/>
15+
<title value="Visibility password field for unregistered e-mail on Checkout process"/>
16+
<description value="Guest should not be able to see password field if entered unregistered email"/>
17+
<stories value="Guest Checkout"/>
18+
<testCaseId value="MC-14695"/>
19+
<severity value="CRITICAL"/>
20+
<group value="checkout"/>
21+
<group value="shoppingCart"/>
22+
<group value="mtf_migrated"/>
23+
</annotations>
24+
<before>
25+
<createData entity="SimpleTwo" stepKey="simpleProduct"/>
26+
</before>
27+
28+
<after>
29+
<deleteData createDataKey="simpleProduct" stepKey="deleteProduct"/>
30+
</after>
31+
32+
<actionGroup ref="StorefrontOpenProductPageActionGroup" stepKey="openProductStorefront">
33+
<argument name="productUrl" value="$$simpleProduct.custom_attributes[url_key]$$"/>
34+
</actionGroup>
35+
<actionGroup ref="StorefrontClickAddToCartOnProductPageActionGroup" stepKey="addToCartFromStorefrontProductPage"/>
36+
37+
<actionGroup ref="StorefrontOpenCheckoutPageActionGroup" stepKey="openCheckoutPage"/>
38+
<actionGroup ref="AssertStorefrontEmailTooltipContentOnCheckoutActionGroup" stepKey="assertEmailTooltipContent"/>
39+
<actionGroup ref="AssertStorefrontEmailNoteMessageOnCheckoutActionGroup" stepKey="assertEmailNoteMessage"/>
40+
41+
<actionGroup ref="StorefrontFillEmailFieldOnCheckoutActionGroup" stepKey="fillUnregisteredEmailFirstAttempt">
42+
<argument name="email" value="unregistered@email.test"/>
43+
</actionGroup>
44+
<actionGroup ref="AssertStorefrontVisiblePasswordFieldForUnregisteredEmailOnCheckoutActionGroup"
45+
stepKey="checkIfPasswordVisibleAfterFieldFilling"/>
46+
<actionGroup ref="StorefrontOpenCheckoutCartPageActionGroup" stepKey="openCheckoutCartPage" />
47+
<actionGroup ref="AssertStorefrontVisiblePasswordFieldForUnregisteredEmailOnCheckoutActionGroup"
48+
stepKey="checkIfPasswordVisibleAfterPageReload"/>
49+
</test>
50+
</tests>

0 commit comments

Comments
 (0)