|
72 | 72 | <comment userInput="Assert duplication was successful" stepKey="commentAssertDuplicateSuccess"/>
|
73 | 73 | <executeJS function="return document.querySelector('{{ColumnOnBackend.columnX('1')}}').offsetWidth" stepKey="columnOneWidthAfterDuplicate"/>
|
74 | 74 | <executeJS function="return document.querySelector('{{ColumnOnBackend.columnX('4')}}').offsetWidth" stepKey="columnOriginalThreeWidthAfterDuplicate"/>
|
75 |
| - <assertEquals stepKey="assertColumnOneWidthUnaffected"> |
76 |
| - <expectedResult type="variable">columnOneWidth</expectedResult> |
77 |
| - <actualResult type="variable">columnOneWidthAfterDuplicate</actualResult> |
78 |
| - </assertEquals> |
79 |
| - <assertEquals stepKey="assertColumnThreeWidthUnaffected"> |
80 |
| - <expectedResult type="variable">columnThreeWidth</expectedResult> |
81 |
| - <actualResult type="variable">columnOriginalThreeWidthAfterDuplicate</actualResult> |
82 |
| - </assertEquals> |
| 75 | + <executeJS function="return Math.abs({$columnOneWidth}-{$columnOneWidthAfterDuplicate})" stepKey="columnOneWidthDifference"/> |
| 76 | + <assertLessThanOrEqual stepKey="assertColumnOneWidthUnaffected"> |
| 77 | + <expectedResult type="int">1</expectedResult> |
| 78 | + <actualResult type="variable">columnOneWidthDifference</actualResult> |
| 79 | + </assertLessThanOrEqual> |
| 80 | + <executeJS function="return Math.abs({$columnThreeWidth}-{$columnOriginalThreeWidthAfterDuplicate})" stepKey="columnThreeWidthDifference"/> |
| 81 | + <assertLessThanOrEqual stepKey="assertColumnThreeWidthUnaffected"> |
| 82 | + <expectedResult type="int">1</expectedResult> |
| 83 | + <actualResult type="variable">columnThreeWidthDifference</actualResult> |
| 84 | + </assertLessThanOrEqual> |
83 | 85 | <!-- Assert source and duplicated column are the same width -->
|
84 | 86 | <comment userInput="Assert source and duplicate column as same width" stepKey="commentAssertDuplicateAndSourceWidth"/>
|
85 | 87 | <executeJS function="return document.querySelector('{{ColumnOnBackend.columnX('2')}}').offsetWidth" stepKey="columnTwoAfterDuplicate"/>
|
|
0 commit comments