|
1984 | 1984 | </actionGroup>
|
1985 | 1985 | <seeNumberOfElements selector="{{ProductsOnStorefront.product('1')}}" userInput="1" stepKey="seeOneProduct" />
|
1986 | 1986 | </test>
|
| 1987 | + <test name="ButtonGroupInBlockOnDifferentLineWhenInFullWidthRow"> |
| 1988 | + <annotations> |
| 1989 | + <features value="PageBuilder"/> |
| 1990 | + <stories value="Block"/> |
| 1991 | + <title value="Buttons In Block From Different Button Groups On Different Line When in Full-Width Row"/> |
| 1992 | + <description value="Button groups in block should be on different lines when in full-width row"/> |
| 1993 | + <severity value="CRITICAL"/> |
| 1994 | + <useCaseId value="MC-15093"/> |
| 1995 | + <testCaseId value="MC-15105"/> |
| 1996 | + <group value="pagebuilder"/> |
| 1997 | + <group value="pagebuilder-buttons"/> |
| 1998 | + <group value="pagebuilder-buttonGroup"/> |
| 1999 | + <group value="pagebuilder-block"/> |
| 2000 | + <group value="pagebuilder-row"/> |
| 2001 | + </annotations> |
| 2002 | + <before> |
| 2003 | + <createData entity="_emptyCmsBlock" stepKey="createPreReqBlock"/> |
| 2004 | + <createData entity="_emptyCmsPage" stepKey="createCMSPage"/> |
| 2005 | + <actionGroup ref="LoginAsAdmin" stepKey="loginAsAdmin"/> |
| 2006 | + <actionGroup ref="navigateToCreatedCMSBlockPage" stepKey="navigateToCreatedCMSBlock"> |
| 2007 | + <argument name="CMSBlockPage" value="$$createPreReqBlock$$"/> |
| 2008 | + </actionGroup> |
| 2009 | + </before> |
| 2010 | + <after> |
| 2011 | + <deleteData createDataKey="createPreReqBlock" stepKey="deletePreReqBlock"/> |
| 2012 | + <deleteData createDataKey="createCMSPage" stepKey="deleteCreatedCategory"/> |
| 2013 | + <actionGroup ref="logout" stepKey="logout"/> |
| 2014 | + </after> |
| 2015 | + <!-- Change row appearance to full-width --> |
| 2016 | + <comment userInput="Change row appearance to full-width" stepKey="commentChangeRowAppearanceBlock"/> |
| 2017 | + <actionGroup ref="openPageBuilderEditPanel" stepKey="openRowEditMenuOnStageBlock"> |
| 2018 | + <argument name="contentType" value="PageBuilderRowContentType"/> |
| 2019 | + </actionGroup> |
| 2020 | + <actionGroup ref="chooseVisualSelectOption" stepKey="enterAppearanceRowBlock"> |
| 2021 | + <argument name="property" value="PageBuilderRowAppearance_FullWidth"/> |
| 2022 | + </actionGroup> |
| 2023 | + <actionGroup ref="saveEditPanelSettings" stepKey="saveEditPanelSettingsRowBlock"/> |
| 2024 | + <!-- Add button groups to block --> |
| 2025 | + <comment userInput="Add button groups to block" stepKey="commentAddButtonGroupsToBlock"/> |
| 2026 | + <actionGroup ref="expandPageBuilderPanelMenuSection" stepKey="expandPageBuilderPanelMenuSectionBlock"> |
| 2027 | + <argument name="contentType" value="PageBuilderButtonsContentType"/> |
| 2028 | + </actionGroup> |
| 2029 | + <actionGroup ref="dragContentTypeToStage" stepKey="dragContentTypeToStageBlock"> |
| 2030 | + <argument name="contentType" value="PageBuilderButtonsContentType"/> |
| 2031 | + </actionGroup> |
| 2032 | + <actionGroup ref="unFocusOptionMenu" stepKey="unFocusOptionMenuBlock"> |
| 2033 | + <argument name="contentType" value="PageBuilderButtonItemContentType"/> |
| 2034 | + </actionGroup> |
| 2035 | + <actionGroup ref="dragContentTypeToStage" stepKey="dragContentTypeToStage2Block"> |
| 2036 | + <argument name="contentType" value="PageBuilderButtonsContentType"/> |
| 2037 | + </actionGroup> |
| 2038 | + <actionGroup ref="unFocusOptionMenu" stepKey="unFocusOptionMenu2Block"> |
| 2039 | + <argument name="contentType" value="PageBuilderButtonItemContentType"/> |
| 2040 | + </actionGroup> |
| 2041 | + <!-- Validate Block --> |
| 2042 | + <comment userInput="Validate Block" stepKey="commentValidateBlock"/> |
| 2043 | + <executeJS function="return {{ButtonItemOnStage.jsButtonSelector('1')}}.getBoundingClientRect().y" stepKey="yCoordinate1Block"/> |
| 2044 | + <executeJS function="return {{ButtonItemOnStage.jsButtonSelector('2')}}.getBoundingClientRect().y" stepKey="yCoordinate2Block"/> |
| 2045 | + <assertNotEquals stepKey="checkYCoordinatesBlock"> |
| 2046 | + <expectedResult type="variable">yCoordinate1Block</expectedResult> |
| 2047 | + <actualResult type="variable">yCoordinate2Block</actualResult> |
| 2048 | + </assertNotEquals> |
| 2049 | + <actionGroup ref="saveAndCloseCMSBlockWithSplitButton" stepKey="saveCMSBlock"/> |
| 2050 | + <!-- Go to CMS Page and choose Block --> |
| 2051 | + <comment userInput="Go to CMS Page and choose Block" stepKey="commentGoToCMSPage"/> |
| 2052 | + <actionGroup ref="navigateToCreatedCMSPage" stepKey="navigateToCreatedCMSPage"> |
| 2053 | + <argument name="CMSPage" value="$$createCMSPage$$"/> |
| 2054 | + </actionGroup> |
| 2055 | + <actionGroup ref="switchToPageBuilderStage" stepKey="switchToPageBuilderStagePage"/> |
| 2056 | + <actionGroup ref="expandPageBuilderPanelMenuSection" stepKey="expandMenuSectionAddContentPage"> |
| 2057 | + <argument name="contentType" value="PageBuilderBlockContentType"/> |
| 2058 | + </actionGroup> |
| 2059 | + <actionGroup ref="dragContentTypeToStage" stepKey="dragBlockIntoStagePage"> |
| 2060 | + <argument name="contentType" value="PageBuilderBlockContentType"/> |
| 2061 | + </actionGroup> |
| 2062 | + <actionGroup ref="openPageBuilderEditPanel" stepKey="openEditAfterDropPage"> |
| 2063 | + <argument name="contentType" value="PageBuilderBlockContentType"/> |
| 2064 | + </actionGroup> |
| 2065 | + <actionGroup ref="searchBlockInGrid" stepKey="searchBlockInGridPage"> |
| 2066 | + <argument name="block" value="$$createPreReqBlock$$"/> |
| 2067 | + </actionGroup> |
| 2068 | + <actionGroup ref="saveEditPanelSettings" stepKey="saveEditPanelSettingsPage"/> |
| 2069 | + <!-- Validate Page --> |
| 2070 | + <comment userInput="Validate Page" stepKey="commentValidatePage"/> |
| 2071 | + <executeJS function="return {{ButtonItemOnStorefrontEmptyLink.jsButtonSelector('1')}}.getBoundingClientRect().y" stepKey="yCoordinate1Page"/> |
| 2072 | + <executeJS function="return {{ButtonItemOnStorefrontEmptyLink.jsButtonSelector('2')}}.getBoundingClientRect().y" stepKey="yCoordinate2Page"/> |
| 2073 | + <assertNotEquals stepKey="checkYCoordinatesPage"> |
| 2074 | + <expectedResult type="variable">yCoordinate1Page</expectedResult> |
| 2075 | + <actualResult type="variable">yCoordinate2Page</actualResult> |
| 2076 | + </assertNotEquals> |
| 2077 | + <actionGroup ref="saveAndContinueEditCmsPage" stepKey="saveAndContinueEditCmsPage"/> |
| 2078 | + <!-- Validate CMS Page Storefront --> |
| 2079 | + <comment userInput="Validate Storefront" stepKey="commentValidateStorefront"/> |
| 2080 | + <actionGroup ref="navigateToStorefrontForCreatedPage" stepKey="navigateToProductStorefront"> |
| 2081 | + <argument name="page" value="$$createCMSPage.identifier$$"/> |
| 2082 | + </actionGroup> |
| 2083 | + <executeJS function="return {{ButtonItemOnStorefrontEmptyLink.jsButtonSelector('1')}}.getBoundingClientRect().y" stepKey="yCoordinate1Storefront"/> |
| 2084 | + <executeJS function="return {{ButtonItemOnStorefrontEmptyLink.jsButtonSelector('2')}}.getBoundingClientRect().y" stepKey="yCoordinate2Storefront"/> |
| 2085 | + <assertNotEquals stepKey="checkYCoordinatesStorefront"> |
| 2086 | + <expectedResult type="variable">yCoordinate1Storefront</expectedResult> |
| 2087 | + <actualResult type="variable">yCoordinate2Storefront</actualResult> |
| 2088 | + </assertNotEquals> |
| 2089 | + </test> |
1987 | 2090 | </tests>
|
0 commit comments