Skip to content

Commit f0a8f02

Browse files
committed
ACQE-7206: Change content of WYSIWYG editor if it's disabled by default
- New Actiongroup is created to avoid Dependencies test failure
1 parent 53ae9c9 commit f0a8f02

File tree

3 files changed

+21
-6
lines changed

3 files changed

+21
-6
lines changed

app/code/Magento/Catalog/Test/Mftf/Test/AdminChangeContentOfWysiwygEditorForDisabledByDefaultTest.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@
188188
<actionGroup ref="CliMediaGalleryEnhancedEnableActionGroup" stepKey="enableOldMediaGallery1">
189189
<argument name="enabled" value="0"/>
190190
</actionGroup>
191-
<actionGroup ref="AssignBlockToCMSPage" stepKey="assignBlockToCMSPage">
191+
<actionGroup ref="AdminAssignBlockCMSPageWithTinyMCEActionGroup" stepKey="assignBlockToCMSPage">
192192
<argument name="Block" value="$$createPreReqBlock$$"/>
193193
<argument name="CmsPage" value="$$createCMSPage$$"/>
194194
</actionGroup>
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!--
3+
/**
4+
* Copyright 2025 Adobe
5+
* All Rights Reserved.
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="AdminAssignBlockCMSPageWithTinyMCEActionGroup" extends="AssignBlockToCMSPage">
12+
<annotations>
13+
<description>Clicks On Show/Hide Button To display TinyMCE</description>
14+
</annotations>
15+
</actionGroup>
16+
</actionGroups>

app/code/Magento/Cms/Test/Mftf/ActionGroup/AssignBlockToCMSPageActionGroup.xml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<!--
3-
/**
4-
* Copyright 2018 Adobe
5-
* All Rights Reserved.
6-
*/
3+
/**
4+
* Copyright © Magento, Inc. All rights reserved.
5+
* See COPYING.txt for license details.
6+
*/
77
-->
88

99
<actionGroups xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
@@ -33,7 +33,6 @@
3333
<click selector="{{CmsPagesPageActionsSection.edit(CmsPage.identifier)}}" stepKey="clickEdit"/>
3434
<waitForPageLoad stepKey="waitForPageLoad2"/>
3535
<click selector="{{CmsNewPagePageContentSection.header}}" stepKey="clickContentTab"/>
36-
<conditionalClick selector="{{TinyMCESection.ShowHideBtn}}" dependentSelector="{{TinyMCESection.TinyMCE}}" visible="false" stepKey="clickShowHideEditor"/>
3736
<waitForElementVisible selector="{{TinyMCESection.TinyMCE}}" stepKey="waitForTinyMCE"/>
3837
<seeElement selector="{{TinyMCESection.InsertWidgetIcon}}" stepKey="seeWidgetIcon"/>
3938
<click selector="{{TinyMCESection.InsertWidgetIcon}}" stepKey="clickInsertWidgetIcon"/>

0 commit comments

Comments
 (0)