|
994 | 994 | <seeElementInDOM selector="{{ImageOnStorefront.imageDisplay}}" stepKey="seeThatEmptyImageExistsInDomOnStorefront"/>
|
995 | 995 | <dontSeeElement selector="{{ImageOnStorefront.imageDisplay}}" stepKey="notSeeImageOnFrontend"/>
|
996 | 996 | </test>
|
| 997 | + <test name="BlockImageIsRightAligned"> |
| 998 | + <annotations> |
| 999 | + <features value="PageBuilder"/> |
| 1000 | + <stories value="Block"/> |
| 1001 | + <title value="Image Can Be Right Aligned In Block"/> |
| 1002 | + <description value="A user can right align an image in a Block"/> |
| 1003 | + <severity value="MAJOR"/> |
| 1004 | + <useCaseId value="MC-4293"/> |
| 1005 | + <testCaseId value="MC-5174"/> |
| 1006 | + <group value="pagebuilder"/> |
| 1007 | + <group value="pagebuilder-block"/> |
| 1008 | + <group value="pagebuilder-image"/> |
| 1009 | + </annotations> |
| 1010 | + <before> |
| 1011 | + <actionGroup ref="LoginAsAdmin" stepKey="loginAsAdmin"/> |
| 1012 | + <createData entity="_defaultBlock" stepKey="createPreReqBlock"/> |
| 1013 | + <createData entity="_defaultCmsPage" stepKey="createCMSPage"/> |
| 1014 | + <actionGroup ref="navigateToCreatedCMSBlockPage" stepKey="navigateToCreatedCMSBlockPage"> |
| 1015 | + <argument name="CMSBlockPage" value="$$createPreReqBlock$$"/> |
| 1016 | + </actionGroup> |
| 1017 | + </before> |
| 1018 | + <after> |
| 1019 | + <deleteData createDataKey="createPreReqBlock" stepKey="deletePreReqBlock"/> |
| 1020 | + <deleteData createDataKey="createCMSPage" stepKey="deletePreReqCMSPage"/> |
| 1021 | + <actionGroup ref="navigateToMediaGallery" stepKey="navigateToMediaGallery"/> |
| 1022 | + <actionGroup ref="NavigateToMediaFolderActionGroup" stepKey="NavigateToFolder"> |
| 1023 | + <argument name="FolderName" value="{{PageBuilderImageProperty_PNG.path}}"/> |
| 1024 | + </actionGroup> |
| 1025 | + <actionGroup ref="DeleteImageFromStorageActionGroup" stepKey="DeleteImageFromStorage"> |
| 1026 | + <argument name="Image" value="PageBuilderImageProperty_PNG"/> |
| 1027 | + </actionGroup> |
| 1028 | + <actionGroup ref="logout" stepKey="logout"/> |
| 1029 | + </after> |
| 1030 | + <!-- Go to edit page of Block and configure Image --> |
| 1031 | + <comment userInput="Go to edit page of Block and configure image" stepKey="commentGoToBlockEditPage"/> |
| 1032 | + <actionGroup ref="expandPageBuilderPanelGroup" stepKey="expandPageBuilderPanelGroup"> |
| 1033 | + <argument name="group" value="PageBuilderImageContentType"/> |
| 1034 | + </actionGroup> |
| 1035 | + <actionGroup ref="dragContentTypeToStage" stepKey="dragImageIntoStage"> |
| 1036 | + <argument name="contentType" value="PageBuilderImageContentType"/> |
| 1037 | + </actionGroup> |
| 1038 | + <actionGroup ref="openPageBuilderEditPanel" stepKey="openEditMenuOnStage"> |
| 1039 | + <argument name="contentType" value="PageBuilderImageContentType"/> |
| 1040 | + </actionGroup> |
| 1041 | + <actionGroup ref="attachFileSlideOutPropertyGeneral" stepKey="attachImageFile"> |
| 1042 | + <argument name="property" value="PageBuilderImageProperty_PNG"/> |
| 1043 | + </actionGroup> |
| 1044 | + <actionGroup ref="fillSlideOutPanelFieldGeneral" stepKey="enterImageCaptionProperty"> |
| 1045 | + <argument name="property" value="PageBuilderImageCaptionProperty"/> |
| 1046 | + </actionGroup> |
| 1047 | + <actionGroup ref="chooseVisualSelectOption" stepKey="enterAlignment"> |
| 1048 | + <argument name="property" value="PageBuilderAdvancedAlignmentPropertyRight"/> |
| 1049 | + </actionGroup> |
| 1050 | + <actionGroup ref="saveEditPanelSettings" stepKey="saveEditPanelSettingsInBlock"/> |
| 1051 | + <click selector="{{BlockNewPagePageActionsSection.saveBlock}}" stepKey="clickSaveBlock"/> |
| 1052 | + <waitForPageLoad time="30" stepKey="waitForStageToLoad"/> |
| 1053 | + <!-- Go to CMS Page and choose Block --> |
| 1054 | + <comment userInput="Go to CMS Page and choose Block" stepKey="commentGoToCMSPage"/> |
| 1055 | + <actionGroup ref="navigateToCreatedCMSPage" stepKey="navigateToCreatedCMSPage"> |
| 1056 | + <argument name="CMSPage" value="$$createCMSPage$$"/> |
| 1057 | + </actionGroup> |
| 1058 | + <actionGroup ref="expandPageBuilderPanelGroup" stepKey="expandGroupAddContent"> |
| 1059 | + <argument name="group" value="PageBuilderBlockContentType"/> |
| 1060 | + </actionGroup> |
| 1061 | + <actionGroup ref="dragContentTypeToStageAndExpectEditPanel" stepKey="dragBlockIntoStage"> |
| 1062 | + <argument name="contentType" value="PageBuilderBlockContentType"/> |
| 1063 | + </actionGroup> |
| 1064 | + <actionGroup ref="searchBlockInGrid" stepKey="searchBlockInGrid"> |
| 1065 | + <argument name="block" value="$$createPreReqBlock$$"/> |
| 1066 | + </actionGroup> |
| 1067 | + <actionGroup ref="saveEditPanelSettings" stepKey="saveEditPanelSettings"/> |
| 1068 | + <!-- Verify Right Alignment On Stage - Before Save --> |
| 1069 | + <comment userInput="Verify right alignment on stage before save" stepKey="commentVerifyRightAlignmentOnStageBeforeSave"/> |
| 1070 | + <seeElement selector="({{ImageOnStorefront.alignment('1', PageBuilderAdvancedAlignmentPropertyRight.value)}}{{BlockOnStorefront.ancestor}})[1]" stepKey="seeImageAlignmentRightBeforeSave"/> |
| 1071 | + <actionGroup ref="verifyAlignmentRightInBlock" stepKey="verifyAlignmentRightInBlockBeforeSave"> |
| 1072 | + <argument name="container" value="{{RowOnStorefront.innerCSS}}"/> |
| 1073 | + <argument name="content" value="{{ImageOnStorefront.imageElementCSS}}"/> |
| 1074 | + <argument name="containerPadding" value="PageBuilderPaddingProperty10"/> |
| 1075 | + </actionGroup> |
| 1076 | + <actionGroup ref="saveAndContinueEditCmsPage" stepKey="saveAndContinueEditCmsPage"/> |
| 1077 | + <actionGroup ref="switchToPageBuilderStage" stepKey="switchToPageBuilderStageAfterSave"/> |
| 1078 | + <!-- Verify Right Alignment On Stage - After Save --> |
| 1079 | + <comment userInput="Verify right alignment on stage after save" stepKey="commentVerifyRightAlignmentOnStageAfterSave"/> |
| 1080 | + <seeElement selector="({{ImageOnStorefront.alignment('1', PageBuilderAdvancedAlignmentPropertyRight.value)}}{{BlockOnStorefront.ancestor}})[1]" stepKey="seeImageAlignmentRightAfterSave"/> |
| 1081 | + <actionGroup ref="verifyAlignmentRightInBlock" stepKey="verifyAlignmentRightInBlockAfterSave"> |
| 1082 | + <argument name="container" value="{{RowOnStorefront.innerCSS}}"/> |
| 1083 | + <argument name="content" value="{{ImageOnStorefront.imageElementCSS}}"/> |
| 1084 | + <argument name="containerPadding" value="PageBuilderPaddingProperty10"/> |
| 1085 | + </actionGroup> |
| 1086 | + <amOnPage url="$$createCMSPage.identifier$$" stepKey="amOnStorefrontCMSPage" /> |
| 1087 | + <waitForPageLoad stepKey="waitForCmsPageLoad"/> |
| 1088 | + <!-- Verify Right Alignment In Storefront --> |
| 1089 | + <comment userInput="Verify right alignment in storefront" stepKey="commentVerifyRightAlignmentInStorefront"/> |
| 1090 | + <seeElement selector="({{ImageOnStorefront.alignment('1', PageBuilderAdvancedAlignmentPropertyRight.value)}}{{BlockOnStorefront.ancestor}})[1]" stepKey="seeImageAlignmentRightStorefront"/> |
| 1091 | + <actionGroup ref="verifyAlignmentRightInBlock" stepKey="verifyAlignmentRightInBlockStorefront"> |
| 1092 | + <argument name="container" value="{{RowOnStorefront.innerCSS}}"/> |
| 1093 | + <argument name="content" value="{{ImageOnStorefront.imageElementCSS}}"/> |
| 1094 | + <argument name="containerPadding" value="PageBuilderPaddingProperty10"/> |
| 1095 | + </actionGroup> |
| 1096 | + </test> |
997 | 1097 | <test name="ValidateShowHideOnBlockDefaultState">
|
998 | 1098 | <annotations>
|
999 | 1099 | <features value="PageBuilder"/>
|
|
0 commit comments