|
135 | 135 | <features value="PageBuilder"/>
|
136 | 136 | <stories value="Video"/>
|
137 | 137 | <title value="Delete Video"/>
|
138 |
| - <description value="A user should be able to delete a Video content type. Verify on Stage amd Storefront."/> |
| 138 | + <description value="A user should be able to delete a video content type. Verify on Stage and Storefront."/> |
139 | 139 | <severity value="CRITICAL"/>
|
140 | 140 | <useCaseId value="MAGETWO-83929"/>
|
141 |
| - <testCaseId value="MAGETWO-89869"/> |
| 141 | + <testCaseId value="MC-2522"/> |
142 | 142 | <group value="pagebuilder"/>
|
143 | 143 | <group value="pagebuilder-video"/>
|
144 | 144 | </annotations>
|
|
150 | 150 | <after>
|
151 | 151 | <actionGroup ref="logout" stepKey="logout"/>
|
152 | 152 | </after>
|
| 153 | + <actionGroup ref="addPageBuilderPageTitle" stepKey="enterPageTitle"> |
| 154 | + <argument name="contentType" value="PageBuilderVideoContentType"/> |
| 155 | + </actionGroup> |
| 156 | + <!-- Add Video and Save Page --> |
| 157 | + <comment userInput="Add Video and Save Page" stepKey="commentAddVideo"/> |
153 | 158 | <actionGroup ref="expandPageBuilderPanelGroup" stepKey="expandPageBuilderPanelGroup">
|
154 | 159 | <argument name="group" value="PageBuilderVideoContentType"/>
|
155 | 160 | </actionGroup>
|
156 |
| - <actionGroup ref="dragContentTypeToStage" stepKey="dragContentTypeToStage"> |
| 161 | + <actionGroup ref="dragContentTypeToStageAndExpectEditPanel" stepKey="dragContentTypeIntoStage"> |
157 | 162 | <argument name="contentType" value="PageBuilderVideoContentType"/>
|
158 | 163 | </actionGroup>
|
159 |
| - <actionGroup ref="closeEditPanelSettings" stepKey="closeEditPanelSettings"/> |
160 |
| - <actionGroup ref="removeEmptyContentTypeFromStage" stepKey="removeEmptyContentTypeFromStage"> |
| 164 | + <actionGroup ref="fillSlideOutPanelFieldGeneral" stepKey="enterVideoUrlProperty"> |
| 165 | + <argument name="property" value="PageBuilderVideoUrl_YouTube"/> |
| 166 | + </actionGroup> |
| 167 | + <actionGroup ref="saveEditPanelSettings" stepKey="saveEditPanelSettings"/> |
| 168 | + <actionGroup ref="saveAndContinueEditCmsPage" stepKey="saveAndContinueEditCmsPage"/> |
| 169 | + <actionGroup ref="switchToPageBuilderStage" stepKey="switchToPageBuilderStage"/> |
| 170 | + <!-- Delete Video --> |
| 171 | + <comment userInput="Delete Video" stepKey="commentDeleteVideo"/> |
| 172 | + <actionGroup ref="removeContentTypeFromStage" stepKey="removeVideo"> |
| 173 | + <argument name="contentType" value="PageBuilderVideoContentType"/> |
| 174 | + </actionGroup> |
| 175 | + <!-- Validate Stage --> |
| 176 | + <comment userInput="Validate Stage" stepKey="commentValidateStage"/> |
| 177 | + <dontSeeElementInDOM selector="{{PageBuilderStage.contentTypeInStageByIndex(PageBuilderVideoContentType.role, '1')}}" stepKey="dontSeeContentTypeInStage"/> |
| 178 | + <dontSeeElementInDOM selector="{{VideoOnStage.empty('1')}}" stepKey="dontSeeEmptyContentTypeInStage"/> |
| 179 | + <!-- Save Page --> |
| 180 | + <comment userInput="Save Page" stepKey="commentSavePage"/> |
| 181 | + <actionGroup ref="saveAndContinueEditCmsPage" stepKey="saveAndContinueEditCmsPage2"/> |
| 182 | + <actionGroup ref="switchToPageBuilderStage" stepKey="switchToPageBuilderStage2"/> |
| 183 | + <!-- Validate Stage After Save --> |
| 184 | + <comment userInput="Validate Stage After Save" stepKey="commentValidateStage2"/> |
| 185 | + <dontSeeElementInDOM selector="{{PageBuilderStage.contentTypeInStageByIndex(PageBuilderVideoContentType.role, '1')}}" stepKey="dontSeeContentTypeInStage2"/> |
| 186 | + <dontSeeElementInDOM selector="{{VideoOnStage.empty('1')}}" stepKey="dontSeeEmptyContentTypeInStage2"/> |
| 187 | + <!-- Validate Storefront --> |
| 188 | + <comment userInput="Validate Storefront" stepKey="commentValidateStorefront"/> |
| 189 | + <actionGroup ref="navigateToStoreFront" stepKey="navigateToStoreFront"> |
161 | 190 | <argument name="contentType" value="PageBuilderVideoContentType"/>
|
162 | 191 | </actionGroup>
|
163 |
| - <dontSeeElement selector="{{PageBuilderStage.contentTypeInStage(PageBuilderVideoContentType.role)}}" stepKey="dontSeeContentTypeInStage"/> |
| 192 | + <dontSeeElementInDOM selector="{{VideoOnStorefront.base('1')}}" stepKey="dontSeeContentTypeInStorefront"/> |
| 193 | + <dontSeeElementInDOM selector="{{VideoOnStorefront.empty('1')}}" stepKey="dontSeeEmptyContentTypeInStorefront"/> |
164 | 194 | </test>
|
165 | 195 | <test name="VideoValidateGeneralDefaultValues">
|
166 | 196 | <annotations>
|
|
0 commit comments