Skip to content

Commit 6e662ab

Browse files
committed
MC-3308: Automate MFTF for MC-1416
1 parent e413063 commit 6e662ab

File tree

2 files changed

+129
-122
lines changed

2 files changed

+129
-122
lines changed

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

Lines changed: 0 additions & 121 deletions
Original file line numberDiff line numberDiff line change
@@ -8,127 +8,6 @@
88

99
<tests xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
1010
xsi:noNamespaceSchemaLocation="../../../../../../../dev/tests/acceptance/vendor/magento/magento2-functional-testing-framework/src/Magento/FunctionalTestingFramework/Test/etc/testSchema.xsd">
11-
<test name="AddWYSIWYGContentTypeToTabOnStage">
12-
<annotations>
13-
<features value="PageBuilder"/>
14-
<stories value="Text"/>
15-
<title value="Add WYSIWYG Text Content Type to Tabs on stage"/>
16-
<description value="Verify that user are able to interact with WYSIWYG Text Content Type to Column on stage"/>
17-
<severity value="CRITICAL"/>
18-
<useCaseId value="MC-1416"/>
19-
<testCaseId value="MC-3470"/>
20-
<group value="pagebuilder"/>
21-
<group value="pagebuilder-text"/>
22-
<group value="pagebuilder-tabs-content"/>
23-
</annotations>
24-
<before>
25-
<actionGroup ref="LoginAsAdmin" stepKey="loginAsAdmin"/>
26-
<actionGroup ref="SwitchToVersion4ActionGroup" stepKey="switchToTinyMCE4" />
27-
<createData entity="_defaultCmsPage" stepKey="createCMSPage" />
28-
<createData entity="_defaultCmsPage" stepKey="createCMSPageB" />
29-
</before>
30-
<after>
31-
<deleteData createDataKey="createCMSPage" stepKey="deletePreReqCMSPage" />
32-
<deleteData createDataKey="createCMSPageB" stepKey="deletePreReqCMSPageB" />
33-
<actionGroup ref="logout" stepKey="logout"/>
34-
</after>
35-
<actionGroup ref="navigateToCreatedCMSPage" stepKey="navigateToCreatedCMSPage1">
36-
<argument name="CMSPage" value="$$createCMSPage$$"/>
37-
</actionGroup>
38-
<!-- Add Tabs to Stage -->
39-
<comment userInput="Add Tabs to Stage" stepKey="addTabsToStage"/>
40-
<actionGroup ref="expandPageBuilderPanelGroup" stepKey="expandPageBuilderPanelGroup">
41-
<argument name="group" value="PageBuilderTabsContentType"/>
42-
</actionGroup>
43-
<actionGroup ref="dragContentTypeToStage" stepKey="dragTabsIntoStage">
44-
<argument name="contentType" value="PageBuilderTabsContentType"/>
45-
</actionGroup>
46-
<!-- Validate Tabs default state On Stage -->
47-
<comment userInput="User sees tabs displayed with 1st default tab item created by default" stepKey="confirmTabsOnStage"/>
48-
<waitForPageLoad stepKey="waitForTabsToLoad" time="30"/>
49-
<waitForElementVisible selector="{{TabOnStage.tabContent('1')}}" stepKey="waitForFirstTabContent"/>
50-
<waitForElementVisible selector="{{TabOnStage.tabHeader('1')}}" stepKey="waitForFirstTabHeader"/>
51-
<!-- Add Text to Tab -->
52-
<actionGroup ref="expandPageBuilderPanelGroup" stepKey="expandPageBuilderPanelGroupText">
53-
<argument name="group" value="PageBuilderTextContentType"/>
54-
</actionGroup>
55-
<actionGroup ref="dragContentTypeToContainer" stepKey="dragTextOntoTab">
56-
<argument name="contentType" value="PageBuilderTextContentType"/>
57-
<argument name="containerTargetType" value="PageBuilderTabContentType"/>
58-
<argument name="containerTargetIndex" value="1" />
59-
</actionGroup>
60-
<!--Input text into stage-->
61-
<comment userInput="Input text into stage" stepKey="commentInputTextIntoStage"/>
62-
<click selector="{{TextOnStage.tinymce('1')}}" stepKey="focusOnEditorArea"/>
63-
<fillField selector="{{TextOnStage.tinymce('1')}}" userInput="{{PageBuilderTextContentTypeDefault.value}}" stepKey="fillTextToTinyMCE4"/>
64-
<click selector="{{PageBuilderPanel.searchPanel}}" stepKey="lostFocusFromWYSIWYG1"/>
65-
<!--Verify inputed text on slideout-->
66-
<comment userInput="Verify inputed text on slideout" stepKey="commentVerifyTextOnSlideout"/>
67-
<actionGroup ref="openPageBuilderEditPanel" stepKey="openEditMenuOnStage1">
68-
<argument name="contentType" value="PageBuilderTextContentType"/>
69-
</actionGroup>
70-
<switchToIFrame selector="{{TextOnConfiguration.tinyMCEIFrame}}" stepKey="switchToIFrame1"/>
71-
<waitForElementVisible selector="{{TextOnConfiguration.textInIFrame(PageBuilderTextContentTypeDefault.value)}}" stepKey="waitForText"/>
72-
<switchToIFrame stepKey="exitIFrame1"/>
73-
<actionGroup ref="closeEditPanelSettings" stepKey="closeEditPanelSettings1"/>
74-
<!--Input variable into stage-->
75-
<comment userInput="Input variable into stage" stepKey="commentInputVariableIntoStage"/>
76-
<click selector="{{TextOnStage.tinymce('1')}}" stepKey="focusOnEditorArea1"/>
77-
<actionGroup ref="addVariableToTinyMCE" stepKey="addVariableToTinyMCE">
78-
<argument name="variable" value="TinyMCEVariableBaseURL"/>
79-
</actionGroup>
80-
<waitForElementVisible selector="{{TextOnStage.text('1', TinyMCEVariableBaseURL.editPanelValue)}}" stepKey="waitForVariableBaseURLStage"/>
81-
<!--Verify inputed variable on slideout-->
82-
<comment userInput="Verify inputed variable on slideout" stepKey="commentVerifyVariableOnSlideout"/>
83-
<click selector="{{PageBuilderPanel.searchPanel}}" stepKey="lostFocusFromWYSIWYG2"/>
84-
<actionGroup ref="openPageBuilderEditPanel" stepKey="openEditMenuOnStage2">
85-
<argument name="contentType" value="PageBuilderTextContentType"/>
86-
</actionGroup>
87-
<switchToIFrame selector="{{TextOnConfiguration.tinyMCEIFrame}}" stepKey="switchToIFrame2"/>
88-
<waitForElementVisible selector="{{TextOnConfiguration.tinyMCEVariable(TinyMCEVariableBaseURL.editPanelValue, '1')}}" stepKey="waitForVariable2"/>
89-
<switchToIFrame stepKey="exitIFrame2"/>
90-
<actionGroup ref="closeEditPanelSettings" stepKey="closeEditPanelSettings2"/>
91-
<!--Input widget into stage-->
92-
<comment userInput="Input widget into stage" stepKey="commentInputWidgetIntoStage"/>
93-
<click selector="{{TextOnStage.tinymce('1')}}" stepKey="focusOnEditorArea2"/>
94-
<actionGroup ref="addPageLinkWidgetToTinyMCE" stepKey="addPageLinkWidgetToTinyMCE">
95-
<argument name="widget" value="TinyMCEWidgetCMSPageLink"/>
96-
<argument name="page" value="$$createCMSPageB.identifier$$"/>
97-
</actionGroup>
98-
<waitForElementVisible selector="{{TextOnStage.text('1', TinyMCEWidgetCMSPageLink.editPanelValue)}}" stepKey="waitForWidgetStage"/>
99-
<click selector="{{PageBuilderPanel.searchPanel}}" stepKey="lostFocusFromWYSIWYG3"/>
100-
<actionGroup ref="openPageBuilderEditPanel" stepKey="openEditMenuOnStage">
101-
<argument name="contentType" value="PageBuilderTextContentType"/>
102-
</actionGroup>
103-
<switchToIFrame selector="{{TextOnConfiguration.tinyMCEIFrame}}" stepKey="switchToIFrame3"/>
104-
<waitForElementVisible selector="{{TextOnConfiguration.tinyMCEWidget(TinyMCEWidgetCMSPageLink.editPanelValue, '1')}}" stepKey="waitForWidget"/>
105-
<switchToIFrame stepKey="exitIFrame3"/>
106-
<actionGroup ref="closeEditPanelSettings" stepKey="closeEditPanelSettings"/>
107-
<!--Input image into stage-->
108-
<comment userInput="Input image into stage" stepKey="commentInputImageIntoStage"/>
109-
<click selector="{{TextOnStage.tinymce('1')}}" stepKey="focusOnTextEditorArea"/>
110-
<click selector="{{TinyMCESection.InsertImageIcon}}" stepKey="clickInsertImageIcon" />
111-
<waitForPageLoad stepKey="waitForPageLoad" />
112-
<actionGroup ref="clickBrowseBtnOnUploadPopup" stepKey="clickBrowserBtn"/>
113-
<actionGroup ref="VerifyMediaGalleryStorageActions" stepKey="VerifyMediaGalleryStorageBtn"/>
114-
<actionGroup ref="CreateImageFolder" stepKey="CreateImageFolder">
115-
<argument name="ImageFolder" value="ImageFolder"/>
116-
</actionGroup>
117-
<actionGroup ref="attachImage" stepKey="attachImage1">
118-
<argument name="Image" value="ImageUpload3"/>
119-
</actionGroup>
120-
<actionGroup ref="saveImage" stepKey="insertImage"/>
121-
<actionGroup ref="fillOutUploadImagePopup" stepKey="fillOutUploadImagePopup" />
122-
<seeElementInDOM selector="{{CmsWYSIWYGSection.imageSource(ImageUpload3.fileName)}}" stepKey="assertMediaSourceOnStage"/>
123-
<actionGroup ref="saveAndContinueEditCmsPage" stepKey="saveAndContinueEditCmsPage"/>
124-
<!-- Verify Text in Tab on storefront -->
125-
<comment userInput="View Tab on storefront" stepKey="viewTabOnStorefront"/>
126-
<amOnPage url="$$createCMSPage.identifier$$" stepKey="amOnPageTestPage"/>
127-
<see userInput="{{PageBuilderTextContentTypeDefault.value}}" stepKey="seeTextContentType"/>
128-
<seeElement selector="{{StorefrontCMSPageSection.imageSource(ImageUpload3.fileName)}}" stepKey="assertMediaSource"/>
129-
<seeElement selector="{{TextOnStorefront.text('1', '{{_ENV.MAGENTO_BASE_URL}}')}}" stepKey="waitForVariableStorefront"/>
130-
<seeElement selector="{{TextOnStorefront.textAreaWidget('1', '{{_ENV.MAGENTO_BASE_URL}}', $$createCMSPageB.identifier$$)}}" stepKey="waitForWidgetStorefront"/>
131-
</test>
13211
<test name="CanAddTextToTab">
13312
<annotations>
13413
<features value="PageBuilder"/>

0 commit comments

Comments
 (0)