|
8 | 8 |
|
9 | 9 | <tests xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
10 | 10 | xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/testSchema.xsd"> |
11 | | - <test name="OnePageCheckoutWithSignInLinkForEmailVerificationlTest"> |
| 11 | + <test name="OnePageCheckoutWithSignInLinkForEmailVerificationTest"> |
12 | 12 | <annotations> |
13 | 13 | <features value="OnePageCheckout"/> |
14 | 14 | <title value="OnePageCheckout with sign in link for email verification test"/> |
15 | 15 | <description value="Verify that error message is correct for invalid a email entered with 'Sign in' form"/> |
16 | 16 | <severity value="MINOR"/> |
17 | | - <testCaseId value="MC-42592"/> |
| 17 | + <testCaseId value="MC-42729"/> |
18 | 18 | <group value="checkout"/> |
19 | 19 | <group value="mtf_migrated"/> |
20 | 20 | </annotations> |
|
38 | 38 |
|
39 | 39 | <!-- Go to shopping cart --> |
40 | 40 | <actionGroup ref="ClickViewAndEditCartFromMiniCartActionGroup" stepKey="goToShoppingCartFromMinicart"/> |
41 | | - <actionGroup ref="FillShippingZipForm" stepKey="fillShippingZipForm"> |
42 | | - <argument name="address" value="US_Address_CA"/> |
43 | | - </actionGroup> |
44 | 41 | <actionGroup ref="StorefrontClickProceedToCheckoutActionGroup" stepKey="clickProceedToCheckout"/> |
45 | 42 | <comment userInput="Adding the comment to replace waitForProceedToCheckout action for preserving Backward Compatibility" stepKey="waitForProceedToCheckout"/> |
46 | 43 |
|
47 | 44 | <!-- Try to login using invalid email and Sign In link from checkout page --> |
48 | | - <actionGroup ref="LoginAsCustomerUsingSignInLinkActionGroup" stepKey="customerLogin"> |
49 | | - <argument name="customerEmail" value="invalid @example.com"/> |
50 | | - <argument name="customerPwd" value="Password123"/> |
51 | | - </actionGroup> |
| 45 | + <click selector="{{StorefrontCustomerSignInLinkSection.signInLink}}" stepKey="clickOnCustomizeAndAddToCartButton"/> |
| 46 | + <fillField selector="{{StorefrontCustomerSignInLinkSection.email}}" userInput="invalid @example.com" stepKey="fillEmail"/> |
| 47 | + <fillField selector="{{StorefrontCustomerSignInLinkSection.password}}" userInput="Password123" stepKey="fillPassword"/> |
| 48 | + <click selector="{{StorefrontCustomerSignInLinkSection.signInBtn}}" stepKey="clickSignInBtn"/> |
52 | 49 |
|
53 | | - <!-- Assert that error message is correct --> |
54 | | - <actionGroup ref="StorefrontFillEmailFieldOnCheckoutActionGroup" stepKey="fillIncorrectEmailForthAttempt"> |
55 | | - <argument name="email" value="invalid @example.com"/> |
56 | | - </actionGroup> |
57 | | - <actionGroup ref="AssertStorefrontEmailValidationMessageOnCheckoutActionGroup" stepKey="verifyValidationErrorMessageForthAttempt"/> |
| 50 | + <waitForElementVisible selector="#login-email-error" stepKey="waitForFormValidation"/> |
| 51 | + <see selector="#login-email-error" userInput="Please enter a valid email address (Ex: johndoe@domain.com)." stepKey="seeTheCorrectErrorMessageIsDisplayed"/> |
58 | 52 | </test> |
59 | 53 | </tests> |
0 commit comments