Skip to content
Merged
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,5 @@
<argument name="title"/>
</arguments>
<waitForElementVisible selector="{{AdminEnhancedMediaGalleryImageActionsSection.imageInGrid(title)}}" stepKey="waitForImageToBeVisible"/>

</actionGroup>
</actionGroups>
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,6 @@
<conditionalClick stepKey="clickExpandContent" selector="{{AdminCategoryContentSection.sectionHeader}}" dependentSelector="{{AdminCategoryContentSection.selectFromGalleryButton}}" visible="false" />
<waitForElementVisible selector="{{AdminCategoryContentSection.selectFromGalleryButton}}" stepKey="waitForSelectFromGallery" />
<click selector="{{AdminCategoryContentSection.selectFromGalleryButton}}" stepKey="clickSelectFromGallery" />
<waitForPageLoad stepKey="waitForPageLoad" />
<waitForPageLoad stepKey="waitForPageLoad"/>
</actionGroup>
</actionGroups>
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,6 @@
<tests xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/testSchema.xsd">
<test name="AdminMediaGalleryUploadCategoryImageTest">
<annotations>
<skip>
<issueId value="https://github.com/magento/adobe-stock-integration/issues/1796"/>
</skip>
<features value="AdminMediaGalleryImagePanel"/>
<useCaseId value="https://github.com/magento/adobe-stock-integration/issues/1435"/>
<stories value="User uploads image outside of the Media Gallery"/>
Expand Down Expand Up @@ -39,9 +36,15 @@
<actionGroup ref="AddCategoryImageActionGroup" stepKey="addCategoryImage"/>
<actionGroup ref="AdminSaveCategoryFormActionGroup" stepKey="saveCategoryForm"/>
<actionGroup ref="AdminOpenMediaGalleryFromCategoryImageUploaderActionGroup" stepKey="openMediaGalleryFromImageUploader"/>
<actionGroup ref="ResetAdminDataGridToDefaultViewActionGroup" stepKey="resetAdminDataGridToDefaultView"/>
<actionGroup ref="ClearFiltersAdminDataGridActionGroup" stepKey="clearFilter"/>
<actionGroup ref="AdminMediaGalleryFolderSelectActionGroup" stepKey="selectCatalogFolder">
<argument name="name" value="catalog"/>
</actionGroup>
<actionGroup ref="AdminMediaGalleryFolderSelectActionGroup" stepKey="selectCategoryFolder">
<argument name="name" value="category"/>
</actionGroup>
<actionGroup ref="AdminMediaGalleryAssertImageInGridActionGroup" stepKey="assertImageInGrid">
Copy link
Contributor

@rogyar rogyar Sep 3, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just a minor recommendation. If you take a look at AdminEnhancedMediaGalleryImageActionsSection.imageInGrid element selector, you will find that it might be too complex and cause fluky tests in the result. If we could make the selector simpler somehow (or introduce a new one). Like asserting the title of the element with class="preview-image" or so. This change may stabilize such tests as this one.

Hope it will help.

<argument name="title" value="ProductImage.filename"/>
<argument name="title" value="ProductImage.fileName"/>
</actionGroup>
</test>
</tests>