|
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="BlockAddToCMSPage"> |
| 11 | + <test name="InitialStatusBlock"> |
12 | 12 | <annotations>
|
13 | 13 | <features value="Pagebuilder: Block"/>
|
14 |
| - <stories value="MAGETWO-83941: Static Block"/> |
15 |
| - <title value="Block - Update General Values"/> |
16 |
| - <description value="Validate that updating every attribute in the General form for Block will update the Stage and Storefront correctly."/> |
| 14 | + <stories value="MC-1420: Static Block"/> |
| 15 | + <title value="Block - Initial Status"/> |
| 16 | + <description value="Verify that Static Block is refactor and new Block preview is applied."/> |
17 | 17 | <severity value="CRITICAL"/>
|
18 |
| - <testCaseId value="MAGETWO-84276"/> |
| 18 | + <testCaseId value="MC-2278"/> |
19 | 19 | <group value="pagebuilder"/>
|
20 | 20 | <group value="pagebuilder-block"/>
|
21 |
| - <group value="pagebuilder-customBeforeAfter"/> |
22 | 21 | </annotations>
|
23 | 22 | <before>
|
24 | 23 | <actionGroup ref="LoginAsAdmin" stepKey="loginAsAdmin"/>
|
25 |
| - <actionGroup ref="EnabledWYSIWYG" stepKey="enableWYSIWYG"/> |
26 |
| - <actionGroup ref="disablePageBuilderSetting" stepKey="disablePageBuilderSetting"/> |
27 |
| - <actionGroup ref="addCmsBlock" stepKey="addCmsBlock"/> |
28 | 24 | <actionGroup ref="enablePageBuilderSetting" stepKey="enablePageBuilderSetting"/>
|
29 | 25 | <actionGroup ref="navigateToAPageWithPageBuilder" stepKey="navigateToAPageWithPageBuilder"/>
|
30 | 26 | <actionGroup ref="switchToPageBuilderStage" stepKey="switchToPageBuilderStage"/>
|
31 | 27 | </before>
|
32 | 28 | <after>
|
33 | 29 | <actionGroup ref="DisabledWYSIWYG" stepKey="disableWYSIWYG"/>
|
34 |
| - <actionGroup ref="enablePageBuilderSetting" stepKey="turnOnPageBuilder" after="disableWYSIWYG"/> |
35 | 30 | <actionGroup ref="logout" stepKey="logout"/>
|
36 | 31 | </after>
|
37 | 32 | <actionGroup ref="addPageBuilderPageTitle" stepKey="enterPageTitle">
|
|
40 | 35 | <actionGroup ref="expandPageBuilderPanelGroup" stepKey="expandGroupInteractive">
|
41 | 36 | <argument name="group" value="PageBuilderBlockContentType"/>
|
42 | 37 | </actionGroup>
|
43 |
| - <actionGroup ref="dragContentTypeToStageAndExpectEditPanel" stepKey="dragBlockIntoStage"> |
| 38 | + <actionGroup ref="dragContentTypeToStage" stepKey="dragBlockIntoStage"> |
44 | 39 | <argument name="contentType" value="PageBuilderBlockContentType"/>
|
45 | 40 | </actionGroup>
|
46 |
| - <actionGroup ref="closeEditPanelSettings" stepKey="closeEditPanelSettings"/> |
47 |
| - <actionGroup ref="openPageBuilderEditPanel" stepKey="openEditMenuOnStage"> |
| 41 | + <actionGroup ref="closeEditPanelSettings" stepKey="closeSlideEditPanel"/> |
| 42 | + <seeElement selector="{{BlockOnStage.status('Empty Block')}}" stepKey="seeEmptyBlockPlaceHolder"/> |
| 43 | + </test> |
| 44 | + <test name="AddBlockToCmsPage"> |
| 45 | + <annotations> |
| 46 | + <features value="Pagebuilder: Block"/> |
| 47 | + <stories value="MC-1420: Static Block"/> |
| 48 | + <title value="Add Block to CMS Page"/> |
| 49 | + <description value="Verify that admin are able to add a block instance to Block Content Block and see it on frontend"/> |
| 50 | + <severity value="CRITICAL"/> |
| 51 | + <testCaseId value="MC-2279"/> |
| 52 | + <group value="pagebuilder"/> |
| 53 | + <group value="pagebuilder-block"/> |
| 54 | + </annotations> |
| 55 | + <before> |
| 56 | + <actionGroup ref="LoginAsAdmin" stepKey="loginAsAdmin"/> |
| 57 | + <actionGroup ref="enablePageBuilderSetting" stepKey="enablePageBuilderSetting"/> |
| 58 | + <createData entity="_defaultCmsPage" stepKey="createCMSPage" /> |
| 59 | + <createData entity="_defaultBlock" stepKey="createPreReqBlock" /> |
| 60 | + </before> |
| 61 | + <after> |
| 62 | + <deleteData createDataKey="createPreReqBlock" stepKey="deletePreReqBlock" /> |
| 63 | + <deleteData createDataKey="createCMSPage" stepKey="deletePreReqCMSPage" /> |
| 64 | + <actionGroup ref="DisabledWYSIWYG" stepKey="disableWYSIWYG"/> |
| 65 | + <actionGroup ref="logout" stepKey="logout"/> |
| 66 | + </after> |
| 67 | + <actionGroup ref="navigateToCreatedCMSPage" stepKey="navigateToCreatedCMSPage"> |
| 68 | + <argument name="CMSPage" value="$$createCMSPage$$"/> |
| 69 | + </actionGroup> |
| 70 | + <actionGroup ref="expandPageBuilderPanelGroup" stepKey="expandGroupInteractive"> |
| 71 | + <argument name="group" value="PageBuilderBlockContentType"/> |
| 72 | + </actionGroup> |
| 73 | + <actionGroup ref="dragContentTypeToStage" stepKey="dragBlockIntoStage"> |
48 | 74 | <argument name="contentType" value="PageBuilderBlockContentType"/>
|
49 | 75 | </actionGroup>
|
50 |
| - <actionGroup ref="fillSlideOutPanelFieldGeneral" stepKey="enterIdentifierProperty"> |
51 |
| - <argument name="property" value="PageBuilderBlockIdentifierProperty"/> |
| 76 | + <seeElement selector="{{BlockOnStage.title('Not Selected')}}" stepKey="seeNotSelectedBlock"/> |
| 77 | + <actionGroup ref="searchBlockInGrid" stepKey="searchBlockInGrid"> |
| 78 | + <argument name="block" value="$$createPreReqBlock$$"/> |
52 | 79 | </actionGroup>
|
| 80 | + <!--<seeElement selector="{{BlockOnStage.title('$$createPreReqBlock.title$$')}}" stepKey="seeBlockTitle"/>--> |
53 | 81 | <actionGroup ref="saveEditPanelSettings" stepKey="saveEditPanelSettings"/>
|
54 | 82 | <actionGroup ref="saveAndContinueEditCmsPage" stepKey="saveAndContinueEditCmsPage"/>
|
55 | 83 | <actionGroup ref="switchToPageBuilderStage" stepKey="switchToPageBuilderStage"/>
|
|
0 commit comments