|
| 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="StorefrontEditAccountInformationScreenDefaultstateTest"> |
| 12 | + <annotations> |
| 13 | + <features value="Security"/> |
| 14 | + <stories value="Account Information screen has default state"/> |
| 15 | + <title value="First/Last Names fields are availabe by default and check boxes for Change Email and Change Password are unchecked"/> |
| 16 | + <description value="First/Last Names fields are availabe by default and check boxes for Change Email and Change Password are unchecked"/> |
| 17 | + <testCaseId value="MC-27360"/> |
| 18 | + <severity value="MAJOR"/> |
| 19 | + <group value="security"/> |
| 20 | + <group value="mtf_migrated"/> |
| 21 | + </annotations> |
| 22 | + |
| 23 | + <before> |
| 24 | + <createData entity="Simple_US_Customer" stepKey="customer"/> |
| 25 | + </before> |
| 26 | + <after> |
| 27 | + <deleteData createDataKey="customer" stepKey="deleteCustomer"/> |
| 28 | + </after> |
| 29 | + |
| 30 | + <!-- TEST BODY --> |
| 31 | + <!-- Go to storefront home page --> |
| 32 | + <actionGroup ref="StorefrontOpenHomePageActionGroup" stepKey="openStoreFrontHomePage"/> |
| 33 | + <!-- Login as created customer --> |
| 34 | + <actionGroup ref="LoginToStorefrontActionGroup" stepKey="loginToStorefrontAccount"> |
| 35 | + <argument name="Customer" value="$$customer$$"/> |
| 36 | + </actionGroup> |
| 37 | + <!-- Navigate to My Account tab --> |
| 38 | + <actionGroup ref="StorefrontOpenMyAccountPageActionGroup" stepKey="goToMyAccountPage"/> |
| 39 | + <!-- Go to customer Account Information --> |
| 40 | + <actionGroup ref="StorefrontCustomerGoToSidebarMenu" stepKey="goToAccountInformation"> |
| 41 | + <argument name="menu" value="Account Information"/> |
| 42 | + </actionGroup> |
| 43 | + <!-- Verify First/Last name fields are present --> |
| 44 | + <seeElement selector="{{StorefrontCustomerAccountInformationSection.firstName}}" stepKey="seeFirstName"/> |
| 45 | + <seeElement selector="{{StorefrontCustomerAccountInformationSection.lastName}}" stepKey="seeLastName"/> |
| 46 | + <!-- See Change Email and Change Password Checkboxs are Unchecked --> |
| 47 | + <dontSeeCheckboxIsChecked selector="{{StorefrontCustomerAccountInformationSection.changeEmail}}" stepKey="seeChangeEmailCheckBoxIsUnchecked"/> |
| 48 | + <dontSeeCheckboxIsChecked selector="{{StorefrontCustomerAccountInformationSection.changePassword}}" stepKey="seeChangePasswordCheckBoxIsUnchecked"/> |
| 49 | + <!-- Navigate to My Account tab --> |
| 50 | + <actionGroup ref="StorefrontOpenMyAccountPageActionGroup" stepKey="goToMyAccountPage2"/> |
| 51 | + <click selector="{{StorefrontCustomerDashboardAccountInformationSection.editLink}}" stepKey="clickEditContactInformation"/> |
| 52 | + <!-- Verify First/Last name fields are present --> |
| 53 | + <seeElement selector="{{StorefrontCustomerAccountInformationSection.firstName}}" stepKey="seeFirstName2"/> |
| 54 | + <seeElement selector="{{StorefrontCustomerAccountInformationSection.lastName}}" stepKey="seeLastName2"/> |
| 55 | + <!-- See Change Email and Change Password Checkboxs are Unchecked --> |
| 56 | + <dontSeeCheckboxIsChecked selector="{{StorefrontCustomerAccountInformationSection.changeEmail}}" stepKey="seeChangeEmailCheckBoxIsUnchecked2"/> |
| 57 | + <dontSeeCheckboxIsChecked selector="{{StorefrontCustomerAccountInformationSection.changePassword}}" stepKey="seeChangePasswordCheckBoxIsUnchecked2"/> |
| 58 | + </test> |
| 59 | +</tests> |
0 commit comments