|
| 1 | +<?xml version="1.0" encoding="UTF-8"?> |
| 2 | +<!-- |
| 3 | + /** |
| 4 | + * Copyright © Magento, Inc. All rights reserved. |
| 5 | + * See COPYING.txt for license details. |
| 6 | + */ |
| 7 | +--> |
| 8 | + |
| 9 | +<tests xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
| 10 | + xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/testSchema.xsd"> |
| 11 | + <test name="ColumnValidateBackgroundSectionDefaultValues"> |
| 12 | + <annotations> |
| 13 | + <features value="PageBuilder"/> |
| 14 | + <stories value="Column"/> |
| 15 | + <title value="Background Section - Validate Default Values"/> |
| 16 | + <description value="Validate the default values for every attribute in the Background section for Column. Validate Stage and Storefront as well."/> |
| 17 | + <severity value="AVERAGE"/> |
| 18 | + <useCaseId value="MC-928"/> |
| 19 | + <testCaseId value="MC-3815"/> |
| 20 | + <group value="pagebuilder"/> |
| 21 | + <group value="pagebuilder-column"/> |
| 22 | + <group value="pagebuilder-columnBackground"/> |
| 23 | + </annotations> |
| 24 | + <before> |
| 25 | + <actionGroup ref="LoginAsAdmin" stepKey="loginAsAdmin"/> |
| 26 | + <actionGroup ref="navigateToAPageWithPageBuilder" stepKey="navigateToAPageWithPageBuilder"/> |
| 27 | + <actionGroup ref="switchToPageBuilderStage" stepKey="switchToPageBuilderStage"/> |
| 28 | + </before> |
| 29 | + <after> |
| 30 | + <actionGroup ref="logout" stepKey="logout"/> |
| 31 | + </after> |
| 32 | + <actionGroup ref="addPageBuilderPageTitle" stepKey="enterPageTitle"> |
| 33 | + <argument name="contentType" value="PageBuilderColumnContentType"/> |
| 34 | + </actionGroup> |
| 35 | + <actionGroup ref="expandPageBuilderPanelGroup" stepKey="expandPageBuilderPanelGroup"> |
| 36 | + <argument name="group" value="PageBuilderColumnContentType"/> |
| 37 | + </actionGroup> |
| 38 | + <actionGroup ref="dragContentTypeToStage" stepKey="dragColumnIntoStage"> |
| 39 | + <argument name="contentType" value="PageBuilderColumnContentType"/> |
| 40 | + </actionGroup> |
| 41 | + <actionGroup ref="openPageBuilderEditPanel" stepKey="openEditMenuOnStage"> |
| 42 | + <argument name="contentType" value="PageBuilderColumnContentType"/> |
| 43 | + </actionGroup> |
| 44 | + <!-- Validate Default Values --> |
| 45 | + <comment userInput="Validate Default Values" stepKey="CommentValidateDefaultValues"/> |
| 46 | + <actionGroup ref="seeInFieldSlideOutProperty" stepKey="validateBackgroundColor"> |
| 47 | + <argument name="property" value="PageBuilderBackgroundColor_Default"/> |
| 48 | + </actionGroup> |
| 49 | + <actionGroup ref="seeNoColorInColorSwatch" stepKey="validateColorSwatch"> |
| 50 | + <argument name="property" value="PageBuilderBackgroundColor_Default"/> |
| 51 | + </actionGroup> |
| 52 | + <actionGroup ref="validateSlideOutPanelFieldPlaceholderText" stepKey="validateBackgroundColorPlaceholderText"> |
| 53 | + <argument name="property" value="PageBuilderBackgroundColor_Default"/> |
| 54 | + </actionGroup> |
| 55 | + <actionGroup ref="seeNoImageUploadedOnSlideOut" stepKey="validateNoBackgroundImage"> |
| 56 | + <argument name="property" value="PageBuilderBackgroundImage_Default"/> |
| 57 | + </actionGroup> |
| 58 | + <actionGroup ref="seeNoImageUploadedOnSlideOut" stepKey="validateNoBackgroundMobileImage"> |
| 59 | + <argument name="property" value="PageBuilderBackgroundMobileImage_Default"/> |
| 60 | + </actionGroup> |
| 61 | + <actionGroup ref="seeOptionIsSelectedSlideOutProperty" stepKey="validateBackgroundPosition"> |
| 62 | + <argument name="property" value="PageBuilderBackgroundPosition_Default"/> |
| 63 | + </actionGroup> |
| 64 | + <actionGroup ref="seeOptionIsNotCheckedSlideOutProperty" stepKey="validateBackgroundRepeat"> |
| 65 | + <argument name="property" value="PageBuilderBackgroundRepeat_Default"/> |
| 66 | + </actionGroup> |
| 67 | + <actionGroup ref="seeOptionIsSelectedSlideOutProperty" stepKey="validateBackgroundSize"> |
| 68 | + <argument name="property" value="PageBuilderBackgroundSize_Default"/> |
| 69 | + </actionGroup> |
| 70 | + <actionGroup ref="seeOptionIsSelectedSlideOutProperty" stepKey="validateBackgroundAttachment"> |
| 71 | + <argument name="property" value="PageBuilderBackgroundAttachment_Default"/> |
| 72 | + </actionGroup> |
| 73 | + <actionGroup ref="closeEditPanelSettings" stepKey="closeEditPanelSettings"/> |
| 74 | + <!-- Validate Stage --> |
| 75 | + <comment userInput="Validate Stage" stepKey="commentValidateStage"/> |
| 76 | + <actionGroup ref="validateBackgroundAttributesWithNoImageOrColor" stepKey="validateStage"> |
| 77 | + <argument name="section" value="ColumnOnBackend"/> |
| 78 | + </actionGroup> |
| 79 | + <actionGroup ref="saveAndContinueEditCmsPage" stepKey="saveAndContinueEditCmsPage"/> |
| 80 | + <actionGroup ref="switchToPageBuilderStage" stepKey="switchToPageBuilderStage"/> |
| 81 | + <!-- Validate Stage After Save --> |
| 82 | + <comment userInput="Validate Stage After Save" stepKey="commentValidateStage2"/> |
| 83 | + <actionGroup ref="validateBackgroundAttributesWithNoImageOrColor" stepKey="validateStage2"> |
| 84 | + <argument name="section" value="ColumnOnBackend"/> |
| 85 | + </actionGroup> |
| 86 | + <actionGroup ref="openPageBuilderEditPanel" stepKey="openEditMenuOnStage2"> |
| 87 | + <argument name="contentType" value="PageBuilderColumnContentType"/> |
| 88 | + </actionGroup> |
| 89 | + <!-- Validate Edit Panel After Save --> |
| 90 | + <comment userInput="Validate Edit Panel After Save" stepKey="commentValidateEditPanel2"/> |
| 91 | + <actionGroup ref="seeInFieldSlideOutProperty" stepKey="validateBackgroundColor2"> |
| 92 | + <argument name="property" value="PageBuilderBackgroundColor_Default"/> |
| 93 | + </actionGroup> |
| 94 | + <actionGroup ref="seeNoImageUploadedOnSlideOut" stepKey="validateNoBackgroundImage2"> |
| 95 | + <argument name="property" value="PageBuilderBackgroundImage_Default"/> |
| 96 | + </actionGroup> |
| 97 | + <actionGroup ref="seeNoImageUploadedOnSlideOut" stepKey="validateNoBackgroundMobileImage2"> |
| 98 | + <argument name="property" value="PageBuilderBackgroundMobileImage_Default"/> |
| 99 | + </actionGroup> |
| 100 | + <actionGroup ref="seeOptionIsSelectedSlideOutProperty" stepKey="validateBackgroundPosition2"> |
| 101 | + <argument name="property" value="PageBuilderBackgroundPosition_Default"/> |
| 102 | + </actionGroup> |
| 103 | + <actionGroup ref="seeOptionIsNotCheckedSlideOutProperty" stepKey="validateBackgroundRepeat2"> |
| 104 | + <argument name="property" value="PageBuilderBackgroundRepeat_Default"/> |
| 105 | + </actionGroup> |
| 106 | + <actionGroup ref="seeOptionIsSelectedSlideOutProperty" stepKey="validateBackgroundSize2"> |
| 107 | + <argument name="property" value="PageBuilderBackgroundSize_Default"/> |
| 108 | + </actionGroup> |
| 109 | + <actionGroup ref="seeOptionIsSelectedSlideOutProperty" stepKey="validateBackgroundAttachment2"> |
| 110 | + <argument name="property" value="PageBuilderBackgroundAttachment_Default"/> |
| 111 | + </actionGroup> |
| 112 | + <actionGroup ref="saveEditPanelSettings" stepKey="saveEditPanelSettings2"/> |
| 113 | + <actionGroup ref="saveAndContinueEditCmsPage" stepKey="saveAndContinueEditCmsPage2"/> |
| 114 | + <!-- Validate Storefront --> |
| 115 | + <comment userInput="Validate Storefront" stepKey="commentValidateStorefront"/> |
| 116 | + <actionGroup ref="navigateToStoreFront" stepKey="navigateToStoreFront"> |
| 117 | + <argument name="contentType" value="PageBuilderColumnContentType"/> |
| 118 | + </actionGroup> |
| 119 | + <actionGroup ref="validateBackgroundAttributesWithNoImageOrColor" stepKey="validateStorefront"> |
| 120 | + <argument name="section" value="ColumnOnFrontend"/> |
| 121 | + </actionGroup> |
| 122 | + </test> |
| 123 | + <test name="ColumnValidateBackgroundForm"> |
| 124 | + <annotations> |
| 125 | + <features value="PageBuilder"/> |
| 126 | + <stories value="Column"/> |
| 127 | + <title value="Validate Background Attributes Work in Column"/> |
| 128 | + <description value="Validate and update all attributes on stage for column and check storefront."/> |
| 129 | + <severity value="CRITICAL"/> |
| 130 | + <useCaseId value="MC-1107"/> |
| 131 | + <testCaseId value="MC-3816"/> |
| 132 | + <group value="pagebuilder"/> |
| 133 | + <group value="pagebuilder-column"/> |
| 134 | + <group value="pagebuilder-columnBackground"/> |
| 135 | + </annotations> |
| 136 | + <before> |
| 137 | + <actionGroup ref="LoginAsAdmin" stepKey="loginAsAdmin"/> |
| 138 | + <actionGroup ref="navigateToAPageWithPageBuilder" stepKey="navigateToAPageWithPageBuilder"/> |
| 139 | + <actionGroup ref="switchToPageBuilderStage" stepKey="switchToPageBuilderStage"/> |
| 140 | + </before> |
| 141 | + <after> |
| 142 | + <actionGroup ref="navigateToMediaGallery" stepKey="navigateToMediaGallery"/> |
| 143 | + <actionGroup ref="NavigateToMediaFolderActionGroup" stepKey="navigateToDesktopImageFolder"> |
| 144 | + <argument name="FolderName" value="{{PageBuilderBackgroundImage_JPG.path}}"/> |
| 145 | + </actionGroup> |
| 146 | + <actionGroup ref="DeleteImageFromStorageActionGroup" stepKey="deleteBackgroundImage"> |
| 147 | + <argument name="Image" value="PageBuilderBackgroundImage_JPG"/> |
| 148 | + </actionGroup> |
| 149 | + <actionGroup ref="DeleteImageFromStorageActionGroup" stepKey="deleteMobileBackgroundImage"> |
| 150 | + <argument name="Image" value="PageBuilderBackgroundMobileImage_GIF"/> |
| 151 | + </actionGroup> |
| 152 | + <actionGroup ref="logout" stepKey="logout"/> |
| 153 | + </after> |
| 154 | + <actionGroup ref="addPageBuilderPageTitle" stepKey="enterPageTitle"> |
| 155 | + <argument name="contentType" value="PageBuilderColumnContentType"/> |
| 156 | + </actionGroup> |
| 157 | + <actionGroup ref="expandPageBuilderPanelGroup" stepKey="expandPageBuilderPanelGroup"> |
| 158 | + <argument name="group" value="PageBuilderColumnContentType"/> |
| 159 | + </actionGroup> |
| 160 | + <actionGroup ref="dragContentTypeToStage" stepKey="dragColumnIntoStage"> |
| 161 | + <argument name="contentType" value="PageBuilderColumnContentType"/> |
| 162 | + </actionGroup> |
| 163 | + <actionGroup ref="openPageBuilderEditPanel" stepKey="openEditMenuOnStage"> |
| 164 | + <argument name="contentType" value="PageBuilderColumnContentType"/> |
| 165 | + </actionGroup> |
| 166 | + <!-- Update all background fields --> |
| 167 | + <comment userInput="Update all background fields" stepKey="commentFillBackgroundPanel"/> |
| 168 | + <actionGroup ref="fillSlideOutPanelFieldGeneral" stepKey="enterBackgroundColor"> |
| 169 | + <argument name="property" value="PageBuilderBackgroundColor_Hex_White"/> |
| 170 | + </actionGroup> |
| 171 | + <actionGroup ref="attachFileSlideOutProperty" stepKey="attachFileSlideOutProperty1"> |
| 172 | + <argument name="property" value="PageBuilderBackgroundImage_JPG"/> |
| 173 | + </actionGroup> |
| 174 | + <actionGroup ref="attachFileSlideOutProperty" stepKey="attachFileSlideOutProperty2"> |
| 175 | + <argument name="property" value="PageBuilderBackgroundMobileImage_GIF"/> |
| 176 | + </actionGroup> |
| 177 | + <actionGroup ref="selectSlideOutPanelField" stepKey="setBackgroundPosition"> |
| 178 | + <argument name="property" value="PageBuilderBackgroundPosition_TopLeft"/> |
| 179 | + </actionGroup> |
| 180 | + <actionGroup ref="conditionalClickSlideOutPanelFieldGeneral" stepKey="setBackgroundRepeat"> |
| 181 | + <argument name="property" value="PageBuilderBackgroundRepeat_Enabled"/> |
| 182 | + </actionGroup> |
| 183 | + <actionGroup ref="chooseVisualSelectOption" stepKey="setBackgroundSize"> |
| 184 | + <argument name="property" value="PageBuilderBackgroundSize_Auto"/> |
| 185 | + </actionGroup> |
| 186 | + <actionGroup ref="selectSlideOutPanelField" stepKey="setBackgroundAttachment"> |
| 187 | + <argument name="property" value="PageBuilderBackgroundAttachment_Scroll"/> |
| 188 | + </actionGroup> |
| 189 | + <actionGroup ref="saveEditPanelSettings" stepKey="saveEditPanelSettings"/> |
| 190 | + <!-- Validate on stage --> |
| 191 | + <comment userInput="Validate on Stage" stepKey="commentValidateStage"/> |
| 192 | + <actionGroup ref="validateBackgroundAttributes" stepKey="validateStage1"> |
| 193 | + <argument name="section" value="ColumnOnBackend"/> |
| 194 | + <argument name="backgroundColor" value="PageBuilderBackgroundColor_Hex_White"/> |
| 195 | + <argument name="backgroundImage" value="PageBuilderBackgroundImage_JPG"/> |
| 196 | + <argument name="backgroundPosition" value="PageBuilderBackgroundPosition_TopLeft"/> |
| 197 | + <argument name="backgroundSize" value="PageBuilderBackgroundSize_Auto"/> |
| 198 | + <argument name="backgroundRepeat" value="PageBuilderBackgroundRepeat_Enabled"/> |
| 199 | + <argument name="backgroundAttachment" value="PageBuilderBackgroundAttachment_Scroll"/> |
| 200 | + </actionGroup> |
| 201 | + <actionGroup ref="validateBackgroundImage" stepKey="validateImageOnStage1"> |
| 202 | + <argument name="section" value="ColumnOnBackend"/> |
| 203 | + <argument name="backgroundImage" value="PageBuilderBackgroundImage_JPG"/> |
| 204 | + </actionGroup> |
| 205 | + <!-- Validate on stage after save --> |
| 206 | + <comment userInput="Validate on stage after save" stepKey="commentValidateOnStage"/> |
| 207 | + <actionGroup ref="saveAndContinueEditCmsPage" stepKey="saveAndContinueEditCmsPage"/> |
| 208 | + <actionGroup ref="switchToPageBuilderStage" stepKey="switchToPageBuilderStage2"/> |
| 209 | + <actionGroup ref="validateBackgroundAttributes" stepKey="validateStage2"> |
| 210 | + <argument name="section" value="ColumnOnBackend"/> |
| 211 | + <argument name="backgroundColor" value="PageBuilderBackgroundColor_Hex_White"/> |
| 212 | + <argument name="backgroundImage" value="PageBuilderBackgroundImage_JPG"/> |
| 213 | + <argument name="backgroundPosition" value="PageBuilderBackgroundPosition_TopLeft"/> |
| 214 | + <argument name="backgroundSize" value="PageBuilderBackgroundSize_Auto"/> |
| 215 | + <argument name="backgroundRepeat" value="PageBuilderBackgroundRepeat_Enabled"/> |
| 216 | + <argument name="backgroundAttachment" value="PageBuilderBackgroundAttachment_Scroll"/> |
| 217 | + </actionGroup> |
| 218 | + <actionGroup ref="validateBackgroundImage" stepKey="validateImageOnStage2"> |
| 219 | + <argument name="section" value="ColumnOnBackend"/> |
| 220 | + <argument name="backgroundImage" value="PageBuilderBackgroundImage_JPG"/> |
| 221 | + </actionGroup> |
| 222 | + <!-- Validate edit form after save --> |
| 223 | + <comment userInput="Validate edit form after save" stepKey="commentValidateEditForm"/> |
| 224 | + <actionGroup ref="openPageBuilderEditPanel" stepKey="openEditAfterSave"> |
| 225 | + <argument name="contentType" value="PageBuilderColumnContentType"/> |
| 226 | + </actionGroup> |
| 227 | + <actionGroup ref="seeInFieldSlideOutProperty" stepKey="seeBackgroundColor"> |
| 228 | + <argument name="property" value="PageBuilderBackgroundColor_Hex_White"/> |
| 229 | + </actionGroup> |
| 230 | + <actionGroup ref="seeImageUploadedOnSlideOut" stepKey="seeBackgroundImage"> |
| 231 | + <argument name="property" value="PageBuilderBackgroundImage_JPG"/> |
| 232 | + </actionGroup> |
| 233 | + <actionGroup ref="seeImageUploadedOnSlideOut" stepKey="seeBackgroundMobileImage"> |
| 234 | + <argument name="property" value="PageBuilderBackgroundMobileImage_GIF"/> |
| 235 | + </actionGroup> |
| 236 | + <actionGroup ref="seeOptionIsSelectedSlideOutProperty" stepKey="seeBackgroundPosition"> |
| 237 | + <argument name="property" value="PageBuilderBackgroundPosition_TopLeft"/> |
| 238 | + </actionGroup> |
| 239 | + <actionGroup ref="seeOptionIsCheckedSlideOutProperty" stepKey="seeBackgroundRepeat"> |
| 240 | + <argument name="property" value="PageBuilderBackgroundRepeat_Enabled"/> |
| 241 | + </actionGroup> |
| 242 | + <actionGroup ref="seeInFieldSlideOutProperty" stepKey="seeBackgroundSize"> |
| 243 | + <argument name="property" value="PageBuilderBackgroundSize_Auto"/> |
| 244 | + </actionGroup> |
| 245 | + <actionGroup ref="seeOptionIsSelectedSlideOutProperty" stepKey="seeBackgroundAttachment"> |
| 246 | + <argument name="property" value="PageBuilderBackgroundAttachment_Scroll"/> |
| 247 | + </actionGroup> |
| 248 | + <!-- Validate on storefront --> |
| 249 | + <comment userInput="Validate on Storefront" stepKey="commentValidateStorefront"/> |
| 250 | + <actionGroup ref="navigateToStoreFront" stepKey="navigateToStoreFront"> |
| 251 | + <argument name="contentType" value="PageBuilderColumnContentType"/> |
| 252 | + </actionGroup> |
| 253 | + <actionGroup ref="validateBackgroundAttributesWithNoImage" stepKey="validateStorefront1"> |
| 254 | + <argument name="section" value="ColumnOnFrontend"/> |
| 255 | + <argument name="backgroundColor" value="PageBuilderBackgroundColor_Hex_White"/> |
| 256 | + <argument name="backgroundPosition" value="PageBuilderBackgroundPosition_TopLeft"/> |
| 257 | + <argument name="backgroundSize" value="PageBuilderBackgroundSize_Auto"/> |
| 258 | + <argument name="backgroundRepeat" value="PageBuilderBackgroundRepeat_Enabled"/> |
| 259 | + <argument name="backgroundAttachment" value="PageBuilderBackgroundAttachment_Scroll"/> |
| 260 | + </actionGroup> |
| 261 | + <actionGroup ref="validateBackgroundImageContainer" stepKey="validateImageOnStorefront1"> |
| 262 | + <argument name="section" value="ColumnOnFrontend"/> |
| 263 | + <argument name="backgroundImage" value="PageBuilderBackgroundImage_JPG"/> |
| 264 | + <argument name="pageNamePrefix" value="column"/> |
| 265 | + </actionGroup> |
| 266 | + <!-- Validate mobile image is displayed when browser is resized --> |
| 267 | + <comment userInput="Validate mobile image is displayed when browser is resized" stepKey="commentMobileImage"/> |
| 268 | + <resizeWindow width="767" height="1000" stepKey="resizeWindowToMobile"/> |
| 269 | + <actionGroup ref="validateBackgroundImageContainer" stepKey="validateMobileImageOnStorefront"> |
| 270 | + <argument name="section" value="ColumnOnFrontend"/> |
| 271 | + <argument name="backgroundImage" value="PageBuilderBackgroundMobileImage_GIF"/> |
| 272 | + <argument name="pageNamePrefix" value="column"/> |
| 273 | + </actionGroup> |
| 274 | + <resizeWindow width="1280" height="1024" stepKey="resizeWindowToDesktop"/> |
| 275 | + </test> |
| 276 | +</tests> |
0 commit comments