Skip to content

Commit 159de75

Browse files
committed
MC-38090: [MFTF] Flaky SlideItemCollageRightCanInlineEditContentWhenIn25PercentWidthColumnTest
1 parent 3031150 commit 159de75

File tree

3 files changed

+23
-2
lines changed

3 files changed

+23
-2
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
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="ValidateTextContentInTinyMCEIFrameActionGroup">
11+
<arguments>
12+
<argument name="property" defaultValue=""/>
13+
</arguments>
14+
<comment userInput="Validating Text In Tiny MCE" stepKey="commentValidateTextTinyMCE"/>
15+
<waitForElementVisible selector="#{{SlideOnConfigurationPanel.tinyMCEIFrame}}" stepKey="waitForIFrame"/>
16+
<executeJS function="jQuery('{{ContentManagementSection.contentConfigurationPopup}}').scrollTop(jQuery('#{{SlideOnConfigurationPanel.tinyMCEIFrame}}').offset().top)" stepKey="expectedColumnSizeRatio"/>
17+
<switchToIFrame selector="#{{SlideOnConfigurationPanel.tinyMCEIFrame}}" stepKey="switchToIFrame"/>
18+
<see selector="body" userInput="{{property.value}}" stepKey="seeText"/>
19+
<switchToIFrame stepKey="exitIFrame"/>
20+
</actionGroup>
21+
</actionGroups>

app/code/Magento/PageBuilder/Test/Mftf/Section/PageBuilderStoreConfigurationSection.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,5 +36,6 @@
3636
<element name="ColumnGridMaxHelperText" type="text" selector="#row_cms_pagebuilder_column_grid_max .value .note span"/>
3737
<element name="UseSystem" type="input" selector="[name='groups[pagebuilder][fields][{{arg1}}][inherit]']" parameterized="true"/>
3838
<element name="UseSystemChecked" type="input" selector="[name='groups[pagebuilder][fields][{{arg1}}][inherit]']:checked" parameterized="true"/>
39+
<element name="contentConfigurationPopup" type="text" selector=".pagebuilder_modal_form_pagebuilder_modal_form_modal .modal-inner-wrap"/>
3940
</section>
4041
</sections>

app/code/Magento/PageBuilder/Test/Mftf/Test/AdminPageBuilderSlideItemAppearancePosterTest/SlideItemPosterCanInlineEditContentWhenIn25PercentWidthColumnTest.xml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,9 +87,8 @@
8787
<actionGroup ref="openPageBuilderEditPanelSmallByIndex" stepKey="openEditMenuOnStage">
8888
<argument name="section" value="SlideOnBackend"/>
8989
</actionGroup>
90-
<actionGroup ref="validateTextInTinyMCE" stepKey="seeMessageText">
90+
<actionGroup ref="ValidateTextContentInTinyMCEIFrameActionGroup" stepKey="seeMessageText">
9191
<argument name="property" value="PageBuilderSlideItemContent_Slide1"/>
92-
<argument name="section" value="SlideOnConfigurationPanel"/>
9392
</actionGroup>
9493
<actionGroup ref="closeEditPanelSettings" stepKey="closeEditPanelSettings2"/>
9594
<actionGroup ref="exitPageBuilderFullScreen" stepKey="exitPageBuilderFullScreen"/>

0 commit comments

Comments
 (0)