Skip to content

Commit

Permalink
adobe-stock-integration#1813: mftf test
Browse files Browse the repository at this point in the history
  • Loading branch information
Viktor Kopin committed Sep 9, 2020
1 parent a948194 commit 235318a
Showing 1 changed file with 43 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
/**
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
-->

<tests xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/testSchema.xsd">
<test name="AdminMediaGalleryDefaultViewWithoutFiltersTest">
<annotations>
<features value="AdminMediaGalleryDefaultViewWithoutFiltersTest"/>
<useCaseId value="https://github.com/magento/adobe-stock-integration/issues/1813"/>
<title value="User shouldn't see applied filters if media gallery switched to Default View"/>
<description value="No filters should be applied if Default View selected"/>
<severity value="CRITICAL"/>
<group value="media_gallery_ui"/>
</annotations>
<before>
<createData entity="SimpleSubCategory" stepKey="category"/>
<actionGroup ref="AdminLoginActionGroup" stepKey="loginAsAdmin"/>
</before>
<after>
<deleteData createDataKey="category" stepKey="deleteCategory"/>
</after>

<!-- Open category page -->
<actionGroup ref="AdminOpenCategoryGridPageActionGroup" stepKey="openCategoryPage"/>
<actionGroup ref="AdminEditCategoryInGridPageActionGroup" stepKey="editCategoryItem">
<argument name="categoryName" value="$category.name$"/>
</actionGroup>

<!-- Open media gallery folder -->
<actionGroup ref="AdminOpenMediaGalleryFromCategoryImageUploaderActionGroup" stepKey="openMediaGallery"/>
<actionGroup ref="AdminEnhancedMediaGallerySelectCustomBookmarksViewActionGroup" stepKey="selectDefaultView">
<argument name="selectView" value="Default View"/>
</actionGroup>

<!-- Asset folder is empty -->
<actionGroup ref="AdminEnhancedMediaGalleryAssertNoActiveFiltersAppliedActionGroup" stepKey="assertEmptyFolder"/>
</test>
</tests>

0 comments on commit 235318a

Please sign in to comment.