Skip to content

Commit 7f0a495

Browse files
author
Viktor Kopin
committed
adobe-stock-integration#1792: update after review
1 parent b3e5989 commit 7f0a495

File tree

6 files changed

+17
-14
lines changed

6 files changed

+17
-14
lines changed

app/code/Magento/MediaGalleryCatalogIntegration/Test/Mftf/Test/AdminUploadSameImageDeleteFromTemporaryFolderTest.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,10 @@
3939
<actionGroup ref="AdminOpenMediaGalleryFromCategoryImageUploaderActionGroup" stepKey="openMediaGallery"/>
4040
<actionGroup ref="AdminEnhancedMediaGalleryExpandCatalogTmpFolderActionGroup" stepKey="expandTmpFolder"/>
4141
<actionGroup ref="AdminMediaGalleryFolderSelectByFullPathActionGroup" stepKey="selectCategoryFolder">
42-
<argument name="name" value="catalog/tmp/category"/>
42+
<argument name="path" value="catalog/tmp/category"/>
4343
</actionGroup>
4444

45-
<!-- Asset folder is empty -->
46-
<actionGroup ref="AdminAssertMediaGalleryEmptyFolderActionGroup" stepKey="assertEmptyFolder"/>
45+
<!-- Assert folder is empty -->
46+
<actionGroup ref="AdminAssertMediaGalleryEmptyActionGroup" stepKey="assertEmptyFolder"/>
4747
</test>
4848
</tests>

app/code/Magento/MediaGalleryCatalogUi/Test/Mftf/Section/AdminMediaGalleryCatalogUiCategoryGridSection.xml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,5 @@
1414
<element name="image" type="text" selector="//tr//td[count(//div[@data-role='grid-wrapper']//tr//th[contains(., 'Image')]/preceding-sibling::th) +1]//img[contains(@src, '{{file}}')]" parameterized="true"/>
1515
<element name="columnValue" type="text" selector="//tr//td[count(//div[@data-role='grid-wrapper']//tr//th[contains(., '{{columnName}}')]/preceding-sibling::th) +1 ]//div" parameterized="true"/>
1616
<element name="edit" type="button" selector="//tr[td//text()[contains(., '{{categoryName}}')]]//td[count(//div[@data-role='grid-wrapper']//tr//th[contains(., 'Action')]/preceding-sibling::th) +1 ]//*[text()='{{actionButton}}']" parameterized="true"/>
17-
<element name="noDataMessage" type="text" selector="div.no-data-message-container"/>
1817
</section>
1918
</sections>
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,11 @@
77
-->
88
<actionGroups xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
99
xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/actionGroupSchema.xsd">
10-
<actionGroup name="AdminAssertMediaGalleryEmptyFolderActionGroup">
10+
<actionGroup name="AdminAssertMediaGalleryEmptyActionGroup">
1111
<annotations>
1212
<description>Requires select folder in directory tree. Assert that selected folder is empty.</description>
1313
</annotations>
1414

15-
<seeElement selector="{{AdminMediaGalleryCatalogUiCategoryGridSection.noDataMessage}}" stepKey="assertNoDataMessageDisplayed" />
15+
<seeElement selector="{{AdminMediaGalleryGridSection.noDataMessage}}" stepKey="assertNoDataMessageDisplayed" />
1616
</actionGroup>
1717
</actionGroups>

app/code/Magento/MediaGalleryUi/Test/Mftf/ActionGroup/AdminMediaGalleryFolderSelectByFullPathActionGroup.xml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,12 @@
88

99
<actionGroups xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
1010
xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/actionGroupSchema.xsd">
11-
<actionGroup name="AdminMediaGalleryFolderSelectByFullPathActionGroup"
12-
extends="AdminMediaGalleryFolderSelectActionGroup">
13-
<remove keyForRemoval="selectFolder"/>
14-
<click selector="//li[@id='{{name}}']" stepKey="selectSubFolder" after="waitBeforeClickOnFolder"/>
11+
<actionGroup name="AdminMediaGalleryFolderSelectByFullPathActionGroup">
12+
<arguments>
13+
<argument name="path" type="string"/>
14+
</arguments>
15+
<wait time="2" stepKey="waitBeforeClickOnFolder"/>
16+
<click selector="//li[@id='{{path}}']" stepKey="selectSubFolder" after="waitBeforeClickOnFolder"/>
17+
<waitForLoadingMaskToDisappear stepKey="waitForFolderContents"/>
1518
</actionGroup>
1619
</actionGroups>

app/code/Magento/MediaGalleryUi/Test/Mftf/ActionGroup/AssertAdminEnhancedMediaGallerySortByActionGroup.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,11 @@
1818
<argument name="thirdImageFile" type="string"/>
1919
</arguments>
2020

21-
<grabAttributeFrom selector="{{AdminEnhancedMediaGalleryGridImagePositionSection.nthImageInGrid('0')}}" userInput="src"
21+
<grabAttributeFrom selector="{{AdminMediaGalleryGridSection.nthImageInGrid('0')}}" userInput="src"
2222
stepKey="getFirstImageSrcAfterSort"/>
23-
<grabAttributeFrom selector="{{AdminEnhancedMediaGalleryGridImagePositionSection.nthImageInGrid('1')}}" userInput="src"
23+
<grabAttributeFrom selector="{{AdminMediaGalleryGridSection.nthImageInGrid('1')}}" userInput="src"
2424
stepKey="getSecondImageSrcAfterSort"/>
25-
<grabAttributeFrom selector="{{AdminEnhancedMediaGalleryGridImagePositionSection.nthImageInGrid('2')}}" userInput="src"
25+
<grabAttributeFrom selector="{{AdminMediaGalleryGridSection.nthImageInGrid('2')}}" userInput="src"
2626
stepKey="getThirdImageSrcAfterSort"/>
2727

2828
<assertStringContainsString stepKey="assertFirstImagePositionAfterSort">
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@
77
-->
88
<sections xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
99
xsi:noNamespaceSchemaLocation="urn:magento:mftf:Page/etc/SectionObject.xsd">
10-
<section name="AdminEnhancedMediaGalleryGridImagePositionSection">
10+
<section name="AdminMediaGalleryGridSection">
11+
<element name="noDataMessage" type="text" selector="div.no-data-message-container"/>
1112
<element name="nthImageInGrid" type="text" selector="div[class='masonry-image-column'][data-repeat-index='{{row}}'] img" parameterized="true"/>
1213
</section>
1314
</sections>

0 commit comments

Comments
 (0)