|
47 | 47 | <click selector="{{AdminCustomerAddressesDefaultBillingSection.editButton}}" stepKey="clickEditDefaultBillingAddress"/>
|
48 | 48 | <waitForPageLoad stepKey="waitForCustomerAddressAddUpdateFormLoad"/>
|
49 | 49 |
|
50 |
| - <!-- Select Country = Finland And Region =Ahvenanmaa , Click on Save Button --> |
| 50 | + <!-- Select Country = Finland And Region =Ahvenanmaa , Click on Save Button--> |
51 | 51 | <click selector="{{AdminCustomerAddressesSection.country}}" stepKey="clickCountryToOpenListOfCountries"/>
|
52 | 52 | <click selector="{{AdminCustomerAddressesSection.countryId(Finland_Address.country_id)}}" stepKey="fillCountry"/>
|
53 | 53 | <click selector="{{AdminCustomerAddressesSection.state}}" stepKey="clickRegionToOpenListOfRegions"/>
|
54 | 54 | <click selector="{{AdminCustomerAddressesSection.regionId(Finland_Address.state)}}" stepKey="fillRegion"/>
|
55 | 55 | <click selector="{{AdminCustomerAddressesSection.saveAddress}}" stepKey="clickSaveCustomer"/>
|
| 56 | + <waitForPageLoad stepKey="waitForPageToBeSave"/> |
56 | 57 |
|
57 | 58 | <!--Verify state name in address details section-->
|
58 |
| - <see userInput="{{Finland_Address.state}}" selector="{{AdminCustomerAddressesSection.regionId(Finland_Address.state)}}" stepKey="seeStateInAddress"/> |
| 59 | + <grabTextFrom selector="{{AdminCustomerAddressesDefaultBillingSection.addressDetails}}" stepKey="grabAddress"/> |
| 60 | + <assertStringContainsString stepKey="SeeStateInAddress"> |
| 61 | + <expectedResult type="string">{{Finland_Address.state}}</expectedResult> |
| 62 | + <actualResult type="string">{$grabAddress}</actualResult> |
| 63 | + </assertStringContainsString> |
59 | 64 |
|
60 | 65 | <!-- Click on edit link for default billing address , deselect region and click on save button-->
|
61 | 66 | <click selector="{{AdminCustomerAddressesDefaultBillingSection.editButton}}" stepKey="clickEditDefaultBillingAddressAgain"/>
|
62 | 67 | <waitForPageLoad stepKey="waitForCustomerAddressAddUpdateFormLoad2"/>
|
63 | 68 | <selectOption selector="{{AdminCustomerAddressesSection.state}}" userInput="Please select a region, state or province." stepKey="selectState"/>
|
64 |
| - <click selector="{{AdminCustomerAddressesSection.saveAddress}}" stepKey="clickSaveCustomerAgain"/> |
65 |
| - |
66 |
| - <!--Open/Reload customer details page--> |
67 |
| - <actionGroup ref="AdminOpenCustomerEditPageActionGroup" stepKey="openCustomerEditPageAgain"> |
68 |
| - <argument name="customerId" value="$firstCustomer.id$"/> |
69 |
| - </actionGroup> |
| 69 | + <click selector="{{AdminCustomerAddressesSection.saveAddress}}" stepKey="clickSaveCustomerAfterDeselectRegion"/> |
| 70 | + <waitForPageLoad stepKey="waitForPageToBeSaved"/> |
70 | 71 |
|
71 | 72 | <!--Verify state name not visible under address details section-->
|
72 |
| - <dontSee userInput="{{Finland_Address.state}}" selector="{{AdminCustomerAddressesDefaultBillingSection.addressDetails}}" stepKey="dontSeeStateInAddress"/> |
73 |
| - </test> |
74 |
| - </tests> |
| 73 | + <grabTextFrom selector="{{AdminCustomerAddressesDefaultBillingSection.addressDetails}}" stepKey="grabAddressAgain"/> |
| 74 | + <assertStringNotContainsString stepKey="dontSeeStateInAddress"> |
| 75 | + <expectedResult type="string">{{Finland_Address.state}}</expectedResult> |
| 76 | + <actualResult type="string">{$grabAddressAgain}</actualResult> |
| 77 | + </assertStringNotContainsString> |
| 78 | + |
| 79 | + </test> |
| 80 | +</tests> |
0 commit comments