Skip to content

Commit

Permalink
ENGCOM-8218: #1827: Improve AdminMediaGalleryUploadCategoryImageTest #…
Browse files Browse the repository at this point in the history
  • Loading branch information
sidolov committed Sep 18, 2020
2 parents 0748aab + 8a53486 commit 7735c43
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
/**
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
-->

<actionGroups xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/actionGroupSchema.xsd">
<actionGroup name="AdminMediaGalleryExpandFolderActionGroup">
<arguments>
<argument name="fieldId" type="string"/>
</arguments>
<conditionalClick selector="{{AdminMediaGalleryFolderSection.folderArrow(fieldId)}}"
dependentSelector="{{AdminMediaGalleryFolderSection.checkIfFolderArrowExpand(fieldId)}}" stepKey="clickArrowIfClosed" visible="true"/>
</actionGroup>
</actionGroups>
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,7 @@
<element name="folderNameField" type="button" selector="[name=folder_name]"/>
<element name="folderConfirmCreateButton" type="button" selector="//button/span[contains(text(),'Confirm')]"/>
<element name="folderNameValidationMessage" type="block" selector="label.mage-error"/>
<element name="folderArrow" type="button" selector="#{{id}} &gt; .jstree-icon" parameterized="true"/>
<element name="checkIfFolderArrowExpand" type="button" selector="//li[@id='{{id}}' and contains(@class,'jstree-closed')]" parameterized="true"/>
</section>
</sections>
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@
<actionGroup ref="AdminSaveCategoryFormActionGroup" stepKey="saveCategoryForm"/>
<actionGroup ref="AdminOpenMediaGalleryFromCategoryImageUploaderActionGroup" stepKey="openMediaGalleryFromImageUploader"/>
<actionGroup ref="ClearFiltersAdminDataGridActionGroup" stepKey="clearFilter"/>
<actionGroup ref="AdminMediaGalleryFolderSelectActionGroup" stepKey="selectCatalogFolder">
<argument name="name" value="catalog"/>
<actionGroup ref="AdminMediaGalleryExpandFolderActionGroup" stepKey="expandCatalogFolder">
<argument name="fieldId" value="catalog"/>
</actionGroup>
<actionGroup ref="AdminMediaGalleryFolderSelectActionGroup" stepKey="selectCategoryFolder">
<argument name="name" value="category"/>
Expand Down

0 comments on commit 7735c43

Please sign in to comment.