Skip to content

Commit 4741e5d

Browse files
Chhandak.Baruadevarul
authored andcommitted
ACP2E-1479: Product with any custom option causes an error when deleting product images
1 parent c70c547 commit 4741e5d

File tree

2 files changed

+4
-9
lines changed

2 files changed

+4
-9
lines changed
Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,21 +8,14 @@
88

99
<actionGroups xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
1010
xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/actionGroupSchema.xsd">
11-
<actionGroup name="VerifySuccessMessagesWithoutNotificationActionGroup">
11+
<actionGroup name="VerifySuccessMessagesWithoutWarningActionGroup">
1212
<annotations>
1313
<description>Verify the success messages without notification post product save and see the product image is deleted.</description>
1414
</annotations>
1515

16-
<arguments>
17-
<argument name="image" defaultValue="ProductImage"/>
18-
</arguments>
1916
<waitForPageLoad stepKey="waitForProductPageLoad1"/>
2017
<!--Verify notification and success messages-->
2118
<see selector="{{StorefrontMessagesSection.success}}" userInput="{{ProductFormMessages.save_success}}" stepKey="seeSuccessMessage"/>
2219
<dontSee selector="{{StorefrontMessagesSection.noticeMessage}}" userInput="{{ProductFormMessages.remove_image_notice}}" stepKey="seeNotification"/>
23-
<!--Reopen image tab and see the image is deleted-->
24-
<conditionalClick selector="{{AdminProductImagesSection.productImagesToggle}}" dependentSelector="{{AdminProductImagesSection.imageUploadButton}}" visible="false" stepKey="openProductImagesTab"/>
25-
<waitForPageLoad stepKey="waitForImagesLoad"/>
26-
<dontSeeElement selector="{{AdminProductImagesSection.imageFile(image.fileName)}}" stepKey="seeImageIsNotDeleted"/>
2720
</actionGroup>
2821
</actionGroups>

app/code/Magento/Catalog/Test/Mftf/Test/AdminDeleteProductsImageWithCustomOptionTest.xml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,9 @@
5555
</actionGroup>
5656
<actionGroup ref="SaveProductFormActionGroup" stepKey="saveProduct5"/>
5757
<!--Verify the success messages without notification-->
58-
<actionGroup ref="VerifySuccessMessagesWithoutNotificationActionGroup" stepKey="verifySuccessMessages">
58+
<actionGroup ref="VerifySuccessMessagesWithoutWarningActionGroup" stepKey="verifySuccessMessages"/>
59+
<!-- Assert product first image not in admin product form -->
60+
<actionGroup ref="AssertProductImageNotInAdminProductPageActionGroup" stepKey="assertProductImageNotInAdminProductPage">
5961
<argument name="image" value="ProductImage"/>
6062
</actionGroup>
6163
</test>

0 commit comments

Comments
 (0)