|
2023 | 2023 | <argument name="backgroundImage" value="PageBuilderBackgroundImage_JPG"/>
|
2024 | 2024 | </actionGroup>
|
2025 | 2025 | </test>
|
| 2026 | + <test name="RowFullBleedAppearanceNoErrorThrown"> |
| 2027 | + <annotations> |
| 2028 | + <features value="PageBuilder"/> |
| 2029 | + <stories value="Row"/> |
| 2030 | + <title value="Can change from full-bleed appearance to contained appearance with no console error"/> |
| 2031 | + <description value="If user drags have a full-bleed appearance row in stage, they should be able to switch to contained appearance with no console error and failure."/> |
| 2032 | + <severity value="CRITICAL"/> |
| 2033 | + <useCaseId value="MC-11821"/> |
| 2034 | + <testCaseId value="MC-13726"/> |
| 2035 | + <group value="pagebuilder"/> |
| 2036 | + <group value="pagebuilder-row"/> |
| 2037 | + <group value="pagebuilder-rowGeneral"/> |
| 2038 | + <group value="pagebuilder-heading"/> |
| 2039 | + </annotations> |
| 2040 | + <before> |
| 2041 | + <actionGroup ref="LoginAsAdmin" stepKey="loginAsAdmin"/> |
| 2042 | + <actionGroup ref="navigateToAPageWithPageBuilder" stepKey="navigateToAPageWithPageBuilder"/> |
| 2043 | + <actionGroup ref="switchToPageBuilderStage" stepKey="switchToPageBuilderStage"/> |
| 2044 | + </before> |
| 2045 | + <after> |
| 2046 | + <actionGroup ref="logout" stepKey="logout"/> |
| 2047 | + </after> |
| 2048 | + <actionGroup ref="addPageBuilderPageTitle" stepKey="enterPageTitle"> |
| 2049 | + <argument name="contentType" value="PageBuilderRowContentType"/> |
| 2050 | + </actionGroup> |
| 2051 | + <!-- Add 2nd row and set appearance to Full Bleed --> |
| 2052 | + <comment userInput="Add 2nd row and set appearance to Full Width" stepKey="commentAdd2ndRow"/> |
| 2053 | + <actionGroup ref="expandPageBuilderPanelGroup" stepKey="expandPageBuilderPanelGroupRow"> |
| 2054 | + <argument name="group" value="PageBuilderRowContentType"/> |
| 2055 | + </actionGroup> |
| 2056 | + <actionGroup ref="dragContentTypeToDropZone" stepKey="dragRow2IntoStage"> |
| 2057 | + <argument name="contentType" value="PageBuilderRowContentType"/> |
| 2058 | + <argument name="containerTargetType" value="PageBuilderStage"/> |
| 2059 | + <argument name="containerTargetIndex" value="1"/> |
| 2060 | + <argument name="contentTypeIndex" value="2"/> |
| 2061 | + <argument name="dropZoneIndex" value="2"/> |
| 2062 | + </actionGroup> |
| 2063 | + <seeNumberOfElements selector="{{RowOnStage.allRows}}" userInput="2" stepKey="seeElementRow"/> |
| 2064 | + <actionGroup ref="openPageBuilderEditPanelByIndex" stepKey="openEditMenuOnStageRow2"> |
| 2065 | + <argument name="contentType" value="PageBuilderRowContentType"/> |
| 2066 | + <argument name="contentTypeIndex" value="2"/> |
| 2067 | + </actionGroup> |
| 2068 | + <actionGroup ref="chooseVisualSelectOption" stepKey="enterAppearanceRow2"> |
| 2069 | + <argument name="property" value="PageBuilderRowAppearance_FullBleed"/> |
| 2070 | + </actionGroup> |
| 2071 | + <actionGroup ref="saveEditPanelSettings" stepKey="saveEditPanelSettingsRow2"/> |
| 2072 | + <seeElement selector="{{RowOnStage.appearanceFullWidthFullBleed(('2', PageBuilderRowAppearance_FullBleed.value)}}" stepKey="seeFullBleedAppearanceElement"/> |
| 2073 | + <actionGroup ref="saveAndContinueEditCmsPage" stepKey="saveAndContinueEditCmsPage"/> |
| 2074 | + <actionGroup ref="switchToPageBuilderStage" stepKey="switchToPageBuilderStage"/> |
| 2075 | + <!-- Set 2nd row appearance back to Contained --> |
| 2076 | + <comment userInput="Set 2nd row appearance back to Contained" stepKey="comment2ndRowRevert"/> |
| 2077 | + <actionGroup ref="openPageBuilderEditPanelByIndex" stepKey="openEditMenuOnStageRow2Revert"> |
| 2078 | + <argument name="contentType" value="PageBuilderRowContentType"/> |
| 2079 | + <argument name="contentTypeIndex" value="2"/> |
| 2080 | + </actionGroup> |
| 2081 | + <actionGroup ref="chooseVisualSelectOption" stepKey="enterAppearanceRow2Revert"> |
| 2082 | + <argument name="property" value="PageBuilderRowAppearance_Contained"/> |
| 2083 | + </actionGroup> |
| 2084 | + <actionGroup ref="saveEditPanelSettings" stepKey="saveEditPanelSettingsRow2Revert"/> |
| 2085 | + <seeElement selector="{{RowOnStage.appearanceContained(('2', PageBuilderRowAppearance_Contained.value)}}" stepKey="seeContainedAppearanceElement"/> |
| 2086 | + <!-- Drag heading into 2nd row to make sure still works --> |
| 2087 | + <comment userInput="Drag heading into 2nd row to make sure still works" stepKey="comment2ndRowRevertFunctional"/> |
| 2088 | + <actionGroup ref="expandPageBuilderPanelGroup" stepKey="expandPageBuilderPanelGroupHeading"> |
| 2089 | + <argument name="group" value="PageBuilderHeadingContentType"/> |
| 2090 | + </actionGroup> |
| 2091 | + <actionGroup ref="dragContentTypeToContainer" stepKey="dragHeadingToRow2Revert"> |
| 2092 | + <argument name="contentType" value="PageBuilderHeadingContentType"/> |
| 2093 | + <argument name="contentTypeIndex" value="1"/> |
| 2094 | + <argument name="containerTargetType" value="PageBuilderRowContentType"/> |
| 2095 | + <argument name="containerTargetIndex" value="2"/> |
| 2096 | + </actionGroup> |
| 2097 | + <actionGroup ref="clickOutsideLiveEditHeading" stepKey="clickOutsideLiveEditHeading"> |
| 2098 | + <argument name="index" value="1"/> |
| 2099 | + </actionGroup> |
| 2100 | + <dontSee selector="{{RowOnStage.empty('2')}}" stepKey="dontSeeRowTwoPlaceholder"/> |
| 2101 | + <actionGroup ref="removeEmptyContentTypeFromStage" stepKey="removeHeadingFromRow"> |
| 2102 | + <argument name="contentType" value="PageBuilderHeadingContentType"/> |
| 2103 | + </actionGroup> |
| 2104 | + <dontSeeJsError stepKey="doNotSeeJSErrorInConsole"/> |
| 2105 | + </test> |
2026 | 2106 | </tests>
|
0 commit comments