Skip to content

Commit d57aa8a

Browse files
committed
PB-273: Remove 200ms delay from options menu & toolbar on content types
1 parent 4a7dca5 commit d57aa8a

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

app/code/Magento/PageBuilder/Test/Mftf/ActionGroup/OptionsMenuActionGroup.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,7 @@
113113
<waitForElementVisible selector="{{PageBuilderStage.contentTypeInStageByIndex(contentType.role, targetIndex)}}" stepKey="waitForContentTypeInStageVisible"/>
114114
<moveMouseOver selector="{{PageBuilderStage.contentTypeInStageByIndex(contentType.role, targetIndex)}}" x="{{contentTypeXCoordinate}}" y="{{contentTypeYCoordinate}}" stepKey="onMouseOverContentTypeStage"/>
115115
<waitForElementVisible selector="{{PageBuilderContentTypeOptionsMenu.contentTypeOptionsMenuByIndex(contentType.role, targetIndex)}}" stepKey="waitForOptionsMenu"/>
116+
<waitForElementVisible selector="{{PageBuilderContentTypeOptionsMenu.contentTypeDuplicate(contentType.role, targetIndex)}}" stepKey="waitForDuplicate"/>
116117
<click selector="{{PageBuilderContentTypeOptionsMenu.contentTypeDuplicate(contentType.role, targetIndex)}}" stepKey="clickDuplicateContentType"/>
117118
<waitForPageLoad time="30" stepKey="waitForAnimation"/>
118119
<executeJS function="return document.querySelectorAll('{{PageBuilderStage.contentTypeTotalInStage(contentType.role)}}').length" stepKey="resultingContentTypeCount"/>

app/code/Magento/PageBuilder/Test/Mftf/ActionGroup/StageActionGroup.xml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -131,21 +131,25 @@
131131
<arguments>
132132
<argument name="section" defaultValue="TextOnStage"/>
133133
<argument name="index" defaultValue="1" type="string"/>
134+
<argument name="contentTypeXCoordinate" defaultValue="10" type="string"/>
135+
<argument name="contentTypeYCoordinate" defaultValue="null" type="string"/>
134136
</arguments>
135137
<comment userInput="focusOnInlineTinyMCEEditor" stepKey="comment"/>
136138
<waitForElementVisible selector="{{section.tinymce(index)}}" stepKey="waitForEditor"/>
137-
<click selector="{{section.tinymce(index)}}" stepKey="clickEditor"/>
139+
<clickWithLeftButton selector="{{section.tinymce(index)}}" x="{{contentTypeXCoordinate}}" y="{{contentTypeYCoordinate}}" stepKey="clickEditor"/>
138140
<waitForPageLoad stepKey="waitForEditorToBeFocused"/>
139141
<waitForElementVisible selector="{{section.tinymceInFocus(index)}}" stepKey="waitForEditorFocused"/>
140142
</actionGroup>
141143
<actionGroup name="focusOnInlineTextAreaEditor">
142144
<arguments>
143145
<argument name="section" defaultValue="TextOnStage"/>
144146
<argument name="index" defaultValue="1" type="string"/>
147+
<argument name="contentTypeXCoordinate" defaultValue="10" type="string"/>
148+
<argument name="contentTypeYCoordinate" defaultValue="null" type="string"/>
145149
</arguments>
146150
<comment userInput="focusOnInlineTextAreaEditor" stepKey="comment"/>
147151
<waitForElementVisible selector="{{section.textArea(index)}}" stepKey="waitForEditor"/>
148-
<click selector="{{section.textArea(index)}}" stepKey="clickEditor"/>
152+
<clickWithLeftButton selector="{{section.tinymce(index)}}" x="{{contentTypeXCoordinate}}" y="{{contentTypeYCoordinate}}" stepKey="clickEditor"/>
149153
<waitForPageLoad stepKey="waitForEditorToBeFocused"/>
150154
</actionGroup>
151155
<actionGroup name="switchTabAndReloadPage">

0 commit comments

Comments
 (0)