|
| 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