|
22 | 22 | </annotations>
|
23 | 23 | <before>
|
24 | 24 | <actionGroup ref="LoginAsAdmin" stepKey="loginAsAdmin"/>
|
25 |
| - <actionGroup ref="enablePageBuilderSetting" stepKey="turnOnPageBuilder"/> |
26 | 25 | <actionGroup ref="navigateToAPageWithPageBuilder" stepKey="navigateToAPageWithPageBuilder"/>
|
27 | 26 | <actionGroup ref="switchToPageBuilderStage" stepKey="switchToPageBuilderStage"/>
|
28 | 27 | </before>
|
29 | 28 | <after>
|
30 |
| - <actionGroup ref="DisabledWYSIWYG" stepKey="disableWYSIWYG"/> |
31 |
| - <amOnPage url="admin/admin/auth/logout" stepKey="amOnLogoutPage"/> |
32 |
| - <waitForPageLoad stepKey="waitForAdminLoginPageLoad"/> |
| 29 | + <actionGroup ref="logout" stepKey="logout"/> |
33 | 30 | </after>
|
34 | 31 | <comment userInput="Given I have added Tabs container with one Tab to the stage and save" stepKey="AC1"/>
|
35 | 32 | <!-- Set the page title, as we'll be saving the page -->
|
36 | 33 | <actionGroup ref="addPageBuilderPageTitle" stepKey="enterPageTitle1">
|
37 | 34 | <argument name="contentBlockType" value="PageBuilderTabsContentBlock"/>
|
38 | 35 | </actionGroup>
|
39 |
| - |
40 | 36 | <fillField selector="{{PageBuilderActionsSection.searchPanel}}" userInput="tabs" stepKey="fillSearch"/>
|
41 | 37 | <see userInput="Tabs" selector="{{PageBuilderActionsSection.searchResults}}" stepKey="validateSearchResults"/>
|
42 | 38 | <actionGroup ref="dragContentBlockToStage" stepKey="dragContentBlockToStage">
|
43 | 39 | <argument name="contentBlockType" value="PageBuilderTabsContentBlock"/>
|
44 | 40 | </actionGroup>
|
45 |
| - |
46 | 41 | <waitForPageLoad stepKey="waitForTabsToLoad"/>
|
47 | 42 | <waitForElementVisible selector="{{TabOnStage.tabContent('1')}}" stepKey="waitForFirstTabContent"/>
|
48 | 43 | <waitForElementVisible selector="{{TabOnStage.tabHeader('1')}}" stepKey="waitForFirstTabHeader"/>
|
49 | 44 | <actionGroup ref="saveAndContinueEditCmsPage" stepKey="saveAndContinueEditCmsPage"/>
|
50 | 45 | <actionGroup ref="switchToPageBuilderStage" stepKey="switchToPageBuilderStage"/>
|
51 |
| - |
52 | 46 | <comment userInput="When I view options menu for single Tab" stepKey="AC2"/>
|
53 | 47 | <waitForElementVisible time="10" selector="{{TabOnStage.tabHeader('1')}}" stepKey="waitForContentBlockInStageVisible" />
|
54 | 48 | <click stepKey="clickTabTitle" selector="{{TabOnStage.tabHeader('1')}}"/>
|
55 | 49 | <waitForElementVisible selector="{{TabOnStage.tabOptionsEdit}}" stepKey="seeTabOptionsEdit"/>
|
56 |
| - |
57 | 50 | <!-- Verify Remove option is disabled -->
|
58 | 51 | <comment userInput="User sees that removing last tab from the Tabs content block is disabled" stepKey="AC3"/>
|
59 | 52 | <seeElement selector="{{TabOnStage.tabOptionsRemoveDisabled}}" stepKey="seeTabRemoveOptionDisabled"/>
|
|
63 | 56 | <argument name="contentBlockType" value="PageBuilderTabsContentBlock"/>
|
64 | 57 | </actionGroup>
|
65 | 58 | <actionGroup ref="saveAndContinueEditCmsPage" stepKey="saveAndContinueEditCmsPage2"/>
|
66 |
| - |
67 | 59 | <comment userInput="No Tabs shown on the stage after save nor on the storefront" stepKey="AC5"/>
|
68 | 60 | <actionGroup ref="switchToPageBuilderStage" stepKey="switchToPageBuilderStage2"/>
|
69 | 61 | <dontSeeElement selector="{{PageBuilderActionsSection.contentBlockInStage(PageBuilderTabsContentBlock.role)}}" stepKey="dontSeeContentBlockInStage"/>
|
|
86 | 78 | </annotations>
|
87 | 79 | <before>
|
88 | 80 | <actionGroup ref="LoginAsAdmin" stepKey="loginAsAdmin"/>
|
89 |
| - <actionGroup ref="enablePageBuilderSetting" stepKey="turnOnPageBuilder"/> |
90 | 81 | <actionGroup ref="navigateToAPageWithPageBuilder" stepKey="navigateToAPageWithPageBuilder"/>
|
91 | 82 | <actionGroup ref="switchToPageBuilderStage" stepKey="switchToPageBuilderStage"/>
|
92 | 83 | </before>
|
93 | 84 | <after>
|
94 |
| - <actionGroup ref="DisabledWYSIWYG" stepKey="disableWYSIWYG"/> |
95 | 85 | <actionGroup ref="logout" stepKey="logout"/>
|
96 | 86 | </after>
|
97 | 87 | <comment userInput="Given I have added Tabs content block to the stage with a second Tab in default state" stepKey="AC1"/>
|
|
114 | 104 | <actionGroup ref="addTab" stepKey="addSecondTab"/>
|
115 | 105 | <waitForPageLoad stepKey="waitForLoadingMaskToDisappear"/>
|
116 | 106 | <waitForElementVisible selector="{{TabOnStage.tabHeader('2')}}" stepKey="confirmSecondTab"/>
|
117 |
| - |
118 | 107 | <comment userInput="When I delete second default state Tab from the stage" stepKey="AC2"/>
|
119 | 108 | <waitForElementVisible time="10" selector="{{TabOnStage.tabHeader('2')}}" stepKey="waitForContentBlockInStageVisible" />
|
120 | 109 | <click stepKey="clickTabTitle" selector="{{TabOnStage.tabHeader('2')}}"/>
|
121 | 110 | <waitForElementVisible selector="{{TabOnStage.tabOptionsEdit}}" stepKey="seeTabOptionsEdit"/>
|
122 | 111 | <!-- Remove second tab -->
|
123 | 112 | <click selector="{{TabOnStage.tabOptionsRemove}}" stepKey="clickRemoveOption"/>
|
124 | 113 | <comment userInput="Removal confirmation modal not displayed when removing default state individual Tab" stepKey="AC3"/>
|
125 |
| - |
126 | 114 | <dontSee selector="{{PageBuilderActionsSection.modal}}" stepKey="dontSeeModalHeader"/>
|
127 | 115 | <dontSee selector="{{PageBuilderActionsSection.modalOk}}" stepKey="dontSeeModalOkHeader" />
|
128 | 116 | <comment userInput="Tabs with single Tab shown on the stage after save and on the storefront" stepKey="AC4"/>
|
129 |
| - |
130 | 117 | <actionGroup ref="saveAndContinueEditCmsPage" stepKey="saveAndContinueEditCmsPage"/>
|
131 | 118 | <actionGroup ref="switchToPageBuilderStage" stepKey="switchToPageBuilderStage2"/>
|
132 | 119 | <dontSeeElement selector="{{TabOnStage.tabHeader('2')}}" stepKey="dontSeeSecondTab"/>
|
|
136 | 123 | <waitForPageLoad stepKey="waitForStoreFrontPageLoad" time="30"/>
|
137 | 124 | <dontSeeElement selector="{{TabOnStorefront.tabHeader('2')}}" stepKey="dontSeeSecondTabOnStorefront"/>
|
138 | 125 | <seeElement selector="{{TabOnStorefront.tabHeader('1')}}" stepKey="seeFirstTabOnStorefront"/>
|
139 |
| - |
140 | 126 | </test>
|
141 | 127 | <test name="TabsRemoveConfiguredSecondTabWithConfirmation">
|
142 | 128 | <annotations>
|
|
152 | 138 | </annotations>
|
153 | 139 | <before>
|
154 | 140 | <actionGroup ref="LoginAsAdmin" stepKey="loginAsAdmin"/>
|
155 |
| - <actionGroup ref="enablePageBuilderSetting" stepKey="turnOnPageBuilder"/> |
156 | 141 | <actionGroup ref="navigateToAPageWithPageBuilder" stepKey="navigateToAPageWithPageBuilder"/>
|
157 | 142 | <actionGroup ref="switchToPageBuilderStage" stepKey="switchToPageBuilderStage"/>
|
158 | 143 | </before>
|
159 | 144 | <after>
|
160 |
| - <actionGroup ref="DisabledWYSIWYG" stepKey="disableWYSIWYG"/> |
161 | 145 | <actionGroup ref="logout" stepKey="logout"/>
|
162 | 146 | </after>
|
163 | 147 | <comment userInput="Given I have added a second Tab on the stage and customized it" stepKey="AC1"/>
|
|
195 | 179 | <actionGroup ref="confirmRemovalModal" stepKey="confirmRemoval"/>
|
196 | 180 | <dontSeeElement selector="{{TabOnStage.tabHeader('2')}}" stepKey="dontSeeSecondTab"/>
|
197 | 181 | <seeElement selector="{{TabOnStage.tabHeader('1')}}" stepKey="seeFirstTabOnStage"/>
|
198 |
| - |
199 | 182 | </test>
|
200 | 183 | <test name="TabsRemoveSecondTabContainingTextWithConfirmation">
|
201 | 184 | <annotations>
|
|
211 | 194 | </annotations>
|
212 | 195 | <before>
|
213 | 196 | <actionGroup ref="LoginAsAdmin" stepKey="loginAsAdmin"/>
|
214 |
| - <actionGroup ref="EnabledWYSIWYG" stepKey="enableWYSIWYG"/> |
215 |
| - <actionGroup ref="enablePageBuilderSetting" stepKey="turnOnPageBuilder" after="enableWYSIWYG"/> |
216 | 197 | <actionGroup ref="navigateToAPageWithPageBuilder" stepKey="navigateToAPageWithPageBuilder"/>
|
217 | 198 | <actionGroup ref="switchToPageBuilderStage" stepKey="switchToPageBuilderStage"/>
|
218 | 199 | </before>
|
219 | 200 | <after>
|
220 |
| - <actionGroup ref="DisabledWYSIWYG" stepKey="disableWYSIWYG"/> |
221 | 201 | <actionGroup ref="logout" stepKey="logout"/>
|
222 | 202 | </after>
|
223 | 203 | <comment userInput="Given I have added Tabs with a second Tab" stepKey="AC1"/>
|
|
229 | 209 | <actionGroup ref="dragContentBlockToStage" stepKey="dragTabsIntoStage">
|
230 | 210 | <argument name="contentBlockType" value="PageBuilderTabsContentBlock"/>
|
231 | 211 | </actionGroup>
|
232 |
| - |
233 | 212 | <actionGroup ref="addTab" stepKey="addSecondTab"/>
|
234 | 213 | <waitForPageLoad stepKey="waitForLoadingMaskToDisappear"/>
|
235 | 214 | <waitForElementVisible selector="{{TabOnStage.tabHeader('2')}}" stepKey="confirmSecondTab"/>
|
236 | 215 | <click selector="{{TabsOnStage.tabsContainer}}" stepKey="focusOnContentBlock"/>
|
237 |
| - |
238 | 216 | <comment userInput="Given I have added a Text content block to the second Tab" stepKey="AC2"/>
|
239 | 217 | <actionGroup ref="dragContentBlockToContainer" stepKey="dragTextOntoTab">
|
240 | 218 | <argument name="contentBlockType" value="PageBuilderTextContentBlock"/>
|
241 | 219 | <argument name="containerTargetType" value="PageBuilderTabContentBlock"/>
|
242 | 220 | <argument name="containerTargetIndex" value="1" />
|
243 | 221 | </actionGroup>
|
244 |
| - |
245 | 222 | <comment userInput="User deletes tab with content from Tabs, user sees warning message" stepKey="AC3"/>
|
246 | 223 | <click stepKey="clickTabTitle" selector="{{TabOnStage.tabHeader('2')}}"/>
|
247 | 224 | <waitForElementVisible selector="{{TabOnStage.tabOptionsEdit}}" stepKey="seeTabOptionsEdit"/>
|
|
251 | 228 | <comment userInput="User confirms deleting tab with content, it disappears from Admin preview" stepKey="AC4"/>
|
252 | 229 | <dontSeeElement selector="{{TabOnStage.tabHeader('2')}}" stepKey="dontSeeSecondTab"/>
|
253 | 230 | <comment userInput="Tabs with single Tab shown on the stage after save" stepKey="AC5"/>
|
254 |
| - |
255 | 231 | <actionGroup ref="saveAndContinueEditCmsPage" stepKey="saveAndContinueEditCmsPage"/>
|
256 | 232 | <actionGroup ref="switchToPageBuilderStage" stepKey="switchToPageBuilderStage2"/>
|
257 | 233 | <dontSeeElement selector="{{TabOnStage.tabHeader('2')}}" stepKey="dontSeeSecondTab2"/>
|
258 | 234 | <seeElement selector="{{PageBuilderActionsSection.contentBlockInStage(PageBuilderTabsContentBlock.role)}}" stepKey="seeTabsInStage"/>
|
259 | 235 | <comment userInput="User goes to the storefront and sees 2 tabs not being displayed" stepKey="AC6"/>
|
260 |
| - |
261 | 236 | <amOnPage url="{{PageBuilderTabsContentBlock.name}}{{PageBuilderPageTitle.pageName}}" stepKey="amOnPageBuilderPage"/>
|
262 | 237 | <reloadPage stepKey="reloadPage"/>
|
263 | 238 | <waitForPageLoad stepKey="waitForStoreFrontPageLoad" time="30"/>
|
|
278 | 253 | </annotations>
|
279 | 254 | <before>
|
280 | 255 | <actionGroup ref="LoginAsAdmin" stepKey="loginAsAdmin"/>
|
281 |
| - <actionGroup ref="enablePageBuilderSetting" stepKey="turnOnPageBuilder"/> |
282 | 256 | <actionGroup ref="navigateToAPageWithPageBuilder" stepKey="navigateToAPageWithPageBuilder"/>
|
283 | 257 | <actionGroup ref="switchToPageBuilderStage" stepKey="switchToPageBuilderStage"/>
|
284 | 258 | </before>
|
285 | 259 | <after>
|
286 |
| - <actionGroup ref="DisabledWYSIWYG" stepKey="disableWYSIWYG"/> |
287 | 260 | <actionGroup ref="logout" stepKey="logout"/>
|
288 | 261 | </after>
|
289 | 262 | <comment userInput="Given I have customized the Edit Tabs container advanced settings" stepKey="AC1"/>
|
|
322 | 295 | </annotations>
|
323 | 296 | <before>
|
324 | 297 | <actionGroup ref="LoginAsAdmin" stepKey="loginAsAdmin"/>
|
325 |
| - <actionGroup ref="enablePageBuilderSetting" stepKey="turnOnPageBuilder"/> |
326 | 298 | <actionGroup ref="navigateToAPageWithPageBuilder" stepKey="navigateToAPageWithPageBuilder"/>
|
327 | 299 | <actionGroup ref="switchToPageBuilderStage" stepKey="switchToPageBuilderStage"/>
|
328 | 300 | </before>
|
329 | 301 | <after>
|
330 |
| - <actionGroup ref="DisabledWYSIWYG" stepKey="disableWYSIWYG"/> |
331 | 302 | <actionGroup ref="logout" stepKey="logout"/>
|
332 | 303 | </after>
|
333 | 304 | <comment userInput="Given I have added Tabs container with 3 Tabs to the stage" stepKey="AC1"/>
|
|
367 | 338 | </annotations>
|
368 | 339 | <before>
|
369 | 340 | <actionGroup ref="LoginAsAdmin" stepKey="loginAsAdmin"/>
|
370 |
| - <actionGroup ref="enablePageBuilderSetting" stepKey="turnOnPageBuilder"/> |
371 | 341 | <actionGroup ref="navigateToAPageWithPageBuilder" stepKey="navigateToAPageWithPageBuilder"/>
|
372 | 342 | <actionGroup ref="switchToPageBuilderStage" stepKey="switchToPageBuilderStage"/>
|
373 | 343 | </before>
|
374 | 344 | <after>
|
375 |
| - <actionGroup ref="DisabledWYSIWYG" stepKey="disableWYSIWYG"/> |
376 | 345 | <actionGroup ref="logout" stepKey="logout"/>
|
377 | 346 | </after>
|
378 | 347 | <comment userInput="Given I have customized a Tab on the stage and copied it" stepKey="AC1"/>
|
|
454 | 423 | </actionGroup>
|
455 | 424 | <dontSee selector="{{PageBuilderActionsSection.modal}}" stepKey="dontSeeModalHeaderAfterHeader"/>
|
456 | 425 | <dontSee selector="{{PageBuilderActionsSection.modalOk}}" stepKey="dontSeeModalOkHeaderAfterHeader" />
|
457 |
| - |
458 | 426 | <!-- Validate the items are removed -->
|
459 | 427 | <dontSeeElement selector="{{PageBuilderActionsSection.contentBlockInStage(PageBuilderHeadingContentBlock.role)}}" stepKey="dontSeeHeaderInStage"/>
|
460 |
| - |
461 | 428 | </test>
|
462 | 429 | </tests>
|
0 commit comments