|
51 | 51 | <comment userInput="inlineEditButton" stepKey="comment"/>
|
52 | 52 | <waitForElementVisible selector="{{ButtonItemOnStage.base(index)}}" stepKey="waitForButton"/>
|
53 | 53 | <waitForElementVisible selector="{{ButtonItemOnStage.editableButtonItemElement(index)}}" stepKey="waitForButtonEditable"/>
|
54 |
| - <pressKey selector="{{ButtonItemOnStage.editableButtonItemElement(index)}}" userInput="{{text.value}}" stepKey="enterButtonText"/> |
| 54 | + <fillField selector="{{ButtonItemOnStage.editableButtonItemElement(index)}}" userInput="{{text.value}}" stepKey="enterButtonText"/> |
55 | 55 | <waitForElementVisible selector="{{ButtonItemOnStage.buttonItemText(index, text.value)}}" stepKey="waitForButtonText"/>
|
56 |
| - <click selector="{{PageBuilderPanel.searchPanel}}" stepKey="unfocusLiveEdit"/> |
57 |
| - <waitForPageLoad stepKey="waitForUnfocus"/> |
| 56 | + <click selector="{{PageBuilderPanel.searchPanel}}" stepKey="unFocusLiveEdit"/> |
| 57 | + <waitForPageLoad stepKey="waitForUnFocus"/> |
58 | 58 | </actionGroup>
|
59 | 59 | <actionGroup name="moveButton">
|
60 | 60 | <arguments>
|
|
80 | 80 | <argument name="firstButtonIndex" defaultValue="1" type="string"/>
|
81 | 81 | <argument name="secondButtonIndex" defaultValue="2" type="string"/>
|
82 | 82 | </arguments>
|
| 83 | + <comment userInput="validateButtonGroupInlineAppearance" stepKey="comment"/> |
83 | 84 | <waitForElementVisible selector="{{buttonGroupPage.base(buttonGroupindex)}}" stepKey="waitForButtonGroup"/>
|
84 | 85 | <waitForElementVisible selector="{{buttonGroupPage.appearance(buttonGroupindex, PageBuilderButtonGroupAppearance_Inline.value)}}" stepKey="seeButtonAppearance"/>
|
85 | 86 | <waitForElementVisible selector="{{buttonItemPage.base(firstButtonIndex)}}" stepKey="waitForButton1"/>
|
|
105 | 106 | <argument name="firstButtonIndex" defaultValue="1" type="string"/>
|
106 | 107 | <argument name="secondButtonIndex" defaultValue="2" type="string"/>
|
107 | 108 | </arguments>
|
| 109 | + <comment userInput="validateButtonGroupInlineAppearanceWraps" stepKey="comment"/> |
108 | 110 | <waitForElementVisible selector="{{buttonGroupPage.base(buttonGroupindex)}}" stepKey="waitForButtonGroup"/>
|
109 | 111 | <waitForElementVisible selector="{{buttonGroupPage.appearance(buttonGroupindex, PageBuilderButtonGroupAppearance_Inline.value)}}" stepKey="seeButtonAppearance"/>
|
110 | 112 | <waitForElementVisible selector="{{buttonItemPage.base(firstButtonIndex)}}" stepKey="waitForButton1"/>
|
|
126 | 128 | <arguments>
|
127 | 129 | <argument name="buttonGroupPage"/>
|
128 | 130 | <argument name="buttonItemPage"/>
|
129 |
| - <argument name="buttonGroupindex" defaultValue="1" type="string"/> |
| 131 | + <argument name="buttonGroupIndex" defaultValue="1" type="string"/> |
130 | 132 | <argument name="firstButtonIndex" defaultValue="1" type="string"/>
|
131 | 133 | <argument name="secondButtonIndex" defaultValue="2" type="string"/>
|
132 | 134 | </arguments>
|
133 |
| - <waitForElementVisible selector="{{buttonGroupPage.base(buttonGroupindex)}}" stepKey="waitForButtonGroup"/> |
134 |
| - <waitForElementVisible selector="{{buttonGroupPage.appearance(buttonGroupindex, PageBuilderButtonGroupAppearance_Stacked.value)}}" stepKey="seeButtonAppearance"/> |
| 135 | + <comment userInput="validateButtonGroupStackedAppearance" stepKey="comment"/> |
| 136 | + <waitForElementVisible selector="{{buttonGroupPage.base(buttonGroupIndex)}}" stepKey="waitForButtonGroup"/> |
| 137 | + <waitForElementVisible selector="{{buttonGroupPage.appearance(buttonGroupIndex, PageBuilderButtonGroupAppearance_Stacked.value)}}" stepKey="seeButtonAppearance"/> |
135 | 138 | <waitForElementVisible selector="{{buttonItemPage.base(firstButtonIndex)}}" stepKey="waitForButton1"/>
|
136 | 139 | <executeJS function="return {{buttonItemPage.jsButtonSelector(firstButtonIndex)}}.getBoundingClientRect().x" stepKey="xCoordinate1"/>
|
137 | 140 | <executeJS function="return {{buttonItemPage.jsButtonSelector(firstButtonIndex)}}.getBoundingClientRect().y" stepKey="yCoordinate1"/>
|
|
147 | 150 | <actualResult type="variable">yCoordinate2</actualResult>
|
148 | 151 | </assertGreaterThan>
|
149 | 152 | </actionGroup>
|
| 153 | + <actionGroup name="validateButtonItemsSameSize"> |
| 154 | + <arguments> |
| 155 | + <argument name="buttonGroupPage"/> |
| 156 | + <argument name="buttonItemPage"/> |
| 157 | + <argument name="buttonGroupIndex" defaultValue="1" type="string"/> |
| 158 | + <argument name="firstButtonIndex" defaultValue="1" type="string"/> |
| 159 | + <argument name="secondButtonIndex" defaultValue="2" type="string"/> |
| 160 | + </arguments> |
| 161 | + <comment userInput="validateButtonItemsSameSize" stepKey="comment"/> |
| 162 | + <waitForElementVisible selector="{{buttonGroupPage.base(buttonGroupIndex)}}" stepKey="waitForButtonGroup"/> |
| 163 | + <seeElement selector="{{buttonGroupPage.sameSizeValue(buttonGroupIndex, PageBuilderButtonGroupSameSize_Enabled.value)}}" stepKey="seeButtonSameSizeValue"/> |
| 164 | + <waitForElementVisible selector="{{buttonItemPage.base(firstButtonIndex)}}" stepKey="waitForButton1"/> |
| 165 | + <executeJS function="return parseInt(window.getComputedStyle({{buttonItemPage.jsButtonSelector(firstButtonIndex)}}).width)" stepKey="button1Width"/> |
| 166 | + <waitForElementVisible selector="{{buttonItemPage.base(secondButtonIndex)}}" stepKey="waitForButton2"/> |
| 167 | + <executeJS function="return parseInt(window.getComputedStyle({{buttonItemPage.jsButtonSelector(secondButtonIndex)}}).width)" stepKey="button2Width"/> |
| 168 | + <assertGreaterThan stepKey="assertButtonWidthGreaterThanZero"> |
| 169 | + <actualResult type="variable">button1Width</actualResult> |
| 170 | + <expectedResult type="int">0</expectedResult> |
| 171 | + </assertGreaterThan> |
| 172 | + <assertEquals stepKey="assertButtonWidthSize"> |
| 173 | + <actualResult type="variable">button1Width</actualResult> |
| 174 | + <expectedResult type="variable">button2Width</expectedResult> |
| 175 | + </assertEquals> |
| 176 | + </actionGroup> |
| 177 | + <actionGroup name="validateButtonItemsDifferentSizes" extends="validateButtonItemsSameSize"> |
| 178 | + <comment userInput="validateButtonItemsDifferentSizes" stepKey="comment"/> |
| 179 | + <seeElement selector="{{buttonGroupPage.sameSizeValue(buttonGroupIndex, PageBuilderButtonGroupSameSize_Disabled.value)}}" stepKey="seeButtonSameSizeValue"/> |
| 180 | + <assertNotEquals stepKey="assertButtonWidthSize"> |
| 181 | + <actualResult type="variable">button1Width</actualResult> |
| 182 | + <expectedResult type="variable">button2Width</expectedResult> |
| 183 | + </assertNotEquals> |
| 184 | + </actionGroup> |
150 | 185 | </actionGroups>
|
0 commit comments