Skip to content

Commit

Permalink
Merge pull request #5594 from magento-pangolin/MQE-2081
Browse files Browse the repository at this point in the history
MQE-2081: Functional Tests builds will only pass when MFTF and MTF are selected
  • Loading branch information
okolesnyk authored Apr 22, 2020
2 parents ed3f42b + 6c5a5a8 commit d4a9098
Show file tree
Hide file tree
Showing 4 changed files with 39 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
/**
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
-->

<actionGroups xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/actionGroupSchema.xsd">
<actionGroup name="AdminDisableWYSIWYGActionGroup">
<annotations>
<description>Runs bin/magento command to disable WYSIWYG</description>
</annotations>

<magentoCLI stepKey="disableWYSIWYG" command="config:set cms/wysiwyg/enabled disabled"/>
</actionGroup>
</actionGroups>
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
/**
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
-->

<actionGroups xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/actionGroupSchema.xsd">
<actionGroup name="AdminEnableWYSIWYGActionGroup">
<annotations>
<description>Runs bin/magento command to enable WYSIWYG</description>
</annotations>

<magentoCLI stepKey="enableWYSIWYG" command="config:set cms/wysiwyg/enabled enabled"/>
</actionGroup>
</actionGroups>
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,6 @@
<waitForPageLoad stepKey="waitForPageLoad1"/>
<see selector="{{StorefrontCategoryMainSection.CategoryTitle}}" userInput="{{category.name_lwr}}" stepKey="assertCategoryOnStorefront"/>
<seeInTitle userInput="{{category.name}}" stepKey="seeCategoryNameInTitle"/>
<see selector="{{StorefrontCMSPageSection.mainContent}}" userInput="{{text}}" stepKey="seeAssertTextInMainContent"/>
<see userInput="{{text}}" stepKey="seeAssertTextInMainContent"/>
</actionGroup>
</actionGroups>
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<suites xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:mftf:Suite/etc/suiteSchema.xsd">
<suite name="WYSIWYGDisabledSuite">
<before>
<magentoCLI stepKey="disableWYSYWYG" command="config:set cms/wysiwyg/enabled disabled" />
<actionGroup ref="AdminDisableWYSIWYGActionGroup" stepKey="disableWYSYWYG" />
</before>
<include>
<group name="WYSIWYGDisabled"/>
Expand All @@ -17,7 +17,7 @@
<group name="skip"/>
</exclude>
<after>
<magentoCLI stepKey="disableWYSYWYG" command="config:set cms/wysiwyg/enabled enabled" />
<actionGroup ref="AdminEnableWYSIWYGActionGroup" stepKey="disableWYSYWYG" />
</after>
</suite>
</suites>

0 comments on commit d4a9098

Please sign in to comment.