|
10 | 10 |
|
11 | 11 | <tests xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
12 | 12 | xsi:noNamespaceSchemaLocation="../../../../../../vendor/magento/magento2-functional-testing-framework/src/Magento/FunctionalTestingFramework/Test/etc/testSchema.xsd">
|
13 |
| - <!--<test name="VerifyPageBuilderOnDynamicBlock">--> |
14 |
| - <!--<annotations>--> |
15 |
| - <!--<title value="Admin are able to see PageBuilder on Dynmic Block after enable PageBuilder from Configuration"/>--> |
16 |
| - <!--<description value="Admin are able to see PageBuilder on Dynmic Block after enable PageBuilder from Configuration"/>--> |
17 |
| - <!--<severity value="CRITICAL"/>--> |
18 |
| - <!--<group value="pagebuilder"/>--> |
19 |
| - <!--</annotations>--> |
20 |
| - <!--<before>--> |
21 |
| - <!--<actionGroup ref="LoginAsAdmin" stepKey="loginAsAdmin"/>--> |
22 |
| - <!--<actionGroup ref="enablePageBuilderSetting" stepKey="enablePageBuilder"/>--> |
23 |
| - <!--</before>--> |
24 |
| - <!--<after>--> |
25 |
| - <!--<actionGroup ref="dev/tests/acceptance/tests/functional/Magento/FunctionalTest/Banner/Test/AdminPageBuilderEnabledTest.xml:23logout" stepKey="logout"/>--> |
26 |
| - <!--</after>--> |
27 |
| - <!--<!–Verify PageBuilder visible on Dynamic Block creation form –>--> |
28 |
| - <!--<amOnPage url="{{AdminBannerPage.url}}" stepKey="openNewBannerForm"/>--> |
29 |
| - <!--<waitForPageLoad stepKey="waitForPageLoad5"/>--> |
30 |
| - <!--<actionGroup ref="verifyPageBuilderVisibleOnPage" stepKey="verifyBluefootVisibleOnBlockPage"/>--> |
31 |
| - <!--</test>--> |
32 |
| - <!--<test name="VerifyPageBuilderDisableOnDynamicBlockWhenPageBuilderDisabledAndWYSIWYGEnabled">--> |
33 |
| - <!--<annotations>--> |
34 |
| - <!--<title value="Admin should not be able to see PageBuilder on Dynamic Block Page after disable PageBuilder and disable WYSIWYG from Configuration"/>--> |
35 |
| - <!--<description value="Admin should not be able to see PageBuilder on Dynamic Block Page after disable PageBuilder and disable WYSIWYG from Configuration"/>--> |
36 |
| - <!--<severity value="CRITICAL"/>--> |
37 |
| - <!--<group value="pagebuilder"/>--> |
38 |
| - <!--</annotations>--> |
39 |
| - <!--<before>--> |
40 |
| - <!--<actionGroup ref="LoginAsAdmin" stepKey="loginAsAdmin"/>--> |
41 |
| - <!--<actionGroup ref="DisabledWYSIWYG" stepKey="disableWYSIWYG"/>--> |
42 |
| - <!--<actionGroup ref="enablePageBuilderSetting" stepKey="enablePageBuilder"/>--> |
43 |
| - <!--</before>--> |
44 |
| - <!--<after>--> |
45 |
| - <!--<actionGroup ref="logout" stepKey="logout"/>--> |
46 |
| - <!--</after>--> |
47 |
| - <!--<!–Create Dynamic Block using PageBuilder–>--> |
48 |
| - <!--<amOnPage url="{{AdminBannerPage.url}}" stepKey="goToNewBannerPage" />--> |
49 |
| - <!--<waitForPageLoad stepKey="waitForPageLoad" />--> |
50 |
| - <!--<actionGroup ref="fillDynamicBlockName" stepKey="fillDynamicBlockName">--> |
51 |
| - <!--<argument name="Banner" value="sampleBanner"/>--> |
52 |
| - <!--</actionGroup>--> |
53 |
| - <!--<actionGroup ref="dragContentBlockToStage" stepKey="dragButtonsOntoStage">--> |
54 |
| - <!--<argument name="contentBlockType" value="PageBuilderTextContentBlock"/>--> |
55 |
| - <!--</actionGroup>--> |
56 |
| - <!--<actionGroup ref="openPageBuilderEditPanel" stepKey="openEditMenuOnStage">--> |
57 |
| - <!--<argument name="contentBlockType" value="PageBuilderTextContentBlock"/>--> |
58 |
| - <!--</actionGroup>--> |
59 |
| - <!--<waitForLoadingMaskToDisappear stepKey="waitForEditPanelSpinner"/>--> |
60 |
| - <!--<fillField selector="{{TextOnConfiguration.textArea}}" userInput="Hello Dynamic Block from PageBuilder" stepKey="addTextToEditor"/>--> |
61 |
| - <!--<actionGroup ref="saveEditPanelSettings" stepKey="saveEditPanelSettings"/>--> |
62 |
| - <!--<see userInput="Hello Dynamic Block from PageBuilder" stepKey="seeTypedTextOnStorefront"/>--> |
63 |
| - <!--<click selector="{{AdminBannerBasicActionSection.Save}}" stepKey="clickSaveBanner" />--> |
64 |
| - <!--<!–Enable WYSIWYG–>--> |
65 |
| - <!--<actionGroup ref="EnabledWYSIWYG" stepKey="enableWYSIWYG"/>--> |
66 |
| - <!--<!–Disable PageBuilder from Configuration–>--> |
67 |
| - <!--<actionGroup ref="disablePageBuilderSetting" stepKey="disablePageBuilderSetting"/>--> |
68 |
| - <!--<actionGroup ref="navigateToCreatedDynamicBlock" stepKey="navigateToCreatedDynamicBlock">--> |
69 |
| - <!--<argument name="Banner" value="sampleBanner"/>--> |
70 |
| - <!--</actionGroup>--> |
71 |
| - <!--<seeElement selector="{{TinyMCESection.TinyMCE4}}" stepKey="seeTinyMCE4Visible" />--> |
72 |
| - <!--<!–Missing step of asserting PageBuilder text convert to TinyMCE4 (blocked by current testing framework - unable to grab text from TinyMCE4)–>--> |
73 |
| - <!--</test>--> |
| 13 | + <test name="VerifyPageBuilderOnDynamicBlock"> |
| 14 | + <annotations> |
| 15 | + <features value="Pagebuilder"/> |
| 16 | + <stories value="MAGETWO-71404: Enabling PageBuilder on Webstore"/> |
| 17 | + <title value="Admin are able to see PageBuilder on Dynamic Block after enable PageBuilder from Configuration"/> |
| 18 | + <description value="Admin are able to see PageBuilder on Dynamic Block after enable PageBuilder from Configuration"/> |
| 19 | + <severity value="CRITICAL"/> |
| 20 | + <group value="pagebuilder"/> |
| 21 | + <group value="pagebuilder-ee"/> |
| 22 | + </annotations> |
| 23 | + <before> |
| 24 | + <actionGroup ref="LoginAsAdmin" stepKey="loginAsAdmin"/> |
| 25 | + </before> |
| 26 | + <after> |
| 27 | + <actionGroup ref="logout" stepKey="logout"/> |
| 28 | + </after> |
| 29 | + <!--Verify PageBuilder visible on Dynamic Block creation form --> |
| 30 | + <comment userInput="Verify PageBuilder visible on Dynamic Block creation form " stepKey="commentValidation"/> |
| 31 | + <amOnPage url="{{AdminBannerPage.url}}" stepKey="openNewBannerForm"/> |
| 32 | + <waitForPageLoad stepKey="waitForPageLoad5"/> |
| 33 | + <actionGroup ref="verifyPageBuilderVisibleOnPage" stepKey="verifyBluefootVisibleOnBlockPage"/> |
| 34 | + </test> |
| 35 | + <test name="VerifyPageBuilderDisableOnDynamicBlockWhenPageBuilderDisabledAndWYSIWYGEnabled"> |
| 36 | + <annotations> |
| 37 | + <features value="Pagebuilder"/> |
| 38 | + <stories value="MAGETWO-71404: Enabling PageBuilder on Webstore"/> |
| 39 | + <title value="Admin should not be able to see PageBuilder on Dynamic Block Page after disable PageBuilder and disable WYSIWYG from Configuration"/> |
| 40 | + <description value="Admin should not be able to see PageBuilder on Dynamic Block Page after disable PageBuilder and disable WYSIWYG from Configuration"/> |
| 41 | + <severity value="CRITICAL"/> |
| 42 | + <group value="pagebuilder"/> |
| 43 | + <group value="pagebuilder-ee"/> |
| 44 | + <group value="pagebuilder-customBeforeAfter"/> |
| 45 | + </annotations> |
| 46 | + <before> |
| 47 | + <actionGroup ref="LoginAsAdmin" stepKey="loginAsAdmin"/> |
| 48 | + <actionGroup ref="DisabledWYSIWYG" stepKey="disableWYSIWYG"/> |
| 49 | + <actionGroup ref="enablePageBuilderSetting" stepKey="enablePageBuilder"/> |
| 50 | + </before> |
| 51 | + <after> |
| 52 | + <actionGroup ref="logout" stepKey="logout"/> |
| 53 | + </after> |
| 54 | + <!--Create Dynamic Block using PageBuilder--> |
| 55 | + <amOnPage url="{{AdminBannerPage.url}}" stepKey="goToNewBannerPage" /> |
| 56 | + <waitForPageLoad stepKey="waitForPageLoad" /> |
| 57 | + <actionGroup ref="fillDynamicBlockName" stepKey="fillDynamicBlockName"> |
| 58 | + <argument name="Banner" value="sampleBanner"/> |
| 59 | + </actionGroup> |
| 60 | + <actionGroup ref="dragContentBlockToStage" stepKey="dragButtonsOntoStage"> |
| 61 | + <argument name="contentBlockType" value="PageBuilderTextContentBlock"/> |
| 62 | + </actionGroup> |
| 63 | + <actionGroup ref="openPageBuilderEditPanel" stepKey="openEditMenuOnStage"> |
| 64 | + <argument name="contentBlockType" value="PageBuilderTextContentBlock"/> |
| 65 | + </actionGroup> |
| 66 | + <waitForLoadingMaskToDisappear stepKey="waitForEditPanelSpinner"/> |
| 67 | + <fillField selector="{{TextOnConfiguration.textArea}}" userInput="Hello Dynamic Block from PageBuilder" stepKey="addTextToEditor"/> |
| 68 | + <click selector="{{PageBuilderActionsSection.editFormSave}}" stepKey="clickSaveColumn"/> |
| 69 | + <waitForElementNotVisible time="5" selector="{{PageBuilderActionsSection.editForm}}" stepKey="waitForEditFormNotVisible" /> |
| 70 | + <see userInput="Hello Dynamic Block from PageBuilder" stepKey="seeTypedTextOnStorefront"/> |
| 71 | + <click selector="{{AdminBannerBasicActionSection.Save}}" stepKey="clickSaveBanner" /> |
| 72 | + <!--Enable WYSIWYG--> |
| 73 | + <actionGroup ref="EnabledWYSIWYG" stepKey="enableWYSIWYG"/> |
| 74 | + <!--Disable PageBuilder from Configuration--> |
| 75 | + <actionGroup ref="disablePageBuilderSetting" stepKey="disablePageBuilderSetting"/> |
| 76 | + <actionGroup ref="navigateToCreatedDynamicBlock" stepKey="navigateToCreatedDynamicBlock"> |
| 77 | + <argument name="Banner" value="sampleBanner"/> |
| 78 | + </actionGroup> |
| 79 | + <seeElement selector="{{TinyMCESection.TinyMCE4}}" stepKey="seeTinyMCE4Visible" /> |
| 80 | + <executeJS function="return (function() {var div = document.createElement('div'); div.innerHTML = tinymce.activeEditor.getContent(); return div.innerText.trim();}())" stepKey="textFromPageBuilder"/> |
| 81 | + <assertEquals stepKey="assertEquals1" message="pass"> |
| 82 | + <expectedResult type="string">Hello Dynamic Block from PageBuilder</expectedResult> |
| 83 | + <actualResult type="variable">textFromPageBuilder</actualResult> |
| 84 | + </assertEquals> |
| 85 | + </test> |
74 | 86 | </tests>
|
0 commit comments