Skip to content

Commit 235318a

Browse files
author
Viktor Kopin
committed
adobe-stock-integration#1813: mftf test
1 parent a948194 commit 235318a

File tree

1 file changed

+43
-0
lines changed

1 file changed

+43
-0
lines changed
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!--
3+
/**
4+
* Copyright © Magento, Inc. All rights reserved.
5+
* See COPYING.txt for license details.
6+
*/
7+
-->
8+
9+
<tests xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
10+
xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/testSchema.xsd">
11+
<test name="AdminMediaGalleryDefaultViewWithoutFiltersTest">
12+
<annotations>
13+
<features value="AdminMediaGalleryDefaultViewWithoutFiltersTest"/>
14+
<useCaseId value="https://github.com/magento/adobe-stock-integration/issues/1813"/>
15+
<title value="User shouldn't see applied filters if media gallery switched to Default View"/>
16+
<description value="No filters should be applied if Default View selected"/>
17+
<severity value="CRITICAL"/>
18+
<group value="media_gallery_ui"/>
19+
</annotations>
20+
<before>
21+
<createData entity="SimpleSubCategory" stepKey="category"/>
22+
<actionGroup ref="AdminLoginActionGroup" stepKey="loginAsAdmin"/>
23+
</before>
24+
<after>
25+
<deleteData createDataKey="category" stepKey="deleteCategory"/>
26+
</after>
27+
28+
<!-- Open category page -->
29+
<actionGroup ref="AdminOpenCategoryGridPageActionGroup" stepKey="openCategoryPage"/>
30+
<actionGroup ref="AdminEditCategoryInGridPageActionGroup" stepKey="editCategoryItem">
31+
<argument name="categoryName" value="$category.name$"/>
32+
</actionGroup>
33+
34+
<!-- Open media gallery folder -->
35+
<actionGroup ref="AdminOpenMediaGalleryFromCategoryImageUploaderActionGroup" stepKey="openMediaGallery"/>
36+
<actionGroup ref="AdminEnhancedMediaGallerySelectCustomBookmarksViewActionGroup" stepKey="selectDefaultView">
37+
<argument name="selectView" value="Default View"/>
38+
</actionGroup>
39+
40+
<!-- Asset folder is empty -->
41+
<actionGroup ref="AdminEnhancedMediaGalleryAssertNoActiveFiltersAppliedActionGroup" stepKey="assertEmptyFolder"/>
42+
</test>
43+
</tests>

0 commit comments

Comments
 (0)