|
| 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="AdminAssertPasswordResetSettingsTest"> |
| 12 | + <annotations> |
| 13 | + <features value="Customer"/> |
| 14 | + <stories value="Password rest settings"/> |
| 15 | + <title value="Admin assert password reset setting"/> |
| 16 | + <description value="Admin assert password reset settings section in customer configuration page."/> |
| 17 | + <severity value="MAJOR"/> |
| 18 | + <testCaseId value="AC-4449"/> |
| 19 | + </annotations> |
| 20 | + <before> |
| 21 | + <!-- Login to admin --> |
| 22 | + <actionGroup ref="AdminLoginActionGroup" stepKey="LoginAsAdmin"/> |
| 23 | + </before> |
| 24 | + <after> |
| 25 | + <!-- Logout from admin --> |
| 26 | + <actionGroup ref="AdminLogoutActionGroup" stepKey="logout"/> |
| 27 | + </after> |
| 28 | + <!--Navigate to Customer Configuration Page--> |
| 29 | + <actionGroup ref="AdminNavigateToCustomerConfigurationActionGroup" stepKey="gotoCustomerConfiguration"/> |
| 30 | + <!--Expand to Password Options Page--> |
| 31 | + <actionGroup ref="AdminOpenPasswordOptionsSectionActionGroup" stepKey="gotoPasswordOptions"/> |
| 32 | + <!--See values for password reset protection type--> |
| 33 | + <seeOptionIsSelected selector="{{AdminCustomerConfigSection.passwordResetProtectionType}}" userInput="By IP and Email" stepKey="seeOneColumnSelected"/> |
| 34 | + <waitForElement selector="{{AdminCustomerConfigSection.passwordResetProtectionTypeOptions('2')}}" stepKey="waitToGrabTextFromOption2"/> |
| 35 | + <grabTextFrom selector="{{AdminCustomerConfigSection.passwordResetProtectionTypeOptions('2')}}" stepKey="grabTextFromOption2"/> |
| 36 | + <assertEquals stepKey="assertByIPIsPresent"> |
| 37 | + <expectedResult type="string">By IP</expectedResult> |
| 38 | + <actualResult type="string">{$grabTextFromOption2}</actualResult> |
| 39 | + </assertEquals> |
| 40 | + <waitForElement selector="{{AdminCustomerConfigSection.passwordResetProtectionTypeOptions('3')}}" stepKey="waitToGrabTextFromOption3"/> |
| 41 | + <grabTextFrom selector="{{AdminCustomerConfigSection.passwordResetProtectionTypeOptions('3')}}" stepKey="grabTextFromOption3"/> |
| 42 | + <assertEquals stepKey="assertByEmailIsPresent"> |
| 43 | + <expectedResult type="string">By Email</expectedResult> |
| 44 | + <actualResult type="string">{$grabTextFromOption3}</actualResult> |
| 45 | + </assertEquals> |
| 46 | + <waitForElement selector="{{AdminCustomerConfigSection.passwordResetProtectionTypeOptions('4')}}" stepKey="waitToGrabTextFromOption4"/> |
| 47 | + <grabTextFrom selector="{{AdminCustomerConfigSection.passwordResetProtectionTypeOptions('4')}}" stepKey="grabTextFromOption4"/> |
| 48 | + <assertEquals stepKey="assertNoneIsPresent"> |
| 49 | + <expectedResult type="string">None</expectedResult> |
| 50 | + <actualResult type="string">{$grabTextFromOption4}</actualResult> |
| 51 | + </assertEquals> |
| 52 | + <!--See Max Number of Password Reset Requests field is present and has numeric value--> |
| 53 | + <seeInField selector="{{AdminCustomerConfigSection.maxReqsOfPasswordReset}}" userInput="5" stepKey="seeValueForPasswordResetRequests"/> |
| 54 | + <!--See Min Time Between Password Reset Requests field is present and has numeric value--> |
| 55 | + <seeInField selector="{{AdminCustomerConfigSection.minTimeBtwnPasswordResetRequest}}" userInput="10" stepKey="seeValueForMinTimeBtwnPasswordResetRequest"/> |
| 56 | + </test> |
| 57 | +</tests> |
0 commit comments