|
529 | 529 | <executeJS function="return document.querySelector('{{ColumnOnBackend.columnX('1')}}').clientWidth" stepKey="columnOneWidth"/> |
530 | 530 | <executeJS function="return document.querySelector('{{ColumnOnBackend.columnX('2')}}').clientWidth" stepKey="columnTwoWidth"/> |
531 | 531 | <executeJS function="return document.querySelector('{{ColumnOnBackend.columnX('3')}}').clientWidth" stepKey="columnThreeWidth"/> |
532 | | - <executeJS function="return Math.round({$columnOneWidth}/{$columnTwoWidth}*10)/10" stepKey="columnRatio"/> |
| 532 | + <executeJS function="return Math.round(({$columnOneWidth}/{$columnTwoWidth})*10)" stepKey="columnRatio"/> |
533 | 533 | <assertEquals stepKey="assertRatioIsCorrect"> |
534 | | - <expectedResult type="float">1.5</expectedResult> |
| 534 | + <expectedResult type="int">15</expectedResult> |
535 | 535 | <actualResult type="variable">columnRatio</actualResult> |
536 | 536 | </assertEquals> |
537 | 537 | <executeJS function="return Math.round({$columnOneWidth}/{$columnThreeWidth})" stepKey="columnRatio2"/> |
|
548 | 548 | <executeJS function="return document.querySelector('{{ColumnOnBackend.columnX('1')}}').clientWidth" stepKey="columnOneWidth2"/> |
549 | 549 | <executeJS function="return document.querySelector('{{ColumnOnBackend.columnX('2')}}').clientWidth" stepKey="columnTwoWidth2"/> |
550 | 550 | <executeJS function="return document.querySelector('{{ColumnOnBackend.columnX('3')}}').clientWidth" stepKey="columnThreeWidth2"/> |
551 | | - <executeJS function="return Math.round({$columnOneWidth2}/{$columnTwoWidth2}*10)/10" stepKey="columnRatio3"/> |
| 551 | + <executeJS function="return Math.round(({$columnOneWidth2}/{$columnTwoWidth2})*10)" stepKey="columnRatio3"/> |
552 | 552 | <assertEquals stepKey="assertRatioIsCorrect3"> |
553 | | - <expectedResult type="float">1.5</expectedResult> |
| 553 | + <expectedResult type="int">15</expectedResult> |
554 | 554 | <actualResult type="variable">columnRatio3</actualResult> |
555 | 555 | </assertEquals> |
556 | 556 | <executeJS function="return Math.round({$columnOneWidth2}/{$columnThreeWidth2})" stepKey="columnRatio4"/> |
|
568 | 568 | <executeJS function="return document.querySelector('{{ColumnOnFrontend.columnX('1')}}').clientWidth" stepKey="columnOneWidthFrontend"/> |
569 | 569 | <executeJS function="return document.querySelector('{{ColumnOnFrontend.columnX('2')}}').clientWidth" stepKey="columnTwoWidthFrontend"/> |
570 | 570 | <executeJS function="return document.querySelector('{{ColumnOnFrontend.columnX('3')}}').clientWidth" stepKey="columnThreeWidthFrontend"/> |
571 | | - <executeJS function="return Math.round({$columnOneWidthFrontend}/{$columnTwoWidthFrontend}*10)/10" stepKey="columnRatioFrontend"/> |
| 571 | + <executeJS function="return Math.round(({$columnOneWidthFrontend}/{$columnTwoWidthFrontend})*10)" stepKey="columnRatioFrontend"/> |
572 | 572 | <assertEquals stepKey="assertFrontendRatioIsCorrect"> |
573 | | - <expectedResult type="int">1.5</expectedResult> |
| 573 | + <expectedResult type="int">15</expectedResult> |
574 | 574 | <actualResult type="variable">columnRatioFrontend</actualResult> |
575 | 575 | </assertEquals> |
576 | 576 | <executeJS function="return Math.round({$columnOneWidthFrontend}/{$columnThreeWidthFrontend})" stepKey="columnRatioFrontend2"/> |
|
0 commit comments