|
59 | 59 | <waitForElementVisible selector="{{page.parallaxState(index, parallaxStateValue.value)}}" stepKey="waitForParallaxBackgroundState"/>
|
60 | 60 | <waitForElementVisible selector="{{page.parallaxSpeed(index, parallaxSpeedValue.value)}}" stepKey="waitForParallaxBackgroundSpeed"/>
|
61 | 61 | </actionGroup>
|
| 62 | + <!-- Validate Contained Row Appearance on stage --> |
| 63 | + <actionGroup name="validateContainedRowAppearanceOnStage"> |
| 64 | + <comment userInput="Increase window size to see varying widths for rows" stepKey="commentResizeWindow"/> |
| 65 | + <resizeWindow width="1920" height="1024" stepKey="resizeWindow"/> |
| 66 | + <executeJS function="return {{PageBuilderStage.stageWidthJS}}" stepKey="stageWidth"/> |
| 67 | + <executeJS function="return {{RowOnStage.rowWidthJS('contained', '0')}}" stepKey="rowWidth"/> |
| 68 | + <assertGreaterThan stepKey="assertRowWidthGreaterThanZero"> |
| 69 | + <expectedResult type="int">0</expectedResult> |
| 70 | + <actualResult type="variable">rowWidth</actualResult> |
| 71 | + </assertGreaterThan> |
| 72 | + <assertLessThan stepKey="assertRowWidthLessThanStage"> |
| 73 | + <expectedResult type="variable">stageWidth</expectedResult> |
| 74 | + <actualResult type="variable">rowWidth</actualResult> |
| 75 | + </assertLessThan> |
| 76 | + </actionGroup> |
| 77 | + <!-- Validate Full Width Row Appearance on stage --> |
| 78 | + <actionGroup name="validateFullWidthRowAppearanceOnStage"> |
| 79 | + <comment userInput="Increase window size to see varying widths for rows" stepKey="commentResizeWindow"/> |
| 80 | + <resizeWindow width="1920" height="1024" stepKey="resizeWindow"/> |
| 81 | + <executeJS function="return {{PageBuilderStage.stageWidthJS}}" stepKey="stageWidth"/> |
| 82 | + <executeJS function="return {{RowOnStage.rowWidthJS('full-width', '0')}}" stepKey="rowWidth"/> |
| 83 | + <executeJS function="return parseInt({{RowOnStage.rowH2ChildWidthJS('full-width', '0')}} + {{PageBuilderPaddingPropertyRowDefault.paddingLeft}} + {{PageBuilderPaddingPropertyRowDefault.paddingRight}})" stepKey="rowElementWidth"/> |
| 84 | + <assertGreaterThan stepKey="assertRowWidthGreaterThanZero"> |
| 85 | + <expectedResult type="int">0</expectedResult> |
| 86 | + <actualResult type="variable">rowWidth</actualResult> |
| 87 | + </assertGreaterThan> |
| 88 | + <assertEquals stepKey="assertRowWidthEqualsStage"> |
| 89 | + <expectedResult type="variable">stageWidth</expectedResult> |
| 90 | + <actualResult type="variable">rowWidth</actualResult> |
| 91 | + </assertEquals> |
| 92 | + <assertGreaterThan stepKey="assertRowWidthGreaterThanContents"> |
| 93 | + <expectedResult type="variable">rowElementWidth</expectedResult> |
| 94 | + <actualResult type="variable">rowWidth</actualResult> |
| 95 | + </assertGreaterThan> |
| 96 | + </actionGroup> |
| 97 | + <!-- Validate Full Bleed Row Appearance on stage --> |
| 98 | + <actionGroup name="validateFullBleedRowAppearanceOnStage"> |
| 99 | + <comment userInput="Increase window size to see varying widths for rows" stepKey="commentResizeWindow"/> |
| 100 | + <resizeWindow width="1920" height="1024" stepKey="resizeWindow"/> |
| 101 | + <executeJS function="return {{PageBuilderStage.stageWidthJS}}" stepKey="stageWidth"/> |
| 102 | + <executeJS function="return {{RowOnStage.rowWidthJS('full-bleed', '0')}}" stepKey="rowWidth"/> |
| 103 | + <executeJS function="return parseInt({{RowOnStage.rowH2ChildWidthJS('full-bleed', '0')}} + {{PageBuilderPaddingPropertyRowDefault.paddingLeft}} + {{PageBuilderPaddingPropertyRowDefault.paddingRight}})" stepKey="rowElementWidth"/> |
| 104 | + <assertGreaterThan stepKey="assertRowWidthGreaterThanZero"> |
| 105 | + <expectedResult type="int">0</expectedResult> |
| 106 | + <actualResult type="variable">rowWidth</actualResult> |
| 107 | + </assertGreaterThan> |
| 108 | + <assertEquals stepKey="assertRowWidthEqualsStage"> |
| 109 | + <expectedResult type="variable">stageWidth</expectedResult> |
| 110 | + <actualResult type="variable">rowWidth</actualResult> |
| 111 | + </assertEquals> |
| 112 | + <assertEquals stepKey="assertRowWidthEqualsContentsPlusPadding"> |
| 113 | + <expectedResult type="variable">rowElementWidth</expectedResult> |
| 114 | + <actualResult type="variable">rowWidth</actualResult> |
| 115 | + </assertEquals> |
| 116 | + </actionGroup> |
| 117 | + <!-- Validate Contained Row Appearance on Storefront --> |
| 118 | + <actionGroup name="validateContainedRowAppearanceOnStorefront"> |
| 119 | + <comment userInput="Increase window size to see varying widths for rows" stepKey="commentResizeWindow"/> |
| 120 | + <resizeWindow width="1920" height="1024" stepKey="resizeWindow"/> |
| 121 | + <executeJS function="return {{PageBuilderStoreFront.pageWidthJS}}" stepKey="pageWidth"/> |
| 122 | + <executeJS function="return {{RowOnStorefront.rowWidthJS('contained', '0')}}" stepKey="rowWidth"/> |
| 123 | + <assertGreaterThan stepKey="assertRowWidthGreaterThanZero"> |
| 124 | + <expectedResult type="int">0</expectedResult> |
| 125 | + <actualResult type="variable">rowWidth</actualResult> |
| 126 | + </assertGreaterThan> |
| 127 | + <assertLessThan stepKey="assertRowWidthLessThanPage"> |
| 128 | + <expectedResult type="variable">pageWidth</expectedResult> |
| 129 | + <actualResult type="variable">rowWidth</actualResult> |
| 130 | + </assertLessThan> |
| 131 | + </actionGroup> |
| 132 | + <!-- Validate Full Width Row Appearance on Storefront --> |
| 133 | + <actionGroup name="validateFullWidthRowAppearanceOnStorefront"> |
| 134 | + <comment userInput="Increase window size to see varying widths for rows" stepKey="commentResizeWindow"/> |
| 135 | + <resizeWindow width="1920" height="1024" stepKey="resizeWindow"/> |
| 136 | + <executeJS function="return {{PageBuilderStoreFront.pageWidthJS}}" stepKey="pageWidth"/> |
| 137 | + <executeJS function="return {{RowOnStorefront.rowWidthJS('full-width', '0')}}" stepKey="rowWidth"/> |
| 138 | + <executeJS function="return parseInt({{RowOnStorefront.rowH2ChildWidthJS('full-width', '0')}} + {{PageBuilderPaddingPropertyRowDefault.paddingLeft}} + {{PageBuilderPaddingPropertyRowDefault.paddingRight}})" stepKey="rowElementWidth"/> |
| 139 | + <assertGreaterThan stepKey="assertRowWidthGreaterThanZero"> |
| 140 | + <expectedResult type="int">0</expectedResult> |
| 141 | + <actualResult type="variable">rowWidth</actualResult> |
| 142 | + </assertGreaterThan> |
| 143 | + <assertEquals stepKey="assertRowWidthEqualsPage"> |
| 144 | + <expectedResult type="variable">pageWidth</expectedResult> |
| 145 | + <actualResult type="variable">rowWidth</actualResult> |
| 146 | + </assertEquals> |
| 147 | + <assertGreaterThan stepKey="assertRowWidthGreaterThanContents"> |
| 148 | + <expectedResult type="variable">rowElementWidth</expectedResult> |
| 149 | + <actualResult type="variable">rowWidth</actualResult> |
| 150 | + </assertGreaterThan> |
| 151 | + </actionGroup> |
| 152 | + <!-- Validate Full Bleed Row Appearance on Storefront --> |
| 153 | + <actionGroup name="validateFullBleedRowAppearanceOnStorefront"> |
| 154 | + <comment userInput="Increase window size to see varying widths for rows" stepKey="commentResizeWindow"/> |
| 155 | + <resizeWindow width="1920" height="1024" stepKey="resizeWindow"/> |
| 156 | + <executeJS function="return {{PageBuilderStoreFront.pageWidthJS}}" stepKey="pageWidth"/> |
| 157 | + <executeJS function="return {{RowOnStorefront.rowWidthJS('full-bleed', '0')}}" stepKey="rowWidth"/> |
| 158 | + <executeJS function="return parseInt({{RowOnStorefront.rowH2ChildWidthJS('full-bleed', '0')}} + {{PageBuilderPaddingPropertyRowDefault.paddingLeft}} + {{PageBuilderPaddingPropertyRowDefault.paddingRight}})" stepKey="rowElementWidth"/> |
| 159 | + <assertGreaterThan stepKey="assertRowWidthGreaterThanZero"> |
| 160 | + <expectedResult type="int">0</expectedResult> |
| 161 | + <actualResult type="variable">rowWidth</actualResult> |
| 162 | + </assertGreaterThan> |
| 163 | + <assertEquals stepKey="assertRowWidthEqualsPage"> |
| 164 | + <expectedResult type="variable">pageWidth</expectedResult> |
| 165 | + <actualResult type="variable">rowWidth</actualResult> |
| 166 | + </assertEquals> |
| 167 | + <assertEquals stepKey="assertRowWidthEqualsContentsPlusPadding"> |
| 168 | + <expectedResult type="variable">rowElementWidth</expectedResult> |
| 169 | + <actualResult type="variable">rowWidth</actualResult> |
| 170 | + </assertEquals> |
| 171 | + </actionGroup> |
62 | 172 | </actionGroups>
|
0 commit comments