Skip to content

#1796: [MFTF] Unskip AdminMediaGalleryUploadCategoryImageTest #29875

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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>