Skip to content

Commit 70b43a5

Browse files
committed
MAGETWO-96385: Deleting address on frontend redirects to 404 Page
- recommitting after a force push
1 parent 2702e23 commit 70b43a5

File tree

5 files changed

+6
-34
lines changed

5 files changed

+6
-34
lines changed

app/code/Magento/Customer/Test/Mftf/Section/StorefrontCustomerAddressModalSection.xml

Lines changed: 0 additions & 15 deletions
This file was deleted.

app/code/Magento/Customer/Test/Mftf/Section/StorefrontCustomerAddressSection.xml

Lines changed: 0 additions & 14 deletions
This file was deleted.

app/code/Magento/Customer/Test/Mftf/Section/StorefrontCustomerAddressesSection.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,6 @@
1010
xsi:noNamespaceSchemaLocation="urn:magento:mftf:Page/etc/SectionObject.xsd">
1111
<section name="StorefrontCustomerAddressesSection">
1212
<element name="addressesList" type="text" selector=".block-addresses-list" />
13+
<element name="deleteAdditionalAddress" type="button" selector="//ol[@class='items addresses']/li[@class='item'][{{var}}]//a[@class='action delete']" parameterized="true"/>
1314
</section>
1415
</sections>

app/code/Magento/Customer/Test/Mftf/Test/StorefrontDeleteCustomerAddressTest.xml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@
2222
</before>
2323
<after>
2424
<deleteData createDataKey="createCustomer" stepKey="deleteCustomer"/>
25-
<actionGroup ref="logout" stepKey="logout"/>
2625
</after>
2726
<amOnPage stepKey="amOnSignInPage" url="{{StorefrontCustomerSignInPage.url}}"/>
2827
<fillField stepKey="fillEmail" userInput="$$createCustomer.email$$" selector="{{StorefrontCustomerSignInFormSection.emailField}}"/>
@@ -32,10 +31,10 @@
3231
<argument name="Address" value="US_Address_NY"/>
3332
</actionGroup>
3433
<see userInput="You saved the address." stepKey="verifyAddressCreated"/>
35-
<click selector="{{StorefrontCustomerAddressSection.deleteAdditionalAddress}}" stepKey="deleteAdditionalAddress"/>
36-
<waitForElementVisible selector="{{StorefrontCustomerAddressConfirmationModalSection.message}}" stepKey="waitFortheConfirmationModal"/>
37-
<see selector="{{StorefrontCustomerAddressConfirmationModalSection.message}}" userInput="Are you sure you want to delete this address?" stepKey="seeAddressDeleteConfirmationMessage"/>
38-
<click selector="{{StorefrontCustomerAddressConfirmationModalSection.ok}}" stepKey="confirmDelete"/>
34+
<click selector="{{StorefrontCustomerAddressesSection.deleteAdditionalAddress('1')}}" stepKey="deleteAdditionalAddress"/>
35+
<waitForElementVisible selector="{{ModalConfirmationSection.modalContent}}" stepKey="waitFortheConfirmationModal"/>
36+
<see selector="{{ModalConfirmationSection.modalContent}}" userInput="Are you sure you want to delete this address?" stepKey="seeAddressDeleteConfirmationMessage"/>
37+
<click selector="{{ModalConfirmationSection.OkButton}}" stepKey="confirmDelete"/>
3938
<waitForPageLoad stepKey="waitForDeleteToFinish"/>
4039
<see userInput="You deleted the address." stepKey="verifyDeleteAddress"/>
4140
</test>

app/code/Magento/Ui/Test/Mftf/Section/ModalConfirmationSection.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
<sections xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
1010
xsi:noNamespaceSchemaLocation="urn:magento:mftf:Page/etc/SectionObject.xsd">
1111
<section name="ModalConfirmationSection">
12+
<element name="modalContent" type="text" selector="aside.confirm div.modal-content"/>
1213
<element name="CancelButton" type="button" selector="//footer[@class='modal-footer']/button[contains(@class, 'action-dismiss')]"/>
1314
<element name="OkButton" type="button" selector="//footer[@class='modal-footer']/button[contains(@class, 'action-accept')]"/>
1415
</section>

0 commit comments

Comments
 (0)