|
| 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 | +<!-- |
| 10 | +NOTICE: Action Groups in this file are DEPRECATED and SHOULD NOT BE USED anymore. |
| 11 | + Please find the Comment with proper replacement for each of ActionGroups provided. |
| 12 | +--> |
| 13 | +<actionGroups xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
| 14 | + xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/actionGroupSchema.xsd"> |
| 15 | + <actionGroup name="AdminCreateCustomerWithWebSiteAndGroup"> |
| 16 | + <annotations> |
| 17 | + <description>Goes to the Customer grid page. Click on 'Add New Customer'. Fills provided Customer Data. Fill provided Customer Address data. Assigns Product to Website and Store View. Clicks on Save.</description> |
| 18 | + </annotations> |
| 19 | + <arguments> |
| 20 | + <argument name="customerData" defaultValue="Simple_US_Customer"/> |
| 21 | + <argument name="website" type="string" defaultValue="{{_defaultWebsite.name}}"/> |
| 22 | + <argument name="storeView" type="string" defaultValue="{{_defaultStore.name}}"/> |
| 23 | + </arguments> |
| 24 | + |
| 25 | + <!-- NOTICE: This ActionGroup is DEPRECATED! Use `AdminCreateCustomerWithWebSiteAndGroupActionGroup` instead --> |
| 26 | + <amOnPage url="{{AdminCustomerPage.url}}" stepKey="goToCustomersPage"/> |
| 27 | + <click stepKey="addNewCustomer" selector="{{AdminCustomerGridMainActionsSection.addNewCustomer}}"/> |
| 28 | + <selectOption stepKey="selectWebSite" selector="{{AdminCustomerAccountInformationSection.associateToWebsite}}" userInput="{{website}}"/> |
| 29 | + <selectOption selector="{{AdminCustomerAccountInformationSection.group}}" userInput="{{customerData.group}}" stepKey="selectCustomerGroup"/> |
| 30 | + <fillField stepKey="FillFirstName" selector="{{AdminCustomerAccountInformationSection.firstName}}" userInput="{{customerData.firstname}}"/> |
| 31 | + <fillField stepKey="FillLastName" selector="{{AdminCustomerAccountInformationSection.lastName}}" userInput="{{customerData.lastname}}"/> |
| 32 | + <fillField stepKey="FillEmail" selector="{{AdminCustomerAccountInformationSection.email}}" userInput="{{customerData.email}}"/> |
| 33 | + <selectOption stepKey="selectStoreView" selector="{{AdminCustomerAccountInformationSection.storeView}}" userInput="{{storeView}}"/> |
| 34 | + <waitForElement selector="{{AdminCustomerAccountInformationSection.storeView}}" stepKey="waitForCustomerStoreViewExpand"/> |
| 35 | + <click stepKey="save" selector="{{AdminCustomerAccountInformationSection.saveCustomer}}"/> |
| 36 | + <waitForPageLoad stepKey="waitForCustomersPage"/> |
| 37 | + <see stepKey="seeSuccessMessage" userInput="You saved the customer."/> |
| 38 | + </actionGroup> |
| 39 | + |
| 40 | + <actionGroup name="AdminEditCustomerAddressSetDefaultShippingAndBilling" extends="AdminEditCustomerAddressesFrom"> |
| 41 | + <annotations> |
| 42 | + <description>EXTENDS: AdminEditCustomerAddressesFrom. Clicks on 'Set Default' for Billing/Shipping.</description> |
| 43 | + </annotations> |
| 44 | + |
| 45 | + <!-- NOTICE: This ActionGroup is DEPRECATED! Use `AdminEditCustomerAddressSetDefaultShippingAndBillingActionGroup` instead --> |
| 46 | + <click selector="{{AdminEditCustomerAddressesSection.defaultBillingAddressButton}}" stepKey="setDefaultBilling" before="setDefaultShipping"/> |
| 47 | + <click selector="{{AdminEditCustomerAddressesSection.defaultShippingAddressButton}}" stepKey="setDefaultShipping" before="fillPrefixName"/> |
| 48 | + </actionGroup> |
| 49 | + |
| 50 | + <actionGroup name="AdminEditCustomerAddressNoZipNoState" extends="AdminEditCustomerAddressesFrom"> |
| 51 | + <annotations> |
| 52 | + <description>EXTENDS: AdminEditCustomerAddressesFrom. Removes 'selectState' and 'fillZipCode'. Clicks on 'Set Default' for Billing/Shipping.</description> |
| 53 | + </annotations> |
| 54 | + |
| 55 | + <!-- NOTICE: This ActionGroup is DEPRECATED! Use `AdminEditCustomerAddressNoZipNoStateActionGroup` instead --> |
| 56 | + <remove keyForRemoval="selectState"/> |
| 57 | + <remove keyForRemoval="fillZipCode"/> |
| 58 | + <click selector="{{AdminEditCustomerAddressesSection.defaultBillingAddressButton}}" stepKey="setDefaultBilling" before="setDefaultShipping"/> |
| 59 | + <click selector="{{AdminEditCustomerAddressesSection.defaultShippingAddressButton}}" stepKey="setDefaultShipping" before="fillPrefixName"/> |
| 60 | + </actionGroup> |
| 61 | + |
| 62 | + <actionGroup name="AdminEditCustomerAddressNoZipNoState" extends="AdminEditCustomerAddressesFrom"> |
| 63 | + <annotations> |
| 64 | + <description>EXTENDS: AdminEditCustomerAddressesFrom. Removes 'selectState' and 'fillZipCode'. Clicks on 'Set Default' for Billing/Shipping.</description> |
| 65 | + </annotations> |
| 66 | + |
| 67 | + <!-- NOTICE: This ActionGroup is DEPRECATED! Use `AdminEditCustomerAddressNoZipNoStateActionGroup` instead --> |
| 68 | + <remove keyForRemoval="selectState"/> |
| 69 | + <remove keyForRemoval="fillZipCode"/> |
| 70 | + <click selector="{{AdminEditCustomerAddressesSection.defaultBillingAddressButton}}" stepKey="setDefaultBilling" before="setDefaultShipping"/> |
| 71 | + <click selector="{{AdminEditCustomerAddressesSection.defaultShippingAddressButton}}" stepKey="setDefaultShipping" before="fillPrefixName"/> |
| 72 | + </actionGroup> |
| 73 | + |
| 74 | + <actionGroup name="AdminEditCustomerAddressSetDefaultShippingAndBilling" extends="AdminEditCustomerAddressesFrom"> |
| 75 | + <annotations> |
| 76 | + <description>EXTENDS: AdminEditCustomerAddressesFrom. Removes 'selectState' and 'fillZipCode'.</description> |
| 77 | + </annotations> |
| 78 | + |
| 79 | + <!-- NOTICE: This ActionGroup is DEPRECATED! Use `AdminEditCustomerAddressSetDefaultShippingAndBillingActionGroup` instead --> |
| 80 | + <click selector="{{AdminEditCustomerAddressesSection.defaultBillingAddressButton}}" stepKey="setDefaultBilling" before="setDefaultShipping"/> |
| 81 | + <click selector="{{AdminEditCustomerAddressesSection.defaultShippingAddressButton}}" stepKey="setDefaultShipping" before="fillPrefixName"/> |
| 82 | + </actionGroup> |
| 83 | + |
| 84 | + <actionGroup name="EnterCustomerAddressInfo"> |
| 85 | + <annotations> |
| 86 | + <description>Fills in the provided Customer details (First/Last Name, Company, Phone # and Address) on the Admin Customer creation/edit page. Clicks on the Save button.</description> |
| 87 | + </annotations> |
| 88 | + <arguments> |
| 89 | + <argument name="Address"/> |
| 90 | + </arguments> |
| 91 | + |
| 92 | + <!-- NOTICE: This ActionGroup is DEPRECATED! Use `EnterCustomerAddressInfoActionGroup` instead --> |
| 93 | + <amOnPage url="customer/address/new/" stepKey="goToAddressPage"/> |
| 94 | + <waitForPageLoad stepKey="waitForAddressPage"/> |
| 95 | + <fillField stepKey="fillFirstName" selector="{{StorefrontCustomerAddressSection.firstName}}" userInput="{{Address.firstname}}"/> |
| 96 | + <fillField stepKey="fillLastName" selector="{{StorefrontCustomerAddressSection.lastName}}" userInput="{{Address.lastname}}"/> |
| 97 | + <fillField stepKey="fillCompany" selector="{{StorefrontCustomerAddressSection.company}}" userInput="{{Address.company}}"/> |
| 98 | + <fillField stepKey="fillPhoneNumber" selector="{{StorefrontCustomerAddressSection.phoneNumber}}" userInput="{{Address.telephone}}"/> |
| 99 | + <fillField stepKey="fillStreetAddress1" selector="{{StorefrontCustomerAddressSection.streetAddress1}}" userInput="{{Address.street[0]}}"/> |
| 100 | + <fillField stepKey="fillStreetAddress2" selector="{{StorefrontCustomerAddressSection.streetAddress2}}" userInput="{{Address.street[1]}}"/> |
| 101 | + <fillField stepKey="fillCityName" selector="{{StorefrontCustomerAddressSection.city}}" userInput="{{Address.city}}"/> |
| 102 | + <selectOption stepKey="selectCounty" selector="{{StorefrontCustomerAddressSection.country}}" userInput="{{Address.country_id}}"/> |
| 103 | + <selectOption stepKey="selectState" selector="{{StorefrontCustomerAddressSection.stateProvince}}" userInput="{{Address.state}}"/> |
| 104 | + <fillField stepKey="fillZip" selector="{{StorefrontCustomerAddressSection.zip}}" userInput="{{Address.postcode}}"/> |
| 105 | + <click stepKey="saveAddress" selector="{{StorefrontCustomerAddressSection.saveAddress}}"/> |
| 106 | + </actionGroup> |
| 107 | + |
| 108 | + <!-- Fills State Field instead of selecting it--> |
| 109 | + <actionGroup name="EnterCustomerAddressInfoFillState" extends="EnterCustomerAddressInfo"> |
| 110 | + <annotations> |
| 111 | + <description>EXTENDS: EnterCustomerAddressInfo. Fills the State field.</description> |
| 112 | + </annotations> |
| 113 | + |
| 114 | + <!-- NOTICE: This ActionGroup is DEPRECATED! Use `CreateSystemBackupActionGroup` instead --> |
| 115 | + <fillField stepKey="selectState" selector="{{StorefrontCustomerAddressSection.stateProvinceFill}}" userInput="{{Address.state}}"/> |
| 116 | + </actionGroup> |
| 117 | + |
| 118 | + <actionGroup name="VerifyCustomerBillingAddress"> |
| 119 | + <annotations> |
| 120 | + <description>Goes to the Storefront Customer Dashboard Address area. Validates that the provided Customer Billing Address is present and correct on the Storefront Customer Dashboard Address section.</description> |
| 121 | + </annotations> |
| 122 | + <arguments> |
| 123 | + <argument name="address"/> |
| 124 | + </arguments> |
| 125 | + |
| 126 | + <amOnPage url="customer/address/index/" stepKey="goToAddressPage"/> |
| 127 | + <waitForPageLoad stepKey="waitForAddressPageLoad"/> |
| 128 | + |
| 129 | + <!-- NOTICE: This ActionGroup is DEPRECATED! Use `VerifyCustomerBillingAddressActionGroup` instead --> |
| 130 | + <see selector="{{StorefrontCustomerAddressesSection.defaultBillingAddress}}" userInput="{{address.firstname}} {{address.lastname}}" stepKey="seeAssertCustomerDefaultBillingAddressFirstnameAndLastname"/> |
| 131 | + <see selector="{{StorefrontCustomerAddressesSection.defaultBillingAddress}}" userInput="{{address.company}}" stepKey="seeAssertCustomerDefaultBillingAddressCompany"/> |
| 132 | + <see selector="{{StorefrontCustomerAddressesSection.defaultBillingAddress}}" userInput="{{address.street[0]}}" stepKey="seeAssertCustomerDefaultBillingAddressStreet"/> |
| 133 | + <see selector="{{StorefrontCustomerAddressesSection.defaultBillingAddress}}" userInput="{{address.street[1]}}" stepKey="seeAssertCustomerDefaultBillingAddressStreet1"/> |
| 134 | + <see selector="{{StorefrontCustomerAddressesSection.defaultBillingAddress}}" userInput="{{address.city}}, {{address.postcode}}" stepKey="seeAssertCustomerDefaultBillingAddressCityAndPostcode"/> |
| 135 | + <see selector="{{StorefrontCustomerAddressesSection.defaultBillingAddress}}" userInput="{{address.country}}" stepKey="seeAssertCustomerDefaultBillingAddressCountry"/> |
| 136 | + <see selector="{{StorefrontCustomerAddressesSection.defaultBillingAddress}}" userInput="{{address.telephone}}" stepKey="seeAssertCustomerDefaultBillingAddressTelephone"/> |
| 137 | + </actionGroup> |
| 138 | + |
| 139 | + <actionGroup name="VerifyCustomerShippingAddress"> |
| 140 | + <annotations> |
| 141 | + <description>Goes to the Storefront Customer Dashboard Address area. Validates that the provided Customer Shipping Address is present and correct.</description> |
| 142 | + </annotations> |
| 143 | + <arguments> |
| 144 | + <argument name="address"/> |
| 145 | + </arguments> |
| 146 | + |
| 147 | + <!-- NOTICE: This ActionGroup is DEPRECATED! Use `VerifyCustomerShippingAddressActionGroup` instead --> |
| 148 | + <amOnPage url="customer/address/index/" stepKey="goToAddressPage"/> |
| 149 | + <waitForPageLoad stepKey="waitForAddressPageLoad"/> |
| 150 | + <see selector="{{StorefrontCustomerAddressesSection.defaultShippingAddress}}" userInput="{{address.firstname}} {{address.lastname}}" stepKey="seeAssertCustomerDefaultShippingAddressFirstnameAndLastname"/> |
| 151 | + <see selector="{{StorefrontCustomerAddressesSection.defaultShippingAddress}}" userInput="{{address.company}}" stepKey="seeAssertCustomerDefaultShippingAddressCompany"/> |
| 152 | + <see selector="{{StorefrontCustomerAddressesSection.defaultShippingAddress}}" userInput="{{address.street[0]}}" stepKey="seeAssertCustomerDefaultShippingAddressStreet"/> |
| 153 | + <see selector="{{StorefrontCustomerAddressesSection.defaultShippingAddress}}" userInput="{{address.street[1]}}" stepKey="seeAssertCustomerDefaultShippingAddressStreet1"/> |
| 154 | + <see selector="{{StorefrontCustomerAddressesSection.defaultShippingAddress}}" userInput="{{address.city}}, {{address.postcode}}" stepKey="seeAssertCustomerDefaultShippingAddressCityAndPostcode"/> |
| 155 | + <see selector="{{StorefrontCustomerAddressesSection.defaultShippingAddress}}" userInput="{{address.country}}" stepKey="seeAssertCustomerDefaultShippingAddressCountry"/> |
| 156 | + <see selector="{{StorefrontCustomerAddressesSection.defaultShippingAddress}}" userInput="{{address.telephone}}" stepKey="seeAssertCustomerDefaultShippingAddressTelephone"/> |
| 157 | + </actionGroup> |
| 158 | + |
| 159 | + <actionGroup name="VerifyCustomerBillingAddressWithState"> |
| 160 | + <annotations> |
| 161 | + <description>Goes to the Storefront Customer Dashboard Address area. Validates that the provided Customer Billing Address, including the State, is present and correct.</description> |
| 162 | + </annotations> |
| 163 | + <arguments> |
| 164 | + <argument name="address"/> |
| 165 | + </arguments> |
| 166 | + |
| 167 | + <!-- NOTICE: This ActionGroup is DEPRECATED! Use `VerifyCustomerBillingAddressWithStateActionGroup` instead --> |
| 168 | + <amOnPage url="customer/address/index/" stepKey="goToAddressPage"/> |
| 169 | + <waitForPageLoad stepKey="waitForAddressPageLoad"/> |
| 170 | + <see selector="{{StorefrontCustomerAddressesSection.defaultBillingAddress}}" userInput="{{address.firstname}} {{address.lastname}}" stepKey="seeAssertCustomerDefaultBillingAddressFirstnameAndLastname"/> |
| 171 | + <see selector="{{StorefrontCustomerAddressesSection.defaultBillingAddress}}" userInput="{{address.company}}" stepKey="seeAssertCustomerDefaultBillingAddressCompany"/> |
| 172 | + <see selector="{{StorefrontCustomerAddressesSection.defaultBillingAddress}}" userInput="{{address.street[0]}}" stepKey="seeAssertCustomerDefaultBillingAddressStreet"/> |
| 173 | + <see selector="{{StorefrontCustomerAddressesSection.defaultBillingAddress}}" userInput="{{address.street[1]}}" stepKey="seeAssertCustomerDefaultBillingAddressStreet1"/> |
| 174 | + <see selector="{{StorefrontCustomerAddressesSection.defaultBillingAddress}}" userInput="{{address.city}}, {{address.state}}, {{address.postcode}}" stepKey="seeAssertCustomerDefaultBillingAddressCityAndPostcode"/> |
| 175 | + <see selector="{{StorefrontCustomerAddressesSection.defaultBillingAddress}}" userInput="{{address.country}}" stepKey="seeAssertCustomerDefaultBillingAddressCountry"/> |
| 176 | + <see selector="{{StorefrontCustomerAddressesSection.defaultBillingAddress}}" userInput="{{address.telephone}}" stepKey="seeAssertCustomerDefaultBillingAddressTelephone"/> |
| 177 | + </actionGroup> |
| 178 | + |
| 179 | + <actionGroup name="VerifyCustomerShippingAddressWithState"> |
| 180 | + <annotations> |
| 181 | + <description>Goes to the Storefront Customer Dashboard Address area. Validates that the provided Customer Shipping Address, including the State, is present and correct.</description> |
| 182 | + </annotations> |
| 183 | + <arguments> |
| 184 | + <argument name="address"/> |
| 185 | + </arguments> |
| 186 | + |
| 187 | + <!-- NOTICE: This ActionGroup is DEPRECATED! Use `VerifyCustomerShippingAddressWithStateActionGroup` instead --> |
| 188 | + <amOnPage url="customer/address/index/" stepKey="goToAddressPage"/> |
| 189 | + <waitForPageLoad stepKey="waitForAddressPageLoad"/> |
| 190 | + <see selector="{{StorefrontCustomerAddressesSection.defaultShippingAddress}}" userInput="{{address.firstname}} {{address.lastname}}" stepKey="seeAssertCustomerDefaultShippingAddressFirstnameAndLastname"/> |
| 191 | + <see selector="{{StorefrontCustomerAddressesSection.defaultShippingAddress}}" userInput="{{address.company}}" stepKey="seeAssertCustomerDefaultShippingAddressCompany"/> |
| 192 | + <see selector="{{StorefrontCustomerAddressesSection.defaultShippingAddress}}" userInput="{{address.street[0]}}" stepKey="seeAssertCustomerDefaultShippingAddressStreet"/> |
| 193 | + <see selector="{{StorefrontCustomerAddressesSection.defaultShippingAddress}}" userInput="{{address.street[1]}}" stepKey="seeAssertCustomerDefaultShippingAddressStreet1"/> |
| 194 | + <see selector="{{StorefrontCustomerAddressesSection.defaultShippingAddress}}" userInput="{{address.city}}, {{address.state}}, {{address.postcode}}" stepKey="seeAssertCustomerDefaultShippingAddressCityAndPostcode"/> |
| 195 | + <see selector="{{StorefrontCustomerAddressesSection.defaultShippingAddress}}" userInput="{{address.country}}" stepKey="seeAssertCustomerDefaultShippingAddressCountry"/> |
| 196 | + <see selector="{{StorefrontCustomerAddressesSection.defaultShippingAddress}}" userInput="{{address.telephone}}" stepKey="seeAssertCustomerDefaultShippingAddressTelephone"/> |
| 197 | + </actionGroup> |
| 198 | + |
| 199 | + <actionGroup name="VerifyCustomerNameOnFrontend"> |
| 200 | + <annotations> |
| 201 | + <description>Goes to the Storefront Customer Dashboard page. Validates that the Customer First/Last Name is present and correct.</description> |
| 202 | + </annotations> |
| 203 | + <arguments> |
| 204 | + <argument name="customer"/> |
| 205 | + </arguments> |
| 206 | + |
| 207 | + <!-- NOTICE: This ActionGroup is DEPRECATED! Use `VerifyCustomerNameOnFrontendActionGroup` instead --> |
| 208 | + <amOnPage url="customer/account/edit/" stepKey="goToAddressPage"/> |
| 209 | + <waitForPageLoad stepKey="waitForAddressPageLoad"/> |
| 210 | + <click selector="{{StorefrontCustomerSidebarSection.sidebarCurrentTab('Account Information')}}" stepKey="clickAccountInformationFromSidebarCurrentTab"/> |
| 211 | + <waitForPageLoad stepKey="waitForAccountInformationTabToOpen"/> |
| 212 | + <seeInField selector="{{StorefrontCustomerAccountInformationSection.firstName}}" userInput="{{customer.firstname}}" stepKey="seeAssertCustomerFirstName"/> |
| 213 | + <seeInField selector="{{StorefrontCustomerAccountInformationSection.lastName}}" userInput="{{customer.lastname}}" stepKey="seeAssertCustomerLastName"/> |
| 214 | + </actionGroup> |
| 215 | +</actionGroups> |
0 commit comments