File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
app/code/Magento/PageBuilder/Test/Mftf/ActionGroup/ContentTypeButtonActionGroup Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 19
19
<waitForElementVisible selector =" {{buttonGroupPage.base(buttonGroupIndex)}}" stepKey =" waitForButtonGroup" />
20
20
<waitForElementVisible selector =" {{buttonGroupPage.appearance(buttonGroupIndex, PageBuilderButtonGroupAppearance_Stacked.value)}}" stepKey =" seeButtonAppearance" />
21
21
<waitForElementVisible selector =" {{buttonItemPage.base(firstButtonIndex)}}" stepKey =" waitForButton1" />
22
- <executeJS function =" return {{buttonItemPage.jsButtonSelector(firstButtonIndex)}}.getBoundingClientRect().x" stepKey =" xCoordinate1" />
22
+ <executeJS function =" return Math.round( {{buttonItemPage.jsButtonSelector(firstButtonIndex)}}.getBoundingClientRect().x) " stepKey =" xCoordinate1" />
23
23
<executeJS function =" return {{buttonItemPage.jsButtonSelector(firstButtonIndex)}}.getBoundingClientRect().y" stepKey =" yCoordinate1" />
24
24
<waitForElementVisible selector =" {{buttonItemPage.base(secondButtonIndex)}}" stepKey =" waitForButton2" />
25
- <executeJS function =" return {{buttonItemPage.jsButtonSelector(secondButtonIndex)}}.getBoundingClientRect().x" stepKey =" xCoordinate2" />
25
+ <executeJS function =" return Math.round( {{buttonItemPage.jsButtonSelector(secondButtonIndex)}}.getBoundingClientRect().x) " stepKey =" xCoordinate2" />
26
26
<executeJS function =" return {{buttonItemPage.jsButtonSelector(secondButtonIndex)}}.getBoundingClientRect().y" stepKey =" yCoordinate2" />
27
27
<assertEquals stepKey =" checkXCoordinates" >
28
28
<expectedResult type =" variable" >xCoordinate1</expectedResult >
You can’t perform that action at this time.
0 commit comments