|
39 | 39 | <fillField stepKey="fillStreetAddress1" selector="{{StorefrontCustomerAddressSection.streetAddress1}}" userInput="{{Address.street[0]}}"/>
|
40 | 40 | <fillField stepKey="fillStreetAddress2" selector="{{StorefrontCustomerAddressSection.streetAddress2}}" userInput="{{Address.street[1]}}"/>
|
41 | 41 | <fillField stepKey="fillCityName" selector="{{StorefrontCustomerAddressSection.city}}" userInput="{{Address.city}}"/>
|
| 42 | + <selectOption stepKey="selectCounty" selector="{{StorefrontCustomerAddressSection.country}}" userInput="{{Address.country_id}}"/> |
42 | 43 | <selectOption stepKey="selectState" selector="{{StorefrontCustomerAddressSection.stateProvince}}" userInput="{{Address.state}}"/>
|
43 | 44 | <fillField stepKey="fillZip" selector="{{StorefrontCustomerAddressSection.zip}}" userInput="{{Address.postcode}}"/>
|
44 |
| - <selectOption stepKey="selectCounty" selector="{{StorefrontCustomerAddressSection.country}}" userInput="{{Address.country_id}}"/> |
45 |
| - |
46 | 45 | <click stepKey="saveAddress" selector="{{StorefrontCustomerAddressSection.saveAddress}}"/>
|
47 | 46 | </actionGroup>
|
| 47 | + <actionGroup name="VerifyCustomerBillingAddress"> |
| 48 | + <arguments> |
| 49 | + <argument name="address"/> |
| 50 | + </arguments> |
| 51 | + <amOnPage url="customer/address/index/" stepKey="goToAddressPage"/> |
| 52 | + <waitForPageLoad stepKey="waitForAddressPageLoad"/> |
| 53 | + <!--Verify customer default billing address--> |
| 54 | + <see selector="{{StorefrontCustomerAddressesSection.defaultBillingAddress}}" userInput="{{address.firstname}} {{address.lastname}}" stepKey="seeAssertCustomerDefaultBillingAddressFirstnameAndLastname"/> |
| 55 | + <see selector="{{StorefrontCustomerAddressesSection.defaultBillingAddress}}" userInput="{{address.company}}" stepKey="seeAssertCustomerDefaultBillingAddressCompany"/> |
| 56 | + <see selector="{{StorefrontCustomerAddressesSection.defaultBillingAddress}}" userInput="{{address.street[0]}}" stepKey="seeAssertCustomerDefaultBillingAddressStreet"/> |
| 57 | + <see selector="{{StorefrontCustomerAddressesSection.defaultBillingAddress}}" userInput="{{address.street[1]}}" stepKey="seeAssertCustomerDefaultBillingAddressStreet1"/> |
| 58 | + <see selector="{{StorefrontCustomerAddressesSection.defaultBillingAddress}}" userInput="{{address.city}}, {{address.postcode}}" stepKey="seeAssertCustomerDefaultBillingAddressCityAndPostcode"/> |
| 59 | + <see selector="{{StorefrontCustomerAddressesSection.defaultBillingAddress}}" userInput="{{address.country}}" stepKey="seeAssertCustomerDefaultBillingAddressCountry"/> |
| 60 | + <see selector="{{StorefrontCustomerAddressesSection.defaultBillingAddress}}" userInput="{{address.telephone}}" stepKey="seeAssertCustomerDefaultBillingAddressTelephone"/> |
| 61 | + </actionGroup> |
| 62 | + <actionGroup name="VerifyCustomerShippingAddress"> |
| 63 | + <arguments> |
| 64 | + <argument name="address"/> |
| 65 | + </arguments> |
| 66 | + <amOnPage url="customer/address/index/" stepKey="goToAddressPage"/> |
| 67 | + <waitForPageLoad stepKey="waitForAddressPageLoad"/> |
| 68 | + <!--Verify customer default shipping address--> |
| 69 | + <see selector="{{StorefrontCustomerAddressesSection.defaultShippingAddress}}" userInput="{{address.firstname}} {{address.lastname}}" stepKey="seeAssertCustomerDefaultShippingAddressFirstnameAndLastname"/> |
| 70 | + <see selector="{{StorefrontCustomerAddressesSection.defaultShippingAddress}}" userInput="{{address.company}}" stepKey="seeAssertCustomerDefaultShippingAddressCompany"/> |
| 71 | + <see selector="{{StorefrontCustomerAddressesSection.defaultShippingAddress}}" userInput="{{address.street[0]}}" stepKey="seeAssertCustomerDefaultShippingAddressStreet"/> |
| 72 | + <see selector="{{StorefrontCustomerAddressesSection.defaultShippingAddress}}" userInput="{{address.street[1]}}" stepKey="seeAssertCustomerDefaultShippingAddressStreet1"/> |
| 73 | + <see selector="{{StorefrontCustomerAddressesSection.defaultShippingAddress}}" userInput="{{address.city}}, {{address.postcode}}" stepKey="seeAssertCustomerDefaultShippingAddressCityAndPostcode"/> |
| 74 | + <see selector="{{StorefrontCustomerAddressesSection.defaultShippingAddress}}" userInput="{{address.country}}" stepKey="seeAssertCustomerDefaultShippingAddressCountry"/> |
| 75 | + <see selector="{{StorefrontCustomerAddressesSection.defaultShippingAddress}}" userInput="{{address.telephone}}" stepKey="seeAssertCustomerDefaultShippingAddressTelephone"/> |
| 76 | + </actionGroup> |
| 77 | + <actionGroup name="VerifyCustomerBillingAddressWithState"> |
| 78 | + <arguments> |
| 79 | + <argument name="address"/> |
| 80 | + </arguments> |
| 81 | + <amOnPage url="customer/address/index/" stepKey="goToAddressPage"/> |
| 82 | + <waitForPageLoad stepKey="waitForAddressPageLoad"/> |
| 83 | + <!--Verify customer default billing address--> |
| 84 | + <see selector="{{StorefrontCustomerAddressesSection.defaultBillingAddress}}" userInput="{{address.firstname}} {{address.lastname}}" stepKey="seeAssertCustomerDefaultBillingAddressFirstnameAndLastname"/> |
| 85 | + <see selector="{{StorefrontCustomerAddressesSection.defaultBillingAddress}}" userInput="{{address.company}}" stepKey="seeAssertCustomerDefaultBillingAddressCompany"/> |
| 86 | + <see selector="{{StorefrontCustomerAddressesSection.defaultBillingAddress}}" userInput="{{address.street[0]}}" stepKey="seeAssertCustomerDefaultBillingAddressStreet"/> |
| 87 | + <see selector="{{StorefrontCustomerAddressesSection.defaultBillingAddress}}" userInput="{{address.street[1]}}" stepKey="seeAssertCustomerDefaultBillingAddressStreet1"/> |
| 88 | + <see selector="{{StorefrontCustomerAddressesSection.defaultBillingAddress}}" userInput="{{address.city}}, {{address.state}}, {{address.postcode}}" stepKey="seeAssertCustomerDefaultBillingAddressCityAndPostcode"/> |
| 89 | + <see selector="{{StorefrontCustomerAddressesSection.defaultBillingAddress}}" userInput="{{address.country}}" stepKey="seeAssertCustomerDefaultBillingAddressCountry"/> |
| 90 | + <see selector="{{StorefrontCustomerAddressesSection.defaultBillingAddress}}" userInput="{{address.telephone}}" stepKey="seeAssertCustomerDefaultBillingAddressTelephone"/> |
| 91 | + </actionGroup> |
| 92 | + <actionGroup name="VerifyCustomerShippingAddressWithState"> |
| 93 | + <arguments> |
| 94 | + <argument name="address"/> |
| 95 | + </arguments> |
| 96 | + <amOnPage url="customer/address/index/" stepKey="goToAddressPage"/> |
| 97 | + <waitForPageLoad stepKey="waitForAddressPageLoad"/> |
| 98 | + <!--Verify customer default shipping address--> |
| 99 | + <see selector="{{StorefrontCustomerAddressesSection.defaultShippingAddress}}" userInput="{{address.firstname}} {{address.lastname}}" stepKey="seeAssertCustomerDefaultShippingAddressFirstnameAndLastname"/> |
| 100 | + <see selector="{{StorefrontCustomerAddressesSection.defaultShippingAddress}}" userInput="{{address.company}}" stepKey="seeAssertCustomerDefaultShippingAddressCompany"/> |
| 101 | + <see selector="{{StorefrontCustomerAddressesSection.defaultShippingAddress}}" userInput="{{address.street[0]}}" stepKey="seeAssertCustomerDefaultShippingAddressStreet"/> |
| 102 | + <see selector="{{StorefrontCustomerAddressesSection.defaultShippingAddress}}" userInput="{{address.street[1]}}" stepKey="seeAssertCustomerDefaultShippingAddressStreet1"/> |
| 103 | + <see selector="{{StorefrontCustomerAddressesSection.defaultShippingAddress}}" userInput="{{address.city}}, {{address.state}}, {{address.postcode}}" stepKey="seeAssertCustomerDefaultShippingAddressCityAndPostcode"/> |
| 104 | + <see selector="{{StorefrontCustomerAddressesSection.defaultShippingAddress}}" userInput="{{address.country}}" stepKey="seeAssertCustomerDefaultShippingAddressCountry"/> |
| 105 | + <see selector="{{StorefrontCustomerAddressesSection.defaultShippingAddress}}" userInput="{{address.telephone}}" stepKey="seeAssertCustomerDefaultShippingAddressTelephone"/> |
| 106 | + </actionGroup> |
| 107 | + <actionGroup name="VerifyCustomerNameOnFrontend"> |
| 108 | + <arguments> |
| 109 | + <argument name="customer"/> |
| 110 | + </arguments> |
| 111 | + <!--Verify customer name on frontend--> |
| 112 | + <amOnPage url="customer/account/edit/" stepKey="goToAddressPage"/> |
| 113 | + <waitForPageLoad stepKey="waitForAddressPageLoad"/> |
| 114 | + <click selector="{{StorefrontCustomerSidebarSection.sidebarCurrentTab('Account Information')}}" stepKey="clickAccountInformationFromSidebarCurrentTab"/> |
| 115 | + <waitForPageLoad stepKey="waitForAccountInformationTabToOpen"/> |
| 116 | + <seeInField selector="{{StorefrontCustomerAccountInformationSection.firstName}}" userInput="{{customer.firstname}}" stepKey="seeAssertCustomerFirstName"/> |
| 117 | + <seeInField selector="{{StorefrontCustomerAccountInformationSection.lastName}}" userInput="{{customer.lastname}}" stepKey="seeAssertCustomerLastName"/> |
| 118 | + </actionGroup> |
48 | 119 |
|
49 | 120 | <actionGroup name="SignUpNewCustomerStorefrontActionGroup" extends="SignUpNewUserFromStorefrontActionGroup">
|
50 | 121 | <waitForPageLoad stepKey="waitForRegistered" after="clickCreateAccountButton"/>
|
51 |
| - <remove keyForRemoval="seeThankYouMessage" after="waitForRegistered"/> |
| 122 | + <remove keyForRemoval="seeThankYouMessage"/> |
52 | 123 | </actionGroup>
|
53 | 124 | </actionGroups>
|
0 commit comments