|
48 | 48 | <title value="Add Block to CMS Page"/>
|
49 | 49 | <description value="Verify that admin are able to add a block instance to Block Content Block and see it on frontend"/>
|
50 | 50 | <severity value="CRITICAL"/>
|
51 |
| - <testCaseId value="MC-2279"/> |
| 51 | + <testCaseId value="MC-2289"/> |
| 52 | + <useCaseId value="MC-1420"/> |
52 | 53 | <group value="pagebuilder"/>
|
53 | 54 | <group value="pagebuilder-block"/>
|
54 | 55 | </annotations>
|
|
93 | 94 | <amOnPage url="$$createCMSPage.identifier$$" stepKey="amOnPageTestPage"/>
|
94 | 95 | <see userInput="$$createPreReqBlock.content$$" stepKey="seeBlockContentOnCmsStage"/>
|
95 | 96 | </test>
|
| 97 | + <test name="BlockGetUpdated"> |
| 98 | + <annotations> |
| 99 | + <features value="Pagebuilder"/> |
| 100 | + <stories value="MC-1420: (Magento) Block Configuration"/> |
| 101 | + <title value="Block Content Block get updated"/> |
| 102 | + <description value="Verify that Block Content Block get updated from Block entities"/> |
| 103 | + <severity value="CRITICAL"/> |
| 104 | + <testCaseId value="MC-2289"/> |
| 105 | + <useCaseId value="MC-1420"/> |
| 106 | + <group value="pagebuilder"/> |
| 107 | + <group value="pagebuilder-block"/> |
| 108 | + </annotations> |
| 109 | + <before> |
| 110 | + <actionGroup ref="LoginAsAdmin" stepKey="loginAsAdmin"/> |
| 111 | + <actionGroup ref="enablePageBuilderSetting" stepKey="enablePageBuilderSetting"/> |
| 112 | + <actionGroup ref="DisabledWYSIWYG" stepKey="disableWYSIWYG"/> |
| 113 | + <createData entity="_defaultCmsPage" stepKey="createCMSPage" /> |
| 114 | + <createData entity="_defaultBlock" stepKey="createPreReqBlock" /> |
| 115 | + </before> |
| 116 | + <after> |
| 117 | + <deleteData createDataKey="createPreReqBlock" stepKey="deletePreReqBlock" /> |
| 118 | + <deleteData createDataKey="createCMSPage" stepKey="deletePreReqCMSPage" /> |
| 119 | + <actionGroup ref="logout" stepKey="logout"/> |
| 120 | + </after> |
| 121 | + <actionGroup ref="navigateToCreatedCMSPage" stepKey="navigateToCreatedCmsPage1"> |
| 122 | + <argument name="CMSPage" value="$$createCMSPage$$"/> |
| 123 | + </actionGroup> |
| 124 | + <actionGroup ref="expandPageBuilderPanelGroup" stepKey="expandGroupInteractive"> |
| 125 | + <argument name="group" value="PageBuilderBlockContentType"/> |
| 126 | + </actionGroup> |
| 127 | + <actionGroup ref="dragContentTypeToStage" stepKey="dragBlockIntoStage"> |
| 128 | + <argument name="contentType" value="PageBuilderBlockContentType"/> |
| 129 | + </actionGroup> |
| 130 | + <seeElement selector="{{BlockOnForm.title('Not Selected')}}" stepKey="seeNotSelectedBlock"/> |
| 131 | + <actionGroup ref="searchBlockInGrid" stepKey="searchBlockInGrid"> |
| 132 | + <argument name="block" value="$$createPreReqBlock$$"/> |
| 133 | + </actionGroup> |
| 134 | + <waitForLoadingMaskToDisappear stepKey="waitForLoadingMaskToDisappear"/> |
| 135 | + <seeElement selector="{{BlockOnForm.title('$$createPreReqBlock.title$$')}}" stepKey="seeBlockTitleOnForm"/> |
| 136 | + <actionGroup ref="saveEditPanelSettings" stepKey="saveEditPanelSettings1"/> |
| 137 | + <!-- Validate Stage --> |
| 138 | + <comment userInput="Validate stage" stepKey="validateStage1" /> |
| 139 | + <actionGroup ref="verifyBlockOnStage" stepKey="verifyBlockOnStage"> |
| 140 | + <argument name="contentType" value="PageBuilderBlockContentType"/> |
| 141 | + <argument name="block" value="$$createPreReqBlock$$"/> |
| 142 | + </actionGroup> |
| 143 | + <actionGroup ref="saveAndContinueEditCmsPage" stepKey="saveAndContinueEditCmsPage"/> |
| 144 | + <!-- Validate Storefront --> |
| 145 | + <comment userInput="Validate storefront" stepKey="validateStorefront1" /> |
| 146 | + <amOnPage url="$$createCMSPage.identifier$$" stepKey="amOnPageTestPage1"/> |
| 147 | + <see userInput="$$createPreReqBlock.content$$" stepKey="seeBlockContentOnCmsStage"/> |
| 148 | + <actionGroup ref="navigateToCreatedCMSBlockPage" stepKey="navigateToCreatedCmsBlock"> |
| 149 | + <argument name="CMSBlockPage" value="$$createPreReqBlock$$"/> |
| 150 | + </actionGroup> |
| 151 | + <actionGroup ref="openPageBuilderEditPanel" stepKey="openEditMenuOnStage2"> |
| 152 | + <argument name="contentType" value="PageBuilderHtmlContentType"/> |
| 153 | + </actionGroup> |
| 154 | + <actionGroup ref="fillSlideOutPanelFieldGeneral" stepKey="enterHtmlContent"> |
| 155 | + <argument name="property" value="PageBuilderHtmlPropertyButton"/> |
| 156 | + </actionGroup> |
| 157 | + <actionGroup ref="saveEditPanelSettings" stepKey="saveEditPanelSettings2"/> |
| 158 | + <click selector="{{CmsNewBlockBlockActionsSection.savePage}}" stepKey="saveCmcBlock"/> |
| 159 | + <actionGroup ref="navigateToCreatedCMSPage" stepKey="navigateToCreatedCmsPage2"> |
| 160 | + <argument name="CMSPage" value="$$createCMSPage$$"/> |
| 161 | + </actionGroup> |
| 162 | + <!-- Validate Stage --> |
| 163 | + <comment userInput="Validate stage after updating block" stepKey="validateStage2" /> |
| 164 | + <actionGroup ref="switchToPageBuilderStage" stepKey="switchToPageBuilderStage"/> |
| 165 | + <waitForElementVisible selector="{{HtmlOnStage.base('1')}}" stepKey="waitForHtmlBaseStage1"/> |
| 166 | + <waitForElementVisible selector="{{BlockOnStage.html('1', PageBuilderHtmlPropertyButton.selector)}}" stepKey="waitForHtmlStage1"/> |
| 167 | + <actionGroup ref="ClearCacheActionGroup" stepKey="clearMagentoCache"/> |
| 168 | + <!-- Validate Storefront --> |
| 169 | + <comment userInput="Validate storefront after updating block" stepKey="validateStorefront2" /> |
| 170 | + <amOnPage url="$$createCMSPage.identifier$$" stepKey="amOnPageTestPage"/> |
| 171 | + <waitForElementVisible selector="{{HtmlOnStorefront.base('1')}}" stepKey="waitForHtmlBaseStorefront"/> |
| 172 | + <waitForElementVisible selector="{{HtmlOnStorefront.html('1', PageBuilderHtmlPropertyButton.selector)}}" stepKey="waitForHtmlStorefront"/> |
| 173 | + </test> |
96 | 174 | <test name="VerifyBlockDisabled">
|
97 | 175 | <annotations>
|
98 | 176 | <features value="Pagebuilder: Block"/>
|
|
0 commit comments