File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed
app/code/Magento/PageBuilder/Test/Mftf/ActionGroup Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change 15
15
</arguments >
16
16
<!-- Validate overlay position is left -->
17
17
<comment userInput =" Validate overlay position is left" stepKey =" commentValidateOverlayPositionIsLeft" />
18
- <executeJS function =" return Math.round({{page.wrapperJS('1')}}.getBoundingClientRect().right) - Math.round({{page.wrapperJS('1')}}.getBoundingClientRect().width / 2)" stepKey =" wrapperRightPositionMinusWidth50Percent" />
19
- <executeJS function =" return Math.round({{page.overlayJS('1')}}.getBoundingClientRect().right)" stepKey =" overlayRightPosition" />
20
- <assertEquals stepKey =" assertOverlayIsPositionedLeftBeforeSave" >
21
- <expectedResult type =" variable" >wrapperRightPositionMinusWidth50Percent</expectedResult >
22
- <actualResult type =" variable" >overlayRightPosition</actualResult >
18
+ <executeJS function =" return {{page.wrapperJS('1')}}.getBoundingClientRect().right-{{page.wrapperJS('1')}}.getBoundingClientRect().width/2" stepKey =" wrapperRightPositionMinusWidth50Percent" />
19
+ <executeJS function =" return {{page.overlayJS('1')}}.getBoundingClientRect().right" stepKey =" overlayRightPosition" />
20
+ <executeJS function =" return Math.round(({$wrapperRightPositionMinusWidth50Percent}/{$overlayRightPosition})*100)/100" stepKey =" overlayRatio" />
21
+ <assertEquals stepKey =" assertOverlayRatioIsCorrect" >
22
+ <expectedResult type =" int" >1</expectedResult >
23
+ <actualResult type =" variable" >overlayRatio</actualResult >
23
24
</assertEquals >
24
25
</actionGroup >
25
26
</actionGroups >
You can’t perform that action at this time.
0 commit comments