|
19 | 19 | </annotations>
|
20 | 20 | <before>
|
21 | 21 | <createData entity="_defaultCmsPage" stepKey="createCMSPage" />
|
| 22 | + <createData entity="_defaultBlock" stepKey="createPreReqBlock" /> |
22 | 23 | <actionGroup ref="LoginActionGroup" stepKey="login"/>
|
23 | 24 | <actionGroup ref="EnabledWYSIWYG" stepKey="enableWYSIWYG"/>
|
24 | 25 | <actionGroup ref="SwitchToVersion4ActionGroup" stepKey="switchToTinyMCE4" />
|
25 | 26 | </before>
|
26 |
| - <amOnPage url="{{CmsNewBlock.url}}" stepKey="amOnNewBlockPage"/> |
27 |
| - <waitForPageLoad stepKey="waitForPageLoad1"/> |
28 |
| - <fillField selector="{{BlockNewPageBasicFieldsSection.blockTitle}}" userInput="{{_defaultBlock.title}}" stepKey="fillFieldTitle"/> |
29 |
| - <fillField selector="{{BlockNewPageBasicFieldsSection.identifier}}" userInput="{{_defaultBlock.identifier}}" stepKey="fillFieldIdentifier"/> |
| 27 | + <actionGroup ref="navigateToCreatedCMSBlockPage" stepKey="navigateToCreatedCMSBlockPage"> |
| 28 | + <argument name="CMSBlockPage" value="$$createPreReqBlock$$"/> |
| 29 | + </actionGroup> |
30 | 30 | <selectOption selector="{{BlockNewPageBasicFieldsSection.storeView}}" userInput="All Store View" stepKey="selectAllStoreView" />
|
31 | 31 | <waitForElementVisible selector="{{TinyMCESection.TinyMCE4}}" stepKey="waitForTinyMCE" />
|
32 | 32 | <click selector="{{TinyMCESection.InsertWidgetIcon}}" stepKey="clickInsertWidgetIcon1" />
|
|
44 | 44 | <waitForLoadingMaskToDisappear stepKey="waitForLoading" />
|
45 | 45 | <waitForElementNotVisible selector="{{WidgetSection.InsertWidgetTitle}}" stepKey="waitForSlideOutCloses1" />
|
46 | 46 | <click selector="{{BlockNewPagePageActionsSection.saveBlock}}" stepKey="clickSaveBlock"/>
|
47 |
| - <amOnPage url="{{CmsPagesPage.url}}" stepKey="amOnEditPage"/> |
48 |
| - <waitForPageLoad stepKey="waitForPageLoad3"/> |
49 |
| - <conditionalClick selector="{{CmsPagesPageActionsSection.clearAll}}" dependentSelector="{{CmsPagesPageActionsSection.activeFilters}}" stepKey="clickToResetFilter" visible="true"/> |
50 |
| - <waitForPageLoad stepKey="waitForGridReload"/> |
51 |
| - <click selector="{{CmsPagesPageActionsSection.FilterBtn}}" stepKey="clickFiltersBtn" /> |
52 |
| - <fillField selector="{{CmsPagesPageActionsSection.URLKey}}" userInput="$$createCMSPage.identifier$$" stepKey="fillOutURLKey" /> |
53 |
| - <click selector="{{CmsPagesPageActionsSection.ApplyFiltersBtn}}" stepKey="clickApplyBtn" /> |
54 |
| - <waitForLoadingMaskToDisappear stepKey="waitForLoading1" /> |
55 |
| - <actionGroup ref="SortByIdDescendingActionGroup" stepKey="sortByIdDescending" /> |
56 |
| - <waitForElementVisible selector="{{CmsPagesPageActionsSection.select('$$createCMSPage.identifier$$')}}" stepKey="waitForCMSPageGrid" /> |
57 |
| - <click selector="{{CmsPagesPageActionsSection.select('$$createCMSPage.identifier$$')}}" stepKey="clickSelect" /> |
58 |
| - <waitForElementVisible selector="{{CmsPagesPageActionsSection.edit('$$createCMSPage.identifier$$')}}" stepKey="waitForEditLink" /> |
59 |
| - <click selector="{{CmsPagesPageActionsSection.edit('$$createCMSPage.identifier$$')}}" stepKey="clickEdit" /> |
60 |
| - <waitForPageLoad stepKey="waitForPageLoad4" /> |
61 |
| - <click selector="{{CmsNewPagePageContentSection.header}}" stepKey="clickContentTab" /> |
| 47 | + <actionGroup ref="navigateToCreatedCMSPage" stepKey="navigateToCreatedCMSPage"> |
| 48 | + <argument name="CMSPage" value="$$createCMSPage$$"/> |
| 49 | + </actionGroup> |
62 | 50 | <waitForElementVisible selector="{{TinyMCESection.TinyMCE4}}" stepKey="waitForTinyMCE4"/>
|
63 | 51 | <seeElement selector="{{TinyMCESection.InsertWidgetIcon}}" stepKey="seeWidgetIcon" />
|
64 | 52 | <click selector="{{TinyMCESection.InsertWidgetIcon}}" stepKey="clickInsertWidgetIcon2" />
|
|
87 | 75 | <conditionalClick selector="{{CmsPagesPageActionsSection.clearAll}}" dependentSelector="{{CmsPagesPageActionsSection.activeFilters}}" stepKey="clickToResetFilter" visible="true"/>
|
88 | 76 | <waitForPageLoad stepKey="waitForGridReload"/>
|
89 | 77 | <deleteData createDataKey="createCMSPage" stepKey="deletePreReqCMSPage" />
|
| 78 | + <deleteData createDataKey="createPreReqBlock" stepKey="deletePreReqBlock" /> |
90 | 79 | <actionGroup ref="DisabledWYSIWYG" stepKey="disableWYSIWYG"/>
|
91 | 80 | <actionGroup ref="logout" stepKey="logout"/>
|
92 | 81 | </after>
|
|
0 commit comments