|
1887 | 1887 | <group value="pagebuilder"/>
|
1888 | 1888 | <group value="pagebuilder-buttons"/>
|
1889 | 1889 | <group value="pagebuilder-buttonGroup"/>
|
1890 |
| - <group value="ButtonGroupValidateSameSizeWithinTab"/> |
1891 | 1890 | <group value="pagebuilder-tabs-content"/>
|
1892 | 1891 | </annotations>
|
1893 | 1892 | <before>
|
|
1980 | 1979 | </assertLessThan>
|
1981 | 1980 | <resizeWindow width="1280" height="1024" stepKey="resizeWindowToDesktop1"/>
|
1982 | 1981 | </test>
|
| 1982 | + <test name="ButtonGroupValidateSameSizeWhenSwitchingActiveTab"> |
| 1983 | + <annotations> |
| 1984 | + <features value="PageBuilder"/> |
| 1985 | + <stories value="Buttons"/> |
| 1986 | + <title value="Button Group - Validate Same Size Works When Switching Between Active Tabs"/> |
| 1987 | + <description value="Validate that when buttons are added to Tabs and same size is enabled, buttons resize when switching between Tabs"/> |
| 1988 | + <severity value="MAJOR"/> |
| 1989 | + <useCaseId value="MC-3847"/> |
| 1990 | + <testCaseId value="MC-3909"/> |
| 1991 | + <group value="pagebuilder"/> |
| 1992 | + <group value="pagebuilder-buttons"/> |
| 1993 | + <group value="pagebuilder-buttonGroup"/> |
| 1994 | + <group value="pagebuilder-tabs-content"/> |
| 1995 | + </annotations> |
| 1996 | + <before> |
| 1997 | + <actionGroup ref="LoginAsAdmin" stepKey="loginAsAdmin"/> |
| 1998 | + <createData entity="_defaultCmsPage" stepKey="createCMSPage"/> |
| 1999 | + <actionGroup ref="navigateToCreatedCMSPage" stepKey="navigateToContentCreatedCMSPage"> |
| 2000 | + <argument name="CMSPage" value="$$createCMSPage$$"/> |
| 2001 | + </actionGroup> |
| 2002 | + </before> |
| 2003 | + <after> |
| 2004 | + <!--<deleteData createDataKey="createCMSPage" stepKey="deleteCMSPage"/>--> |
| 2005 | + <actionGroup ref="logout" stepKey="logout"/> |
| 2006 | + </after> |
| 2007 | + <!-- Add Button Group To Tab --> |
| 2008 | + <comment userInput="Add Button Group To Tab" stepKey="commentAddButtonGroup"/> |
| 2009 | + <actionGroup ref="dragContentTypeToStage" stepKey="dragContentTypeToStage"> |
| 2010 | + <argument name="contentType" value="PageBuilderTabsContentType"/> |
| 2011 | + </actionGroup> |
| 2012 | + <actionGroup ref="expandPageBuilderPanelGroup" stepKey="expandPageBuilderPanelGroup"> |
| 2013 | + <argument name="group" value="PageBuilderButtonsContentType"/> |
| 2014 | + </actionGroup> |
| 2015 | + <actionGroup ref="dragContentTypeToContainer" stepKey="dragButtonsToTab"> |
| 2016 | + <argument name="contentType" value="PageBuilderButtonsContentType"/> |
| 2017 | + <argument name="containerTargetType" value="PageBuilderTabContentType"/> |
| 2018 | + <argument name="containerTargetIndex" value="1"/> |
| 2019 | + </actionGroup> |
| 2020 | + <!-- Enable Same Size --> |
| 2021 | + <comment userInput="Enable Same Size" stepKey="commentEditPanel1"/> |
| 2022 | + <actionGroup ref="openPageBuilderEditPanel" stepKey="openEditMenuOnStage"> |
| 2023 | + <argument name="contentType" value="PageBuilderButtonsContentType"/> |
| 2024 | + </actionGroup> |
| 2025 | + <actionGroup ref="conditionalClickSlideOutPanelFieldGeneral" stepKey="enableSameSize"> |
| 2026 | + <argument name="property" value="PageBuilderButtonGroupSameSize_Enabled"/> |
| 2027 | + </actionGroup> |
| 2028 | + <actionGroup ref="saveEditPanelSettings" stepKey="saveEditPanelSettings"/> |
| 2029 | + <!-- Edit Buttons --> |
| 2030 | + <comment userInput="Edit Buttons" stepKey="commentEditButtons"/> |
| 2031 | + <actionGroup ref="addButton" stepKey="addButton1"/> |
| 2032 | + <actionGroup ref="inlineEditButton" stepKey="inlineEditButton1"> |
| 2033 | + <argument name="text" value="PageBuilderButtonItemText_First"/> |
| 2034 | + <argument name="index" value="1"/> |
| 2035 | + </actionGroup> |
| 2036 | + <actionGroup ref="inlineEditButton" stepKey="inlineEditButton2"> |
| 2037 | + <argument name="text" value="PageBuilderButtonItemText_CommonCharacters"/> |
| 2038 | + <argument name="index" value="2"/> |
| 2039 | + </actionGroup> |
| 2040 | + <!-- Duplicate Tab --> |
| 2041 | + <click selector="{{TabOnStage.tabHeader('1')}}" stepKey="clickActiveTab1"/> |
| 2042 | + <waitForElementVisible selector="{{TabOnStage.optionsMenu('1')}}" stepKey="waitForTabOptionsPanel"/> |
| 2043 | + <waitForElementVisible selector="{{TabOnStage.optionsMenuButton('1', 'duplicate-structural')}}" stepKey="seeTabOptionsEdit1"/> |
| 2044 | + <click selector="{{TabOnStage.optionsMenuButton('1', 'duplicate-structural')}}" stepKey="clickDuplicateTabButton"/> |
| 2045 | + <waitForElementVisible time="30" selector="{{TabOnStage.tabHeaderItemActive('2')}}" stepKey="seeNewTabActive1"/> |
| 2046 | + <!-- Validate Tab 2 Buttons On Stage --> |
| 2047 | + <comment userInput="Validate Stage: Tab 2 Buttons" stepKey="commentValidateStage1"/> |
| 2048 | + <actionGroup ref="validateButtonItemsSameSize" stepKey="validateButtonsSameSizeStage1"> |
| 2049 | + <argument name="buttonGroupPage" value="ButtonGroupOnStage"/> |
| 2050 | + <argument name="buttonItemPage" value="ButtonItemOnStage"/> |
| 2051 | + <argument name="buttonGroupIndex" value="2"/> |
| 2052 | + <argument name="firstButtonIndex" value="3"/> |
| 2053 | + <argument name="secondButtonIndex" value="4"/> |
| 2054 | + </actionGroup> |
| 2055 | + <!-- Validate Tab 1 Buttons On Stage --> |
| 2056 | + <comment userInput="Validate Stage: Tab 1 Buttons" stepKey="commentValidateStage2"/> |
| 2057 | + <click selector="{{TabOnStage.tabHeader('1')}}" stepKey="clickActiveTab2"/> |
| 2058 | + <waitForElementVisible time="30" selector="{{TabOnStage.tabHeaderItemActive('1')}}" stepKey="seeNewTabActive2"/> |
| 2059 | + <actionGroup ref="validateButtonItemsSameSize" stepKey="validateButtonsSameSizeStage2"> |
| 2060 | + <argument name="buttonGroupPage" value="ButtonGroupOnStage"/> |
| 2061 | + <argument name="buttonItemPage" value="ButtonItemOnStage"/> |
| 2062 | + </actionGroup> |
| 2063 | + <actionGroup ref="saveAndContinueEditCmsPage" stepKey="saveAndContinueEditCmsPage1"/> |
| 2064 | + <waitForPageLoad stepKey="waitForPageLoad"/> |
| 2065 | + <click selector="{{CmsNewPagePageContentSection.header}}" stepKey="clickExpandContentTabForPage"/> |
| 2066 | + <waitForLoadingMaskToDisappear stepKey="waitForLoadingMaskOfStagingSection"/> |
| 2067 | + <!-- Validate Tab 1 Buttons On Stage After Save --> |
| 2068 | + <comment userInput="Validate Stage After Save: Tab 1 Buttons" stepKey="commentValidateStage3"/> |
| 2069 | + <actionGroup ref="validateButtonItemsSameSize" stepKey="validateButtonsSameSizeStage3"> |
| 2070 | + <argument name="buttonGroupPage" value="ButtonGroupOnStage"/> |
| 2071 | + <argument name="buttonItemPage" value="ButtonItemOnStage"/> |
| 2072 | + </actionGroup> |
| 2073 | + <!-- Validate Tab 2 Buttons On Stage After Save --> |
| 2074 | + <comment userInput="Validate Stage After Save: Tab 2 Buttons" stepKey="commentValidateStage4"/> |
| 2075 | + <click selector="{{TabOnStage.tabHeader('2')}}" stepKey="clickActiveTab3"/> |
| 2076 | + <waitForElementVisible time="30" selector="{{TabOnStage.tabHeaderItemActive('2')}}" stepKey="seeNewTabActive3"/> |
| 2077 | + <actionGroup ref="validateButtonItemsSameSize" stepKey="validateButtonsSameSizeStage4"> |
| 2078 | + <argument name="buttonGroupPage" value="ButtonGroupOnStage"/> |
| 2079 | + <argument name="buttonItemPage" value="ButtonItemOnStage"/> |
| 2080 | + <argument name="buttonGroupIndex" value="2"/> |
| 2081 | + <argument name="firstButtonIndex" value="3"/> |
| 2082 | + <argument name="secondButtonIndex" value="4"/> |
| 2083 | + </actionGroup> |
| 2084 | + </test> |
1983 | 2085 | </tests>
|
0 commit comments