File tree Expand file tree Collapse file tree 3 files changed +7
-6
lines changed
app/code/Magento/Catalog/Test/Mftf Expand file tree Collapse file tree 3 files changed +7
-6
lines changed Original file line number Diff line number Diff line change 1919 <waitForElementVisible selector =" {{AdminProductImagesSection.imageFile(image.fileName)}}" stepKey =" seeProductImageName" />
2020 <click selector =" {{AdminProductImagesSection.imageFile(image.fileName)}}" stepKey =" clickProductImage" />
2121 <waitForElementVisible selector =" {{AdminProductImagesSection.altText}}" stepKey =" seeAltTextSection" />
22- <checkOption selector =" {{AdminProductImagesSection.roleBase}} " stepKey =" checkRoleBase" />
23- <checkOption selector =" {{AdminProductImagesSection.roleSmall}} " stepKey =" checkRoleSmall" />
24- <checkOption selector =" {{AdminProductImagesSection.roleThumbnail}} " stepKey =" checkRoleThumbnail" />
25- <checkOption selector =" {{AdminProductImagesSection.roleSwatch}} " stepKey =" checkRoleSwatch" />
22+ <conditionalClick selector =" {{AdminProductImagesSection.role('Base')}} " dependentSelector = " {{AdminProductImagesSection.isRoleChecked('Base')}} " visible = " false " stepKey =" checkRoleBase" />
23+ <conditionalClick selector =" {{AdminProductImagesSection.role('Small')}} " dependentSelector = " {{AdminProductImagesSection.isRoleChecked('Small')}} " visible = " false " stepKey =" checkRoleSmall" />
24+ <conditionalClick selector =" {{AdminProductImagesSection.role('Thumbnail')}} " dependentSelector = " {{AdminProductImagesSection.isRoleChecked('Thumbnail')}} " visible = " false " stepKey =" checkRoleThumbnail" />
25+ <conditionalClick selector =" {{AdminProductImagesSection.role('Swatch')}} " dependentSelector = " {{AdminProductImagesSection.isRoleChecked('Swatch')}} " visible = " false " stepKey =" checkRoleSwatch" />
2626 <click selector =" {{AdminSlideOutDialogSection.closeButton}}" stepKey =" clickCloseButton" />
2727 </actionGroup >
2828</actionGroups >
Original file line number Diff line number Diff line change 2626
2727 <element name =" altText" type =" textarea" selector =" textarea[data-role='image-description']" />
2828
29+ <element name =" role" type =" button" selector =" //div[contains(@class, 'field-image-role')]//ul/li[label[normalize-space(.) = '{{role}}']]" parameterized =" true" />
2930 <element name =" roleBase" type =" button" selector =" //div[contains(@class, 'field-image-role')]//ul/li/label[normalize-space(.) = 'Base']" />
3031 <element name =" roleSmall" type =" button" selector =" //div[contains(@class, 'field-image-role')]//ul/li/label[normalize-space(.) = 'Small']" />
3132 <element name =" roleThumbnail" type =" button" selector =" //div[contains(@class, 'field-image-role')]//ul/li/label[normalize-space(.) = 'Thumbnail']" />
Original file line number Diff line number Diff line change 131131 </actionGroup >
132132 <actionGroup ref =" SaveProductFormActionGroup" stepKey =" saveProduct5" />
133133 <!-- Assert notification and success messages-->
134- <see selector = " {{ StorefrontMessagesSection.success}} " userInput = " {{ ProductFormMessages.save_success}} " stepKey =" seeSuccessMessage" />
135- <see selector =" {{StorefrontMessagesSection.noticeMessage}}" userInput =" {{ProductFormMessages.remove_image_notice}}" stepKey =" seeNotification" />
134+ <comment userInput = " Preserving BIC. Removing due to duplicate. StorefrontMessagesSection.success, ProductFormMessages.save_success" stepKey =" seeSuccessMessage" />
135+ <waitForText selector =" {{StorefrontMessagesSection.noticeMessage}}" userInput =" {{ProductFormMessages.remove_image_notice}}" stepKey =" seeNotification" />
136136 <!-- Reopen image tab and see the image is not deleted-->
137137 <conditionalClick selector =" {{AdminProductImagesSection.productImagesToggle}}" dependentSelector =" {{AdminProductImagesSection.imageUploadButton}}" visible =" false" stepKey =" openProductImagesTab" />
138138 <waitForPageLoad stepKey =" waitForImagesLoad" />
You can’t perform that action at this time.
0 commit comments