Skip to content

Commit f28c4b4

Browse files
committed
MC-13824: Ensure core tests disable WYSIWYG before execution
- move disabling WYSIWYG to core tests
1 parent 8dfe26a commit f28c4b4

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

app/code/Magento/Cms/Test/Mftf/Test/CheckStaticBlocksTest.xml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
<group value="Cms"/>
2020
</annotations>
2121
<before>
22+
<magentoCLI command="config:set cms/wysiwyg/enabled disabled" stepKey="disableWYSIWYG"/>
2223
<actionGroup ref="LoginAsAdmin" stepKey="LoginAsAdmin"/>
2324
<actionGroup ref="AdminCreateWebsiteActionGroup" stepKey="AdminCreateWebsite">
2425
<argument name="newWebsiteName" value="secondWebsite"/>
@@ -34,6 +35,9 @@
3435
<argument name="customStore" value="customStore"/>
3536
</actionGroup>
3637
</before>
38+
<after>
39+
<magentoCLI command="config:set cms/wysiwyg/enabled enabled" stepKey="enableWYSIWYG"/>
40+
</after>
3741

3842
<!--Go to Cms blocks page-->
3943
<amOnPage url="{{CmsBlocksPage.url}}" stepKey="navigateToCMSPagesGrid"/>

app/code/Magento/Swatches/Test/Mftf/Test/StorefrontSwatchAttributesDisplayInWidgetCMSTest.xml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
</annotations>
2121

2222
<before>
23+
<magentoCLI command="config:set cms/wysiwyg/enabled disabled" stepKey="disableWYSIWYG"/>
2324
<createData entity="NewRootCategory" stepKey="createRootCategory"/>
2425
</before>
2526

@@ -44,6 +45,7 @@
4445
<waitForElementVisible selector="{{AdminCategoryModalSection.ok}}" stepKey="waitForModalDeleteDefaultRootCategory" />
4546
<click selector="{{AdminCategoryModalSection.ok}}" stepKey="acceptModal1"/>
4647
<waitForElementVisible selector="{{AdminCategoryMessagesSection.SuccessMessage}}" stepKey="waitForPageReloadAfterDeleteDefaultCategory"/>
48+
<magentoCLI command="config:set cms/wysiwyg/enabled enabled" stepKey="enableWYSIWYG"/>
4749
<!--logout-->
4850
<actionGroup ref="logout" stepKey="logoutFromAdmin"/>
4951
</after>

0 commit comments

Comments
 (0)