Skip to content

Commit 1802328

Browse files
author
joweecaquicla
committed
magento/adobe-stock-integration#1802: The three dots context menu is not closed after unsuccessful licensing from Media Gallery - added action group and modified sections in media gallery ui mftf
1 parent e392a6b commit 1802328

File tree

2 files changed

+17
-0
lines changed

2 files changed

+17
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
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+
<actionGroups xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
9+
xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/actionGroupSchema.xsd">
10+
<actionGroup name="AssertAdminMediaGalleryContextMenuOpenedActionGroup">
11+
<annotations>
12+
<description>Verify that context menu is closed in Media Gallery.</description>
13+
</annotations>
14+
<dontSeeElement selector="{{AdminEnhancedMediaGalleryImageActionsSection.contextMenuItem}}" stepKey="verifyContextMenuIsClosed" />
15+
</actionGroup>
16+
</actionGroups>

app/code/Magento/MediaGalleryUi/Test/Mftf/Section/AdminEnhancedMediaGalleryImageActionsSection.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
xsi:noNamespaceSchemaLocation="urn:magento:mftf:Page/etc/SectionObject.xsd">
1010
<section name="AdminEnhancedMediaGalleryImageActionsSection">
1111
<element name="openContextMenu" type="button" selector=".three-dots"/>
12+
<element name="contextMenuItem" type="block" selector="//div[@class='media-gallery-image']//ul[@class='action-menu _active']//li//a[@class='action-menu-item']"/>
1213
<element name="viewDetails" type="button" selector="[data-ui-id='action-image-details']"/>
1314
<element name="delete" type="button" selector="[data-ui-id='action-delete']"/>
1415
<element name="edit" type="button" selector="[data-ui-id='action-edit']"/>

0 commit comments

Comments
 (0)