|
8 | 8 |
|
9 | 9 | <tests xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
10 | 10 | xsi:noNamespaceSchemaLocation="../../../../../../../dev/tests/acceptance/vendor/magento/magento2-functional-testing-framework/src/Magento/FunctionalTestingFramework/Test/etc/testSchema.xsd">
|
11 |
| - <test name="CanAddTextBLockToColumnBlock"> |
| 11 | + <test name="AddWYSIWYGContentTypeToColumnOnStage"> |
12 | 12 | <annotations>
|
13 | 13 | <features value="PageBuilder"/>
|
14 | 14 | <stories value="Text"/>
|
15 |
| - <title value="Add text content block to column"/> |
16 |
| - <description value="Verify that user are able to add Text Content Block to Column"/> |
| 15 | + <title value="Add WYSIWYG Text Content Type to Column on stage"/> |
| 16 | + <description value="Verify that user are able to interact with WYSIWYG Text Content Type to Column on stage"/> |
17 | 17 | <severity value="CRITICAL"/>
|
18 |
| - <useCaseId value=""/> |
19 |
| - <testCaseId value=""/> |
20 |
| - <group value="pagebuilder"/> |
| 18 | + <useCaseId value="MC-1416"/> |
| 19 | + <testCaseId value="MC-3469"/> |
| 20 | + <group value="kieu"/> |
21 | 21 | <group value="pagebuilder-text"/>
|
22 | 22 | <group value="pagebuilder-column-content"/>
|
23 | 23 | </annotations>
|
|
28 | 28 | <actionGroup ref="SwitchToVersion4ActionGroup" stepKey="switchToTinyMCE4" />
|
29 | 29 | </before>
|
30 | 30 | <after>
|
| 31 | + <actionGroup ref="navigateToMediaGallery" stepKey="navigateToMediaGallery"/> |
| 32 | + <actionGroup ref="NavigateToMediaFolderActionGroup" stepKey="NavigateToFolder"> |
| 33 | + <argument name="FolderName" value="{{ImageUpload3.path}}"/> |
| 34 | + </actionGroup> |
| 35 | + <actionGroup ref="DeleteImageFromStorageActionGroup" stepKey="DeleteImageFromStorage"> |
| 36 | + <argument name="Image" value="ImageUpload3"/> |
| 37 | + </actionGroup> |
31 | 38 | <deleteData createDataKey="createCMSPage" stepKey="deletePreReqCMSPage" />
|
32 | 39 | <deleteData createDataKey="createCMSPageB" stepKey="deletePreReqCMSPageB" />
|
33 | 40 | <actionGroup ref="logout" stepKey="logout"/>
|
34 | 41 | </after>
|
35 | 42 | <actionGroup ref="navigateToCreatedCMSPage" stepKey="navigateToCreatedCMSPage1">
|
36 | 43 | <argument name="CMSPage" value="$$createCMSPage$$"/>
|
37 | 44 | </actionGroup>
|
38 |
| - <actionGroup ref="dragContentTypeToStage" stepKey="dragColumnIntoStage"> |
| 45 | + <actionGroup ref="dragContentTypeToStage" stepKey="dragThirdColumnIntoStage"> |
39 | 46 | <argument name="contentType" value="PageBuilderColumnContentType"/>
|
40 | 47 | </actionGroup>
|
41 |
| - <actionGroup ref="dragContentTypeToStage" stepKey="dragButtonsOntoStage"> |
| 48 | + <actionGroup ref="dragContentTypeToContainer" stepKey="dragTextToColumn"> |
42 | 49 | <argument name="contentType" value="PageBuilderTextContentType"/>
|
| 50 | + <argument name="containerTargetType" value="PageBuilderColumnContentType"/> |
| 51 | + <argument name="containerTargetIndex" value="1"/> |
| 52 | + <argument name="contentTypeIndex" value="1"/> |
43 | 53 | </actionGroup>
|
44 | 54 | <!--Input text into stage-->
|
45 | 55 | <comment userInput="Input text into stage" stepKey="commentInputTextIntoStage"/>
|
46 |
| - <executeJS function="tinymce.get(jQuery('.inline-wysiwyg').eq(0).attr('id')).insertContent('Hello World')" stepKey="addTextToWYSIWYG"/> |
47 |
| - <click selector="{{CmsNewPagePageBasicFieldsSection.contentHeading}}" stepKey="lostFocusFromWYSIWYG1"/> |
| 56 | + <click selector="{{TextOnStage.tinymce('1')}}" stepKey="focusOnEditorArea"/> |
| 57 | + <fillField selector="{{TextOnStage.tinymce('1')}}" userInput="{{PageBuilderTextContentTypeDefault.value}}" stepKey="fillTextToTinyMCE4"/> |
| 58 | + <click selector="{{PageBuilderPanel.searchPanel}}" stepKey="lostFocusFromWYSIWYG1"/> |
48 | 59 | <!--Verify inputed text on slideout-->
|
49 | 60 | <comment userInput="Verify inputed text on slideout" stepKey="commentVerifyTextOnSlideout"/>
|
50 | 61 | <actionGroup ref="openPageBuilderEditPanel" stepKey="openEditMenuOnStage1">
|
51 | 62 | <argument name="contentType" value="PageBuilderTextContentType"/>
|
52 | 63 | </actionGroup>
|
53 | 64 | <switchToIFrame selector="{{TextOnConfiguration.tinyMCEIFrame}}" stepKey="switchToIFrame1"/>
|
54 |
| - <waitForElementVisible selector="{{TextOnConfiguration.textInIFrame('Hello World')}}" stepKey="waitForText"/> |
| 65 | + <waitForElementVisible selector="{{TextOnConfiguration.textInIFrame(PageBuilderTextContentTypeDefault.value)}}" stepKey="waitForText"/> |
55 | 66 | <switchToIFrame stepKey="exitIFrame1"/>
|
56 | 67 | <actionGroup ref="closeEditPanelSettings" stepKey="closeEditPanelSettings1"/>
|
57 | 68 | <!--Input variable into stage-->
|
58 | 69 | <comment userInput="Input variable into stage" stepKey="commentInputVariableIntoStage"/>
|
59 |
| - <click selector="{{TextOnStage.tinymce}}" stepKey="focusOnEditorArea1"/> |
| 70 | + <click selector="{{TextOnStage.tinymce('1')}}" stepKey="focusOnEditorArea1"/> |
60 | 71 | <actionGroup ref="addVariableToTinyMCE" stepKey="addVariableToTinyMCE">
|
61 | 72 | <argument name="variable" value="TinyMCEVariableBaseURL"/>
|
62 | 73 | </actionGroup>
|
63 | 74 | <waitForElementVisible selector="{{TextOnStage.text('1', TinyMCEVariableBaseURL.editPanelValue)}}" stepKey="waitForVariableBaseURLStage"/>
|
64 | 75 | <!--Verify inputed variable on slideout-->
|
65 | 76 | <comment userInput="Verify inputed variable on slideout" stepKey="commentVerifyVariableOnSlideout"/>
|
66 |
| - <click selector="{{CmsNewPagePageBasicFieldsSection.contentHeading}}" stepKey="lostFocusFromWYSIWYG2"/> |
| 77 | + <click selector="{{PageBuilderPanel.searchPanel}}" stepKey="lostFocusFromWYSIWYG2"/> |
67 | 78 | <actionGroup ref="openPageBuilderEditPanel" stepKey="openEditMenuOnStage2">
|
68 | 79 | <argument name="contentType" value="PageBuilderTextContentType"/>
|
69 | 80 | </actionGroup>
|
|
73 | 84 | <actionGroup ref="closeEditPanelSettings" stepKey="closeEditPanelSettings2"/>
|
74 | 85 | <!--Input widget into stage-->
|
75 | 86 | <comment userInput="Input widget into stage" stepKey="commentInputWidgetIntoStage"/>
|
76 |
| - <click selector="{{TextOnStage.tinymce}}" stepKey="focusOnEditorArea2"/> |
| 87 | + <click selector="{{TextOnStage.tinymce('1')}}" stepKey="focusOnEditorArea2"/> |
77 | 88 | <actionGroup ref="addPageLinkWidgetToTinyMCE" stepKey="addPageLinkWidgetToTinyMCE">
|
78 | 89 | <argument name="widget" value="TinyMCEWidgetCMSPageLink"/>
|
79 | 90 | <argument name="page" value="$$createCMSPageB.identifier$$"/>
|
80 | 91 | </actionGroup>
|
81 | 92 | <waitForElementVisible selector="{{TextOnStage.text('1', TinyMCEWidgetCMSPageLink.editPanelValue)}}" stepKey="waitForWidgetStage"/>
|
82 |
| - <click selector="{{CmsNewPagePageBasicFieldsSection.contentHeading}}" stepKey="lostFocusFromWYSIWYG"/> |
| 93 | + <click selector="{{PageBuilderPanel.searchPanel}}" stepKey="lostFocusFromWYSIWYG3"/> |
83 | 94 | <actionGroup ref="openPageBuilderEditPanel" stepKey="openEditMenuOnStage">
|
84 | 95 | <argument name="contentType" value="PageBuilderTextContentType"/>
|
85 | 96 | </actionGroup>
|
|
88 | 99 | <switchToIFrame stepKey="exitIFrame3"/>
|
89 | 100 | <actionGroup ref="closeEditPanelSettings" stepKey="closeEditPanelSettings"/>
|
90 | 101 | <!--Input image into stage-->
|
91 |
| - <comment userInput="Input text into stage" stepKey="commentInputImageIntoStage"/> |
92 |
| - <click selector="{{TextOnStage.tinymce}}" stepKey="focusOnTextEditorArea"/> |
| 102 | + <comment userInput="Input image into stage" stepKey="commentInputImageIntoStage"/> |
| 103 | + <click selector="{{TextOnStage.tinymce('1')}}" stepKey="focusOnTextEditorArea"/> |
93 | 104 | <click selector="{{TinyMCESection.InsertImageIcon}}" stepKey="clickInsertImageIcon" />
|
94 | 105 | <waitForPageLoad stepKey="waitForPageLoad" />
|
95 | 106 | <actionGroup ref="clickBrowseBtnOnUploadPopup" stepKey="clickBrowserBtn"/>
|
|
107 | 118 | <!--Verify Content Block on storefront-->
|
108 | 119 | <comment userInput="Verify empty Content Block on storefront" stepKey="commentVerifyEmptyBlock"/>
|
109 | 120 | <amOnPage url="$$createCMSPage.identifier$$" stepKey="amOnPageTestPage"/>
|
110 |
| - <see userInput="Hello World" stepKey="seeTextContentType"/> |
111 |
| - <seeElementInDOM selector="{{StorefrontCMSPageSection.imageSource(ImageUpload3.fileName)}}" stepKey="assertMediaSource"/> |
112 |
| - <seeElementInDOM selector="{{TextOnStorefront.text('1', _ENV.MAGENTO_BASE_URL)}}" stepKey="waitForVariableStorefront"/> |
113 |
| - <seeElementInDOM selector="div.block-cms-link a[href='{{_ENV.MAGENTO_BASE_URL}}/$$createCMSPageB.identifier$$']" stepKey="waitForWidgetStorefront"/> |
| 121 | + <see userInput="{{PageBuilderTextContentTypeDefault.value}}" stepKey="seeTextContentType"/> |
| 122 | + <seeElement selector="{{StorefrontCMSPageSection.imageSource(ImageUpload3.fileName)}}" stepKey="assertMediaSource"/> |
| 123 | + <seeElement selector="{{TextOnStorefront.text('1', _ENV.MAGENTO_BASE_URL)}}" stepKey="waitForVariableStorefront"/> |
| 124 | + <seeElement selector="{{TextOnStorefront.textAreaWidget('1', 'text', $$createCMSPageB.identifier$$)}}" stepKey="waitForWidgetStorefront"/> |
114 | 125 | </test>
|
115 | 126 | <test name="ColumnAddToRowAndHeightAdjusts">
|
116 | 127 | <annotations>
|
|
0 commit comments