|
21 | 21 | <before>
|
22 | 22 | <!-- Pre-condition 1- Login as Admin -->
|
23 | 23 | <actionGroup ref="AdminLoginActionGroup" stepKey="loginAsAdmin"/>
|
24 |
| - |
25 | 24 | <!-- Pre-condition - Disable the page builder -->
|
26 | 25 | <magentoCLI command="config:set cms/pagebuilder/enabled 0" stepKey="disablePageBuilder"/>
|
27 | 26 | <magentoCLI command="config:set cms/wysiwyg/enabled disabled" stepKey="disableWYSIWYG"/>
|
28 |
| - <magentoCLI stepKey="reindex" command="indexer:reindex"/> |
29 |
| - <magentoCLI stepKey="flushCache" command="cache:flush"/> |
30 |
| - |
| 27 | + <magentoCLI stepKey="reindexingPostDisablingThePageBuilder" command="indexer:reindex"/> |
| 28 | + <magentoCLI stepKey="flushCachePostDisablingThePageBuilder" command="cache:flush"/> |
31 | 29 | <!-- Pre-condition 3- Verify page in grid-->
|
32 | 30 | <actionGroup ref="AdminOpenCMSPagesGridActionGroup" stepKey="openCMSPagesGridActionGroup"/>
|
33 | 31 | <actionGroup ref="ClearFiltersAdminDataGridActionGroup" stepKey="clearGridFilters"/>
|
34 | 32 | <actionGroup ref="SortByIdDescendingActionGroup" stepKey="sortGridByIdDescending"/>
|
35 | 33 | <click selector="{{CmsPagesPageActionsSection.select('home')}}" stepKey="clickSelectCMSPage" />
|
36 |
| - |
37 | 34 | <!-- Pre-condition 4- Update the page in grid-->
|
38 | 35 | <click selector="{{CmsPagesPageActionsSection.edit('home')}}" stepKey="OpenThePageToBeEdited"/>
|
39 | 36 | <waitForPageLoad stepKey="waitForPageLoadPostSelectingHomePage"/>
|
40 | 37 | <waitForElementVisible selector="{{CmsNewPagePageContentSection.header}}" stepKey="waitForContentTabForPageToBeVisible"/>
|
41 |
| - |
42 | 38 | <!-- Pre-condition 5- Expand the Content section > Insert Widget -->
|
43 | 39 | <click selector="{{CmsNewPagePageContentSection.header}}" stepKey="clickExpandContentTabForPage"/>
|
44 | 40 | <waitForElementVisible selector="{{CmsNewPagePageActionsSection.insertWidget}}" stepKey="waitForTheInsertWidgetButtonToDisplay"/>
|
45 |
| - <actionGroup ref="AdminInsertWidgetToCmsPageContentActionGroup" stepKey="selectCMSpageLinkFromDropdown"/> |
| 41 | + <actionGroup ref="AdminInsertWidgetToCmsPageContentActionGroup" stepKey="selectCMSPageLinkFromDropdown"/> |
46 | 42 | <waitForPageLoad stepKey="waitForPageLoadPostSelectingFromDropDown"/>
|
47 |
| - |
48 | 43 | <!-- Pre-condition 6 - 11 - Update the Anchor Custom Text -->
|
49 | 44 | <fillField selector="{{WidgetSection.InputAnchorCustomText}}" userInput="Custom texts' for tests" stepKey="InputValuesWithApostrophe"/>
|
50 | 45 | <click selector="{{WidgetSection.SelectPageButton}}" stepKey="clickOnSelectPageButton"/>
|
51 |
| - <waitForElementVisible selector="{{WidgetSection.url_key_selectPage}}" stepKey="waitForSelectPageDialogToPopulate"/> |
52 |
| - <fillField selector="{{WidgetSection.url_key_selectPage}}" userInput="home" stepKey="EnterThePageURL"/> |
53 |
| - <click selector="{{WidgetSection.SearchButton_selectPage}}" stepKey="clickOnSearchButton"/> |
| 46 | + <waitForElementVisible selector="{{WidgetSection.URLKeySelectPage}}" stepKey="waitForSelectPageDialogToPopulate"/> |
| 47 | + <fillField selector="{{WidgetSection.URLKeySelectPage}}" userInput="home" stepKey="EnterThePageURL"/> |
| 48 | + <click selector="{{WidgetSection.SearchButtonSelectPage}}" stepKey="clickOnSearchButton"/> |
54 | 49 | <waitForPageLoad stepKey="waitForResultsToBeDisplayed"/>
|
55 |
| - <click selector="{{WidgetSection.search_result_selectPage('home')}}" stepKey="clickOnDisplayedResult"/> |
| 50 | + <click selector="{{WidgetSection.SearchResultSelectPage('home')}}" stepKey="clickOnDisplayedResult"/> |
56 | 51 | <click selector="{{WidgetSection.InsertWidget}}" stepKey="clickOnInsertWidget"/>
|
57 |
| - <waitForElementVisible selector="{{CmsNewPagePageActionsSection.savePageBtn}}" stepKey="waitForInsertWidgetDialogToDisappear" time="5"/> |
58 |
| - <click selector="{{CmsNewPagePageActionsSection.savePageBtn}}" stepKey="clickSavePage"/> |
| 52 | + <waitForElementVisible selector="{{CmsNewPagePageActionsSection.saveAndContinueEdit}}" stepKey="waitForInsertWidgetDialogToDisappear" time="5"/> |
| 53 | + <click selector="{{CmsNewPagePageActionsSection.saveAndContinueEdit}}" stepKey="clickSavePage"/> |
59 | 54 | <waitForElementVisible selector="{{CmsPagesPageActionsSection.savePageSuccessMessage}}" stepKey="waitForSuccessMessageLoggedOut" time="5"/>
|
60 | 55 | <see userInput="You saved the page." stepKey="seeSuccessMessage"/>
|
61 |
| - |
62 | 56 | </before>
|
63 | 57 | <after>
|
64 | 58 | <actionGroup ref="AdminOpenCMSPagesGridActionGroup" stepKey="openCMSPagesGridActionGroupToReset"/>
|
65 | 59 | <actionGroup ref="ClearFiltersAdminDataGridActionGroup" stepKey="clearGridFiltersToReset"/>
|
66 | 60 | <actionGroup ref="SortByIdDescendingActionGroup" stepKey="sortGridByIdDescendingToReset"/>
|
67 | 61 | <click selector="{{CmsPagesPageActionsSection.select('home')}}" stepKey="clickSelectCMSPageToReset" />
|
68 |
| - |
69 | 62 | <!-- Pre-condition 4- Update the page in grid To Reset-->
|
70 | 63 | <click selector="{{CmsPagesPageActionsSection.edit('home')}}" stepKey="OpenThePageToBeEditedToReset"/>
|
71 | 64 | <waitForPageLoad stepKey="waitForPageLoadPostSelectingHomePageToReset"/>
|
72 | 65 | <waitForElementVisible selector="{{CmsNewPagePageContentSection.header}}" stepKey="waitForContentTabForPageToBeVisibleToReset"/>
|
73 |
| - |
74 | 66 | <!-- Pre-condition 5- Expand the Content section > Insert Widget To Reset -->
|
75 | 67 | <click selector="{{CmsNewPagePageContentSection.header}}" stepKey="clickExpandContentTabForPageToReset"/>
|
76 | 68 | <waitForElementVisible selector="{{CmsNewPagePageActionsSection.insertWidget}}" stepKey="waitForTheInsertWidgetButtonToDisplayToReset"/>
|
77 | 69 | <clearField selector="{{CmsNewPagePageContentSection.content}}" stepKey="clearWidgetTextFieldToReset"/>
|
78 | 70 | <fillField selector="{{CmsNewPagePageContentSection.content}}" userInput="<p>CMS homepage content goes here.</p>" stepKey="InputDefaultValuesInWidgetTextFieldToReset"/>
|
79 |
| - <waitForElementVisible selector="{{CmsNewPagePageActionsSection.savePageBtn}}" stepKey="waitForInsertWidgetDialogToDisappearToReset" time="5"/> |
80 |
| - <click selector="{{CmsNewPagePageActionsSection.savePageBtn}}" stepKey="clickSavePageToReset"/> |
| 71 | + <waitForElementVisible selector="{{CmsNewPagePageActionsSection.saveAndContinueEdit}}" stepKey="waitForInsertWidgetDialogToDisappearToReset" time="5"/> |
| 72 | + <click selector="{{CmsNewPagePageActionsSection.saveAndContinueEdit}}" stepKey="clickSavePageToReset"/> |
81 | 73 | <waitForElementVisible selector="{{CmsPagesPageActionsSection.savePageSuccessMessage}}" stepKey="waitForSuccessMessageLoggedOutToReset" time="5"/>
|
82 | 74 | <see userInput="You saved the page." stepKey="seeSuccessMessageToReset"/>
|
83 | 75 | <magentoCLI command="config:set cms/pagebuilder/enabled 1" stepKey="enablePageBuilder"/>
|
84 | 76 | <magentoCLI command="config:set cms/wysiwyg/enabled enabled" stepKey="enableWYSIWYG"/>
|
85 |
| - <magentoCLI stepKey="reindex" command="indexer:reindex"/> |
86 |
| - <magentoCLI stepKey="flushCache" command="cache:flush"/> |
| 77 | + <magentoCLI stepKey="reindexPostEnablingThePageBuilder" command="indexer:reindex"/> |
| 78 | + <magentoCLI stepKey="flushCachePostEnablingThePageBuilder" command="cache:flush"/> |
87 | 79 | <actionGroup ref="AdminLogoutActionGroup" stepKey="logout"/>
|
88 | 80 | </after>
|
89 | 81 | <actionGroup ref="StorefrontOpenHomePageActionGroup" stepKey="navigateToHomePage"/>
|
90 | 82 | <waitForPageLoad stepKey="waitToLoadHomePage"/>
|
91 |
| - <grabTextFrom selector="{{StorefrontCMSPageSection.widgetContent_Apostrophe('Custom texts')}}" stepKey="grabContentFromWidget"/> |
92 |
| - |
| 83 | + <grabTextFrom selector="{{StorefrontCMSPageSection.widgetContentApostrophe('Custom texts')}}" stepKey="grabContentFromWidget"/> |
93 | 84 | <assertEquals message="Asserts the widget contains apostrophe On storefront" stepKey="assertApostropheOnWidgetText">
|
94 | 85 | <expectedResult type="string">Custom texts' for tests</expectedResult>
|
95 | 86 | <actualResult type="string">{$grabContentFromWidget}</actualResult>
|
|
0 commit comments