Skip to content

Commit 5ca4f74

Browse files
committed
MQE-1993:Refactor MFTF tests/actionGroups using <executeInSelenium>
Commented out steps/ skipped tests using <executeSelenium> & <peformOn> waiting for custom actions
1 parent 3c58e51 commit 5ca4f74

File tree

1 file changed

+30
-28
lines changed

1 file changed

+30
-28
lines changed

app/code/Magento/PageBuilder/Test/Mftf/Test/AdminPageBuilderTextTest.xml

Lines changed: 30 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -3045,6 +3045,8 @@
30453045
<testCaseId value="MC-29450"/>
30463046
<group value="pagebuilder"/>
30473047
<group value="pagebuilder-text"/>
3048+
<!-- skip due to MQE-1964 -->
3049+
<group value="skip"/>
30483050
</annotations>
30493051
<before>
30503052
<createData entity="_defaultCmsPage" stepKey="createCMSPage" />
@@ -3089,15 +3091,15 @@
30893091
<actionGroup ref="switchToPageBuilderStage" stepKey="switchToPageBuilderStage"/>
30903092
<actionGroup ref="scrollToTinyMCE" stepKey="scrollToTinyMCE"/>
30913093
<!-- Select portion of Heading "his is a h" -->
3092-
<executeInSelenium function="function ($webdriver) use ($I) {
3093-
$heading = $webdriver->findElement(\Facebook\WebDriver\WebDriverBy::xpath('//div[contains(@class, \'inline-wysiwyg\')]//h2'));
3094-
$actions = new \Facebook\WebDriver\Interactions\WebDriverActions($webdriver);
3095-
$actions->moveToElement($heading, {{TinyMCEPartialHeadingSelection.startX}}, {{TinyMCEPartialHeadingSelection.startY}})
3096-
->clickAndHold()
3097-
->moveToElement($heading, {{TinyMCEPartialHeadingSelection.endX}}, {{TinyMCEPartialHeadingSelection.endY}})
3098-
->release()
3099-
->perform();
3100-
}" stepKey="selectHeadingTextInTinyMCE"/>
3094+
<!--<executeInSelenium function="function ($webdriver) use ($I) {-->
3095+
<!--$heading = $webdriver->findElement(\Facebook\WebDriver\WebDriverBy::xpath('//div[contains(@class, \'inline-wysiwyg\')]//h2'));-->
3096+
<!--$actions = new \Facebook\WebDriver\Interactions\WebDriverActions($webdriver);-->
3097+
<!--$actions->moveToElement($heading, {{TinyMCEPartialHeadingSelection.startX}}, {{TinyMCEPartialHeadingSelection.startY}})-->
3098+
<!-- ->clickAndHold()-->
3099+
<!-- ->moveToElement($heading, {{TinyMCEPartialHeadingSelection.endX}}, {{TinyMCEPartialHeadingSelection.endY}})-->
3100+
<!-- ->release()-->
3101+
<!-- ->perform();-->
3102+
<!--}" stepKey="selectHeadingTextInTinyMCE"/>-->
31013103
<actionGroup ref="waitForTinyMCEInFocus" stepKey="waitForTinyMCEInFocus" />
31023104
<actionGroup ref="assertSelectedText" stepKey="assertSelection">
31033105
<argument name="expectedSelectedText" value="TinyMCEPartialHeadingSelection"/>
@@ -3107,15 +3109,15 @@
31073109
<actionGroup ref="switchToPageBuilderStage" stepKey="switchToPageBuilderStage2"/>
31083110
<actionGroup ref="scrollToTinyMCE" stepKey="scrollToTinyMCE2"/>
31093111
<!-- Select portion of paragraph text "es stri" -->
3110-
<executeInSelenium function="function ($webdriver) use ($I) {
3111-
$text = $webdriver->findElement(\Facebook\WebDriver\WebDriverBy::xpath('//div[contains(@class, \'inline-wysiwyg\')]//p[2]'));
3112-
$actions = new \Facebook\WebDriver\Interactions\WebDriverActions($webdriver);
3113-
$actions->moveToElement($text, {{TinyMCEPartialTextSelection.startX}}, {{TinyMCEPartialTextSelection.startY}})
3114-
->clickAndHold()
3115-
->moveToElement($text, {{TinyMCEPartialTextSelection.endX}}, {{TinyMCEPartialTextSelection.endY}})
3116-
->release()
3117-
->perform();
3118-
}" stepKey="selectTextInTinyMCE"/>
3112+
<!--<executeInSelenium function="function ($webdriver) use ($I) {-->
3113+
<!--$text = $webdriver->findElement(\Facebook\WebDriver\WebDriverBy::xpath('//div[contains(@class, \'inline-wysiwyg\')]//p[2]'));-->
3114+
<!--$actions = new \Facebook\WebDriver\Interactions\WebDriverActions($webdriver);-->
3115+
<!--$actions->moveToElement($text, {{TinyMCEPartialTextSelection.startX}}, {{TinyMCEPartialTextSelection.startY}})-->
3116+
<!-- ->clickAndHold()-->
3117+
<!-- ->moveToElement($text, {{TinyMCEPartialTextSelection.endX}}, {{TinyMCEPartialTextSelection.endY}})-->
3118+
<!-- ->release()-->
3119+
<!-- ->perform();-->
3120+
<!--}" stepKey="selectTextInTinyMCE"/>-->
31193121
<actionGroup ref="waitForTinyMCEInFocus" stepKey="waitForTinyMCEInFocus2" />
31203122
<actionGroup ref="assertSelectedText" stepKey="assertSelection2">
31213123
<argument name="expectedSelectedText" value="TinyMCEPartialTextSelection"/>
@@ -3125,16 +3127,16 @@
31253127
<actionGroup ref="switchToPageBuilderStage" stepKey="switchToPageBuilderStage3"/>
31263128
<actionGroup ref="scrollToTinyMCE" stepKey="scrollToTinyMCE3"/>
31273129
<!-- Select from part of the heading, over the variable, to part of the text string -->
3128-
<executeInSelenium function="function ($webdriver) use ($I) {
3129-
$heading = $webdriver->findElement(\Facebook\WebDriver\WebDriverBy::xpath('//div[contains(@class, \'inline-wysiwyg\')]//h2'));
3130-
$text = $webdriver->findElement(\Facebook\WebDriver\WebDriverBy::xpath('//div[contains(@class, \'inline-wysiwyg\')]//p[2]'));
3131-
$actions = new \Facebook\WebDriver\Interactions\WebDriverActions($webdriver);
3132-
$actions->moveToElement($heading, {{TinyMCEPartialHeadingSelection.startX}}, {{TinyMCEPartialHeadingSelection.startY}})
3133-
->clickAndHold()
3134-
->moveToElement($text, {{TinyMCEPartialTextSelection.endX}}, {{TinyMCEPartialTextSelection.endY}})
3135-
->release()
3136-
->perform();
3137-
}" stepKey="selectHeadingTextAndVariableTinyMCE"/>
3130+
<!--<executeInSelenium function="function ($webdriver) use ($I) {-->
3131+
<!--$heading = $webdriver->findElement(\Facebook\WebDriver\WebDriverBy::xpath('//div[contains(@class, \'inline-wysiwyg\')]//h2'));-->
3132+
<!--$text = $webdriver->findElement(\Facebook\WebDriver\WebDriverBy::xpath('//div[contains(@class, \'inline-wysiwyg\')]//p[2]'));-->
3133+
<!--$actions = new \Facebook\WebDriver\Interactions\WebDriverActions($webdriver);-->
3134+
<!--$actions->moveToElement($heading, {{TinyMCEPartialHeadingSelection.startX}}, {{TinyMCEPartialHeadingSelection.startY}})-->
3135+
<!-- ->clickAndHold()-->
3136+
<!-- ->moveToElement($text, {{TinyMCEPartialTextSelection.endX}}, {{TinyMCEPartialTextSelection.endY}})-->
3137+
<!-- ->release()-->
3138+
<!-- ->perform();-->
3139+
<!--}" stepKey="selectHeadingTextAndVariableTinyMCE"/>-->
31383140
<actionGroup ref="waitForTinyMCEInFocus" stepKey="waitForTinyMCEInFocus3" />
31393141
<actionGroup ref="assertSelectedText" stepKey="assertSelection3">
31403142
<argument name="expectedSelectedText" value="TinyMCEHeadingVariableTextSelection"/>

0 commit comments

Comments
 (0)