|
49 | 49 | <waitForPageLoad stepKey="waitForDragAndDrop2"/>
|
50 | 50 | <!-- Check all columns have the same width -->
|
51 | 51 | <comment userInput="Validate column widths are as expected" stepKey="commentValidateWidthsAreCorrect"/>
|
52 |
| - <executeJS function="return document.querySelector('{{ColumnOnBackend.columnX('1')}}').clientWidth" stepKey="columnOneWidth"/> |
53 |
| - <executeJS function="return document.querySelector('{{ColumnOnBackend.columnX('2')}}').clientWidth" stepKey="columnTwoWidth"/> |
54 |
| - <executeJS function="return document.querySelector('{{ColumnOnBackend.columnX('3')}}').clientWidth" stepKey="columnThreeWidth"/> |
| 52 | + <executeJS function="return document.querySelector('{{ColumnOnBackend.columnX('1')}}').offsetWidth" stepKey="columnOneWidth"/> |
| 53 | + <executeJS function="return document.querySelector('{{ColumnOnBackend.columnX('2')}}').offsetWidth" stepKey="columnTwoWidth"/> |
| 54 | + <executeJS function="return document.querySelector('{{ColumnOnBackend.columnX('3')}}').offsetWidth" stepKey="columnThreeWidth"/> |
55 | 55 | <executeJS function="return Math.round({$columnOneWidth}/{$columnTwoWidth})" stepKey="columnRatio"/>
|
56 | 56 | <assertEquals stepKey="assertRatioIsCorrect">
|
57 | 57 | <expectedResult type="int">1</expectedResult>
|
|
70 | 70 | </actionGroup>
|
71 | 71 | <!-- Assert original 1st and 3rd column are unaffected -->
|
72 | 72 | <comment userInput="Assert duplication was successful" stepKey="commentAssertDuplicateSuccess"/>
|
73 |
| - <executeJS function="return document.querySelector('{{ColumnOnBackend.columnX('1')}}').clientWidth" stepKey="columnOneWidthAfterDuplicate"/> |
74 |
| - <executeJS function="return document.querySelector('{{ColumnOnBackend.columnX('4')}}').clientWidth" stepKey="columnOriginalThreeWidthAfterDuplicate"/> |
| 73 | + <executeJS function="return document.querySelector('{{ColumnOnBackend.columnX('1')}}').offsetWidth" stepKey="columnOneWidthAfterDuplicate"/> |
| 74 | + <executeJS function="return document.querySelector('{{ColumnOnBackend.columnX('4')}}').offsetWidth" stepKey="columnOriginalThreeWidthAfterDuplicate"/> |
75 | 75 | <assertEquals stepKey="assertColumnOneWidthUnaffected">
|
76 | 76 | <expectedResult type="variable">columnOneWidth</expectedResult>
|
77 | 77 | <actualResult type="variable">columnOneWidthAfterDuplicate</actualResult>
|
|
82 | 82 | </assertEquals>
|
83 | 83 | <!-- Assert source and duplicated column are the same width -->
|
84 | 84 | <comment userInput="Assert source and duplicate column as same width" stepKey="commentAssertDuplicateAndSourceWidth"/>
|
85 |
| - <executeJS function="return document.querySelector('{{ColumnOnBackend.columnX('2')}}').clientWidth" stepKey="columnTwoAfterDuplicate"/> |
86 |
| - <executeJS function="return document.querySelector('{{ColumnOnBackend.columnX('3')}}').clientWidth" stepKey="columnThreeAfterDuplicate"/> |
| 85 | + <executeJS function="return document.querySelector('{{ColumnOnBackend.columnX('2')}}').offsetWidth" stepKey="columnTwoAfterDuplicate"/> |
| 86 | + <executeJS function="return document.querySelector('{{ColumnOnBackend.columnX('3')}}').offsetWidth" stepKey="columnThreeAfterDuplicate"/> |
87 | 87 | <executeJS function="return Math.round({$columnTwoAfterDuplicate}/{$columnThreeAfterDuplicate})" stepKey="columnAfterDuplicateRatio"/>
|
88 | 88 | <assertEquals stepKey="assertDuplicatedRatioIsCorrect">
|
89 | 89 | <expectedResult type="int">1</expectedResult>
|
|
0 commit comments