|
1094 | 1094 | <dontSeeElementInDOM selector="{{ProductsOnStorefront.hidden('1')}}" stepKey="dontSeeHiddenElement"/>
|
1095 | 1095 | <seeElement selector="{{ProductsOnStorefront.base('1')}}" stepKey="waitForContentTypeVisible" />
|
1096 | 1096 | </test>
|
1097 |
| - |
1098 | 1097 | <test name="ProductsWrapsInsideTinyColumn">
|
1099 | 1098 | <annotations>
|
1100 | 1099 | <features value="PageBuilder"/>
|
|
1129 | 1128 | <actionGroup ref="dragContentTypeToStage" stepKey="dragColumnIntoStage">
|
1130 | 1129 | <argument name="contentType" value="PageBuilderColumnContentType"/>
|
1131 | 1130 | </actionGroup>
|
| 1131 | + <!-- Make first column to 1/12 --> |
| 1132 | + <comment userInput="Make first column to 1/12" stepKey="commentMakeFirstColumnSmall"/> |
| 1133 | + <comment userInput="Drag new column onto first group" stepKey="commentDragColumnToFirstColumnGroup"/> |
| 1134 | + <actionGroup ref="dragContentTypeToContainer" stepKey="dragColumnIntoFirstColumnGroup"> |
| 1135 | + <argument name="contentType" value="PageBuilderColumnContentType"/> |
| 1136 | + <argument name="contentTypeIndex" value="3"/> |
| 1137 | + <argument name="containerTargetType" value="PageBuilderColumnContentType"/> |
| 1138 | + <argument name="containerTargetIndex" value="1"/> |
| 1139 | + </actionGroup> |
1132 | 1140 | <!-- Add Products to Stage -->
|
1133 | 1141 | <comment userInput="Add Products to Stage" stepKey="addProductsToStage"/>
|
1134 | 1142 | <actionGroup ref="expandPageBuilderPanelGroup" stepKey="expandGroupAddContent">
|
|
1148 | 1156 | <argument name="contentTypeIndex" value="1"/>
|
1149 | 1157 | <argument name="containerTargetIndex" value="1"/>
|
1150 | 1158 | </actionGroup>
|
1151 |
| - <!-- Resizing first column to 1/12 --> |
1152 |
| - <comment userInput="Resizing first column to 1/12" stepKey="commentInitialResize"/> |
1153 |
| - <executeJS function="return document.querySelector('{{ColumnOnBackend.columnResizeGridLine('1')}}').clientWidth" stepKey="guideWidth"/> |
1154 |
| - <dragAndDrop selector1="{{ColumnOnBackend.columnX('1')}} {{ColumnOnBackend.columnResizeHandle}}" selector2="{{ColumnOnBackend.columnResizeGridLine('1')}}" x="$guideWidth" stepKey="resizeColumn1"/> |
1155 | 1159 | <waitForPageLoad stepKey="waitForPageLoad" />
|
| 1160 | + <!-- Validating products is smaller than column --> |
| 1161 | + <comment userInput="Validating products is smaller than column" stepKey="commentValidatingProductsIsSmallerThanColumn"/> |
1156 | 1162 | <waitForElementVisible selector="{{ColumnOnBackend.displayLabel('1','1/12')}}" stepKey="validateFirstColumnWidth"/>
|
1157 |
| - <waitForElementVisible selector="{{ColumnOnBackend.displayLabel('2','11/12')}}" stepKey="validateSecondColumnWidth"/> |
1158 |
| - <executeJS function="return document.querySelector('{{ColumnOnBackend.columnX('1')}}').clientWidth" stepKey="firstColumnWidth"/> |
1159 |
| - <executeJS function="return document.querySelector('{{ProductsOnStage.productImageCSS}}').clientWidth" stepKey="productImageWidth"/> |
1160 |
| - <executeJS function="return document.querySelector('{{ProductsOnStage.productPriceContainer}}').clientWidth" stepKey="productPriceContainerWidth"/> |
1161 |
| - <executeJS function="return document.querySelector('{{ProductsOnStage.productActions}}').clientWidth" stepKey="productActionsWidth"/> |
| 1163 | + <executeJS function="return document.querySelectorAll('{{ColumnOnBackend.columnX('1')}}')[0].clientWidth" stepKey="firstColumnWidth"/> |
| 1164 | + <executeJS function="return document.querySelectorAll('{{ProductsOnStage.productImageCSS}}')[0].clientWidth" stepKey="productImageWidth"/> |
| 1165 | + <executeJS function="return document.querySelectorAll('{{ProductsOnStage.productPriceContainer}}')[0].clientWidth" stepKey="productPriceContainerWidth"/> |
| 1166 | + <executeJS function="return document.querySelectorAll('{{ProductsOnStage.productActions}}')[0].clientWidth" stepKey="productActionsWidth"/> |
1162 | 1167 | <assertGreaterThan stepKey="assertColumnIsWiderThanProductImage">
|
1163 | 1168 | <actualResult type="variable">firstColumnWidth</actualResult>
|
1164 | 1169 | <expectedResult type="variable">productImageWidth</expectedResult>
|
|
1181 | 1186 | <argument name="contentTypeIndex" value="1"/>
|
1182 | 1187 | <argument name="containerTargetIndex" value="1"/>
|
1183 | 1188 | </actionGroup>
|
| 1189 | + <!-- Validating products is smaller than column after save --> |
| 1190 | + <comment userInput="Validating products is smaller than column after save" stepKey="commentValidatingProductsIsSmallerThanColumnAfterSave"/> |
1184 | 1191 | <waitForElementVisible selector="{{ColumnOnBackend.displayLabel('1','1/12')}}" stepKey="validateFirstColumnWidthAfterSave"/>
|
1185 |
| - <waitForElementVisible selector="{{ColumnOnBackend.displayLabel('2','11/12')}}" stepKey="validateSecondColumnWidthAfterSave"/> |
1186 |
| - <executeJS function="return document.querySelector('{{ColumnOnBackend.columnX('1')}}').clientWidth" stepKey="firstColumnWidthAfterSave"/> |
1187 |
| - <executeJS function="return document.querySelector('{{ProductsOnStage.productImageCSS}}').clientWidth" stepKey="productImageWidthAfterSave"/> |
1188 |
| - <executeJS function="return document.querySelector('{{ProductsOnStage.productPriceContainer}}').clientWidth" stepKey="productPriceContainerWidthAfterSave"/> |
1189 |
| - <executeJS function="return document.querySelector('{{ProductsOnStage.productActions}}').clientWidth" stepKey="productActionsWidthAfterSave"/> |
| 1192 | + <executeJS function="return document.querySelectorAll('{{ColumnOnBackend.columnX('1')}}')[0].clientWidth" stepKey="firstColumnWidthAfterSave"/> |
| 1193 | + <executeJS function="return document.querySelectorAll('{{ProductsOnStage.productImageCSS}}')[0].clientWidth" stepKey="productImageWidthAfterSave"/> |
| 1194 | + <executeJS function="return document.querySelectorAll('{{ProductsOnStage.productPriceContainer}}')[0].clientWidth" stepKey="productPriceContainerWidthAfterSave"/> |
| 1195 | + <executeJS function="return document.querySelectorAll('{{ProductsOnStage.productActions}}')[0].clientWidth" stepKey="productActionsWidthAfterSave"/> |
1190 | 1196 | <assertGreaterThan stepKey="assertColumnIsWiderThanProductImageAfterSave">
|
1191 | 1197 | <actualResult type="variable">firstColumnWidthAfterSave</actualResult>
|
1192 | 1198 | <expectedResult type="variable">productImageWidthAfterSave</expectedResult>
|
|
1204 | 1210 | <actionGroup ref="navigateToStoreFront" stepKey="navigateToStoreFront">
|
1205 | 1211 | <argument name="contentType" value="PageBuilderProductsContentType"/>
|
1206 | 1212 | </actionGroup>
|
1207 |
| - <actionGroup ref="validateContentTypeInsideContainerStorefrontInDOM" stepKey="checkContentTypeInContainerStorefront"> |
1208 |
| - <argument name="contentType" value="PageBuilderProductsContentType"/> |
1209 |
| - <argument name="containerTargetType" value="PageBuilderColumnContentType"/> |
1210 |
| - <argument name="contentTypeIndex" value="1"/> |
1211 |
| - <argument name="containerTargetIndex" value="1"/> |
1212 |
| - </actionGroup> |
1213 |
| - <executeJS function="return document.querySelector('{{ColumnOnFrontend.columnX('1')}}').clientWidth" stepKey="firstColumnWidthFrontend"/> |
1214 |
| - <executeJS function="return document.querySelector('{{ProductsOnStorefront.productImageCSS}}').clientWidth" stepKey="productImageWidthFrontend"/> |
1215 |
| - <executeJS function="return document.querySelector('{{ProductsOnStorefront.productPriceContainer}}').clientWidth" stepKey="productPriceContainerWidthFrontend"/> |
1216 |
| - <executeJS function="return document.querySelector('{{ProductsOnStorefront.productActions}}').clientWidth" stepKey="productActionsWidthFrontend"/> |
| 1213 | + <!-- Validating products is smaller than column Storefront --> |
| 1214 | + <comment userInput="Validating products is smaller than column storefront" stepKey="commentValidatingProductsIsSmallerThanColumnStoreFront"/> |
| 1215 | + <executeJS function="return document.querySelectorAll('{{ColumnOnFrontend.columnX('1')}}')[0].clientWidth" stepKey="firstColumnWidthFrontend"/> |
| 1216 | + <executeJS function="return document.querySelectorAll('{{ProductsOnStorefront.productImageCSS}}')[0].clientWidth" stepKey="productImageWidthFrontend"/> |
| 1217 | + <executeJS function="return document.querySelectorAll('{{ProductsOnStorefront.productPriceContainer}}')[0].clientWidth" stepKey="productPriceContainerWidthFrontend"/> |
| 1218 | + <executeJS function="return document.querySelectorAll('{{ProductsOnStorefront.productActions}}')[0].clientWidth" stepKey="productActionsWidthFrontend"/> |
1217 | 1219 | <assertGreaterThan stepKey="assertColumnIsWiderThanProductImageFrontend">
|
1218 | 1220 | <actualResult type="variable">firstColumnWidthFrontend</actualResult>
|
1219 | 1221 | <expectedResult type="variable">productImageWidthFrontend</expectedResult>
|
|
0 commit comments