|
6 | 6 | */
|
7 | 7 | -->
|
8 | 8 | <actionGroups xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
9 |
| - xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/actionGroupSchema.xsd"> |
10 |
| - <actionGroup name="verifyVerticalAlignmentCenterInBlock"> |
11 |
| - <arguments> |
12 |
| - <argument name="block" defaultValue="BlockOnStorefront"/> |
13 |
| - <argument name="container"/> |
14 |
| - <argument name="containerIndex" defaultValue="1" type="string"/> |
15 |
| - <argument name="content"/> |
16 |
| - <argument name="contentIndex" defaultValue="1" type="string"/> |
17 |
| - </arguments> |
18 |
| - <executeJS function="return document.querySelectorAll('{{block.baseCSS}} {{container.baseCSS}}')[{{containerIndex}}-1].clientHeight/2 + document.querySelectorAll('{{block.baseCSS}} {{container.baseCSS}}')[{{containerIndex}}-1].getBoundingClientRect().top" stepKey="containerCenter"/> |
19 |
| - <executeJS function="return document.querySelectorAll('{{block.baseCSS}} {{content.baseCSS}}')[{{contentIndex}}-1].clientHeight/2 + document.querySelectorAll('{{block.baseCSS}} {{content.baseCSS}}')[{{contentIndex}}-1].getBoundingClientRect().top" stepKey="contentCenter"/> |
20 |
| - <assertGreaterThanOrEqual stepKey="assertBottomPosition"> |
21 |
| - <expectedResult type="variable">containerCenter</expectedResult> |
22 |
| - <actualResult type="variable">contentCenter</actualResult> |
23 |
| - </assertGreaterThanOrEqual> |
24 |
| - </actionGroup> |
| 9 | + xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/actionGroupSchema.xsd"> |
| 10 | + <actionGroup name="verifyVerticalAlignmentCenterInBlock"> |
| 11 | + <arguments> |
| 12 | + <argument name="block" defaultValue="BlockOnStorefront"/> |
| 13 | + <argument name="container"/> |
| 14 | + <argument name="containerIndex" defaultValue="1" type="string"/> |
| 15 | + <argument name="content"/> |
| 16 | + <argument name="contentIndex" defaultValue="1" type="string"/> |
| 17 | + </arguments> |
| 18 | + <executeJS function="return Math.round(document.querySelectorAll('{{block.baseCSS}} {{container.baseCSS}}')[{{containerIndex}}-1].clientHeight/2 + document.querySelectorAll('{{block.baseCSS}} {{container.baseCSS}}')[{{containerIndex}}-1].getBoundingClientRect().top)" stepKey="containerCenter"/> |
| 19 | + <executeJS function="return Math.round(document.querySelectorAll('{{block.baseCSS}} {{content.baseCSS}}')[{{contentIndex}}-1].clientHeight/2 + document.querySelectorAll('{{block.baseCSS}} {{content.baseCSS}}')[{{contentIndex}}-1].getBoundingClientRect().top)" stepKey="contentCenter"/> |
| 20 | + <assertEquals stepKey="assertBottomPosition"> |
| 21 | + <expectedResult type="variable">containerCenter</expectedResult> |
| 22 | + <actualResult type="variable">contentCenter</actualResult> |
| 23 | + </assertEquals> |
| 24 | + </actionGroup> |
25 | 25 | </actionGroups>
|
0 commit comments