File tree Expand file tree Collapse file tree 2 files changed +7
-2
lines changed
app/code/Magento/PageBuilder/Test/Mftf/ActionGroup Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change 113
113
<waitForElementVisible selector =" {{PageBuilderStage.contentTypeInStageByIndex(contentType.role, targetIndex)}}" stepKey =" waitForContentTypeInStageVisible" />
114
114
<moveMouseOver selector =" {{PageBuilderStage.contentTypeInStageByIndex(contentType.role, targetIndex)}}" x =" {{contentTypeXCoordinate}}" y =" {{contentTypeYCoordinate}}" stepKey =" onMouseOverContentTypeStage" />
115
115
<waitForElementVisible selector =" {{PageBuilderContentTypeOptionsMenu.contentTypeOptionsMenuByIndex(contentType.role, targetIndex)}}" stepKey =" waitForOptionsMenu" />
116
+ <waitForElementVisible selector =" {{PageBuilderContentTypeOptionsMenu.contentTypeDuplicate(contentType.role, targetIndex)}}" stepKey =" waitForDuplicate" />
116
117
<click selector =" {{PageBuilderContentTypeOptionsMenu.contentTypeDuplicate(contentType.role, targetIndex)}}" stepKey =" clickDuplicateContentType" />
117
118
<waitForPageLoad time =" 30" stepKey =" waitForAnimation" />
118
119
<executeJS function =" return document.querySelectorAll('{{PageBuilderStage.contentTypeTotalInStage(contentType.role)}}').length" stepKey =" resultingContentTypeCount" />
Original file line number Diff line number Diff line change 131
131
<arguments >
132
132
<argument name =" section" defaultValue =" TextOnStage" />
133
133
<argument name =" index" defaultValue =" 1" type =" string" />
134
+ <argument name =" contentTypeXCoordinate" defaultValue =" 10" type =" string" />
135
+ <argument name =" contentTypeYCoordinate" defaultValue =" null" type =" string" />
134
136
</arguments >
135
137
<comment userInput =" focusOnInlineTinyMCEEditor" stepKey =" comment" />
136
138
<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" />
138
140
<waitForPageLoad stepKey =" waitForEditorToBeFocused" />
139
141
<waitForElementVisible selector =" {{section.tinymceInFocus(index)}}" stepKey =" waitForEditorFocused" />
140
142
</actionGroup >
141
143
<actionGroup name =" focusOnInlineTextAreaEditor" >
142
144
<arguments >
143
145
<argument name =" section" defaultValue =" TextOnStage" />
144
146
<argument name =" index" defaultValue =" 1" type =" string" />
147
+ <argument name =" contentTypeXCoordinate" defaultValue =" 10" type =" string" />
148
+ <argument name =" contentTypeYCoordinate" defaultValue =" null" type =" string" />
145
149
</arguments >
146
150
<comment userInput =" focusOnInlineTextAreaEditor" stepKey =" comment" />
147
151
<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" />
149
153
<waitForPageLoad stepKey =" waitForEditorToBeFocused" />
150
154
</actionGroup >
151
155
<actionGroup name =" switchTabAndReloadPage" >
You can’t perform that action at this time.
0 commit comments