Skip to content

Commit 34863b8

Browse files
committed
#1688: Saved image from Adobe Stock is selected/highlighted, but the "Add Selected" button is not displayed  - MFTF Test
1 parent 54eb682 commit 34863b8

File tree

3 files changed

+90
-0
lines changed

3 files changed

+90
-0
lines changed
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
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+
<actionGroups xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
10+
xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/actionGroupSchema.xsd">
11+
<actionGroup name="AdminMediaGalleryAddSelectedSavedPreviewActionGroup">
12+
<waitForPageLoad stepKey="waitForMaskToDisappear" />
13+
<grabValueFrom selector="{{AdminAdobeStockImagePreviewSection.imageNameField}}" stepKey="imageName" />
14+
<click selector="{{AdminAdobeStockImagePreviewSection.confirm}}" stepKey="clickOnPopupConfirm"/>
15+
<waitForPageLoad stepKey="waitForMaskToDisappear1" />
16+
<waitForElementVisible selector="{{AdminMediaGalleryHeaderButtonsSection.addSelected}}" stepKey="waitForAddSelectedButton"/>
17+
<click selector="{{AdminMediaGalleryHeaderButtonsSection.addSelected}}" stepKey="ClickAddSelected"/>
18+
<wait time="5" stepKey="waitForImageToBeAdded"/>
19+
</actionGroup>
20+
</actionGroups>
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
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" xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/testSchema.xsd">
10+
<test name="AdminMediaGalleryCategorySavedPreviewAddSelectedTest">
11+
<annotations>
12+
<features value="AdobeStockImagePanel"/>
13+
<stories value="[Story #4] User selects saved image preview in Category"/>
14+
<useCaseId value="https://github.com/magento/adobe-stock-integration/issues/1688"/>
15+
<title value="User saves image preview and clicks add selection to content in Category"/>
16+
<testCaseId value="https://studio.cucumber.io/projects/131313/test-plan/folders/1054245/scenarios/5068945"/>
17+
<description value="Admin should be able to save image preview and clicks add selection button"/>
18+
<severity value="CRITICAL"/>
19+
<group value="adobe_stock_media_gallery"/>
20+
</annotations>
21+
<before>
22+
<actionGroup ref="AdminLoginActionGroup" stepKey="loginAsAdmin"/>
23+
<actionGroup ref="AdminOpenCategoryPageActionGroup" stepKey="openCategoryPage"/>
24+
<actionGroup ref="AdminOpenMediaGalleryFromCategoryImageUploaderActionGroup" stepKey="openMediaGalleryFromWysiwyg"/>
25+
<actionGroup ref="AdminEnhancedMediaGallerySearchAdobeStockActionGroup" stepKey="openAdobeStockPanel"/>
26+
</before>
27+
<after>
28+
<actionGroup ref="AdminOpenMediaGalleryFromCategoryImageUploaderActionGroup" stepKey="openMediaGalleryFromWysiwyg"/>
29+
<actionGroup ref="AdminEnhancedMediaGalleryImageDeleteActionGroup" stepKey="removeSavedPreview"/>
30+
</after>
31+
<actionGroup ref="AdminAdobeStockExpandImagePreviewActionGroup" stepKey="expandImagePreview"/>
32+
<actionGroup ref="AdminAdobeStockSavePreviewActionGroup" stepKey="saveImagePreview"/>
33+
<actionGroup ref="AdminMediaGalleryAddSelectedSavedPreviewActionGroup" stepKey="addSelectedSavedPreview"/>
34+
</test>
35+
</tests>
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
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" xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/testSchema.xsd">
10+
<test name="AdminMediaGalleryPageSavedPreviewAddSelectedTest">
11+
<annotations>
12+
<features value="AdobeStockImagePanel"/>
13+
<stories value="[Story #4] User selects saved image preview in Page"/>
14+
<useCaseId value="https://github.com/magento/adobe-stock-integration/issues/1688"/>
15+
<title value="User saves image preview and clicks add selection to content in Page"/>
16+
<testCaseId value="https://studio.cucumber.io/projects/131313/test-plan/folders/1054245/scenarios/5068945"/>
17+
<description value="Admin should be able to save image preview and clicks add selection button"/>
18+
<severity value="CRITICAL"/>
19+
<group value="adobe_stock_media_gallery"/>
20+
</annotations>
21+
<before>
22+
<actionGroup ref="AdminLoginActionGroup" stepKey="loginAsAdmin"/>
23+
<actionGroup ref="AdminOpenCreateNewCMSPageActionGroup" stepKey="openNewPage"/>
24+
<actionGroup ref="AdminOpenMediaGalleryFromPageNoEditorActionGroup" stepKey="openMediaGalleryForPage"/>
25+
<actionGroup ref="AdminEnhancedMediaGallerySearchAdobeStockActionGroup" stepKey="openAdobeStockPanel"/>
26+
</before>
27+
<after>
28+
<actionGroup ref="AdminOpenMediaGalleryFromPageNoEditorActionGroup" stepKey="openMediaGalleryForPage"/>
29+
<actionGroup ref="AdminEnhancedMediaGalleryImageDeleteActionGroup" stepKey="removeSavedPreview"/>
30+
</after>
31+
<actionGroup ref="AdminAdobeStockExpandImagePreviewActionGroup" stepKey="expandImagePreview"/>
32+
<actionGroup ref="AdminAdobeStockSavePreviewActionGroup" stepKey="saveImagePreview"/>
33+
<actionGroup ref="AdminMediaGalleryAddSelectedSavedPreviewActionGroup" stepKey="addSelectedSavedPreview"/>
34+
</test>
35+
</tests>

0 commit comments

Comments
 (0)