|
10 | 10 | <test name="AdminCMSPageInlineEditTest"> |
11 | 11 | <annotations> |
12 | 12 | <features value="Cms"/> |
13 | | - <stories value="Edit CMS Page"/> |
| 13 | + <stories value="Inline Edit Cms Page"/> |
14 | 14 | <title value="Inline changing CMS page custom theme will be applied with proper dates"/> |
15 | 15 | <description value="Verify that Merchant can inline edit CMS pages in grid and dates will be proper"/> |
16 | | - <testCaseId value="MC-40900" /> |
17 | 16 | <severity value="MAJOR"/> |
| 17 | + <testCaseId value="MC-40900" /> |
| 18 | + <useCaseId value="MC-39953"/> |
18 | 19 | <group value="cms"/> |
19 | 20 | <group value="ui"/> |
20 | 21 | </annotations> |
21 | 22 | <before> |
22 | 23 | <actionGroup ref="AdminLoginActionGroup" stepKey="loginAsAdmin"/> |
23 | 24 | </before> |
24 | 25 | <after> |
| 26 | + <actionGroup ref="AdminOpenCMSPagesGridActionGroup" stepKey="navigateToCmsPageGridAgain"/> |
25 | 27 | <actionGroup ref="ClearFiltersAdminDataGridActionGroup" stepKey="resetGridFilters"/> |
26 | 28 | <actionGroup ref="AdminLogoutActionGroup" stepKey="logout"/> |
27 | 29 | </after> |
28 | | - <generateDate date="+0 day" format="m/d/Y" stepKey="today"/> |
| 30 | + <generateDate date="now" format="m/d/Y" stepKey="today"/> |
29 | 31 | <generateDate date="+1 day" format="m/d/Y" stepKey="tomorrow"/> |
30 | | - <generateDate date="+0 day" format="M j, Y" stepKey="todayFormatted"/> |
| 32 | + <generateDate date="now" format="M j, Y" stepKey="todayFormatted"/> |
31 | 33 | <generateDate date="+1 day" format="M j, Y" stepKey="tomorrowFormatted"/> |
32 | 34 | <generateDate date="+100 day" format="m/d/Y" stepKey="newDateFrom"/> |
33 | 35 | <generateDate date="+101 day" format="m/d/Y" stepKey="newDateTo"/> |
34 | 36 | <generateDate date="+100 day" format="M j, Y" stepKey="newDateFromFormatted"/> |
35 | 37 | <generateDate date="+101 day" format="M j, Y" stepKey="newDateToFormatted"/> |
36 | 38 | <actionGroup ref="AdminOpenCMSPagesGridActionGroup" stepKey="navigateToCmsPageGrid"/> |
37 | | - <waitForPageLoad stepKey="waitForCmsPageGrid"/> |
38 | 39 | <actionGroup ref="AdminGridColumnShowActionGroup" stepKey="showCustomerEmailColumn"> |
39 | 40 | <argument name="columnLabel" value="Custom design from"/> |
40 | 41 | </actionGroup> |
41 | 42 | <actionGroup ref="AdminGridColumnShowActionGroup" stepKey="showCustomerEmailColumnTwo"> |
42 | 43 | <argument name="columnLabel" value="Custom design to"/> |
43 | 44 | </actionGroup> |
44 | | - <conditionalClick selector="{{AdminDataGridHeaderSection.clearFilters}}" dependentSelector="{{AdminDataGridHeaderSection.clearFilters}}" visible="true" stepKey="clickClearFilters"/> |
| 45 | + <actionGroup ref="ClearFiltersAdminDataGridActionGroup" stepKey="clickClearFilters"/> |
45 | 46 | <fillField selector="{{AdminDataGridHeaderSection.search}}" userInput="404 Not Found" stepKey="fillKeywordSearchFieldWithSecondCustomerEmail"/> |
46 | 47 | <click selector="{{AdminDataGridHeaderSection.submitSearch}}" stepKey="clickKeywordSearch"/> |
47 | | - <waitForPageLoad stepKey="waitForPageLoad"/> |
48 | 48 | <see userInput="404 Not Found" selector="{{AdminGridRow.rowOne}}" stepKey="seeFirstCmsPageAfterFiltering"/> |
49 | | - <actionGroup ref="AdminAssertNumberOfRecordsInUiGridActionGroup" stepKey="assertNumberOfRecordsInCmsPageGrid"/> |
50 | 49 | <click selector="{{CmsPagesPageActionsSection.firstItemSelectButton}}" stepKey="clickOnSelectButton"/> |
51 | 50 | <click selector="{{CmsPagesPageActionsSection.firstItemEditButton}}" stepKey="clickOnEditButton"/> |
52 | | - <waitForPageLoad stepKey="waitForEditPageLoad"/> |
53 | 51 | <click selector="{{CmsDesignSection.customDesignUpdateTab}}" stepKey="clickOnDesignTab"/> |
54 | 52 | <waitForElementVisible selector="{{CmsDesignSection.customDesignFrom}}" stepKey="waitForLayoutDropDown" /> |
55 | 53 | <fillField selector="{{CmsDesignSection.customDesignFrom}}" userInput="{$today}" stepKey="fillDateFrom"/> |
56 | 54 | <fillField selector="{{CmsDesignSection.customDesignTo}}" userInput="{$tomorrow}" stepKey="fillDateTo"/> |
57 | | - <selectOption selector="{{CmsDesignSection.customTheme}}" userInput="Magento Blank" stepKey="fillCustomTheme"/> |
58 | | - <click selector="{{CmsNewPagePageActionsSection.expandSplitButton}}" stepKey="expandButtonMenu"/> |
59 | | - <waitForElementVisible selector="{{CmsNewPagePageActionsSection.splitButtonMenu}}" stepKey="waitForSplitButtonMenuVisible"/> |
60 | | - <click selector="{{CmsNewPagePageActionsSection.savePage}}" stepKey="clickSavePage"/> |
61 | | - <see userInput="You saved the page." stepKey="seeSuccessMessage"/> |
| 55 | + <selectOption selector="{{CmsDesignSection.customTheme}}" userInput="{{MagentoBlankTheme.name}}" stepKey="fillCustomTheme"/> |
| 56 | + <actionGroup ref="SaveCmsPageActionGroup" stepKey="cxvcbcvb"/> |
62 | 57 | <see userInput="{$todayFormatted}" selector="{{AdminOrdersGridSection.gridCell('2','Custom design from')}}" stepKey="assertCustomDesignFrom"/> |
63 | 58 | <see userInput="{$tomorrowFormatted}" selector="{{AdminOrdersGridSection.gridCell('2','Custom design to')}}" stepKey="assertCustomDesignTo"/> |
64 | 59 | <click selector="{{AdminDataGridTableSection.rows}}" stepKey="clickEdit"/> |
65 | | - <waitForElementVisible selector="{{CmsDesignSection.customLayoutGrid}}" stepKey="waitForDate"/> |
66 | | - <selectOption userInput="2 columns with right bar" selector="{{CmsDesignSection.customLayoutGrid}}" stepKey="changeLayoutFromGrid"/> |
67 | | - <click selector="{{CmsDesignSection.saveInGrid}}" stepKey="clickSaveFromGrid"/> |
68 | | - <waitForPageLoad stepKey="waitForPageSave"/> |
| 60 | + <waitForElementVisible selector="{{AdminCmsGridPageInlineEditSection.customLayout}}" stepKey="waitForDate"/> |
| 61 | + <selectOption userInput="2 columns with right bar" selector="{{AdminCmsGridPageInlineEditSection.customLayout}}" stepKey="changeLayoutFromGrid"/> |
| 62 | + <click selector="{{AdminCmsGridPageInlineEditSection.savePageButton}}" stepKey="clickSaveFromGrid"/> |
69 | 63 | <see userInput="{$todayFormatted}" selector="{{AdminOrdersGridSection.gridCell('2','Custom design from')}}" stepKey="assertCustomDesignFrom2"/> |
70 | 64 | <see userInput="{$tomorrowFormatted}" selector="{{AdminOrdersGridSection.gridCell('2','Custom design to')}}" stepKey="assertCustomDesignTo2"/> |
71 | 65 | <click selector="{{AdminDataGridTableSection.rows}}" stepKey="clickEdit2"/> |
72 | | - <waitForElementVisible selector="{{CmsDesignSection.customLayoutGrid}}" stepKey="waitForDate2"/> |
73 | | - <selectOption userInput="2 columns with left bar" selector="{{CmsDesignSection.customLayoutGrid}}" stepKey="changeLayoutFromGrid2"/> |
74 | | - <click selector="{{CmsDesignSection.saveInGrid}}" stepKey="clickSaveFromGrid2"/> |
75 | | - <waitForPageLoad stepKey="waitForPageSave2"/> |
| 66 | + <waitForElementVisible selector="{{AdminCmsGridPageInlineEditSection.customLayout}}" stepKey="waitForDate2"/> |
| 67 | + <selectOption userInput="2 columns with left bar" selector="{{AdminCmsGridPageInlineEditSection.customLayout}}" stepKey="changeLayoutFromGrid2"/> |
| 68 | + <click selector="{{AdminCmsGridPageInlineEditSection.savePageButton}}" stepKey="clickSaveFromGrid2"/> |
76 | 69 | <see userInput="{$todayFormatted}" selector="{{AdminOrdersGridSection.gridCell('2','Custom design from')}}" stepKey="assertCustomDesignFrom3"/> |
77 | 70 | <see userInput="{$tomorrowFormatted}" selector="{{AdminOrdersGridSection.gridCell('2','Custom design to')}}" stepKey="assertCustomDesignTo3"/> |
78 | 71 | <click selector="{{AdminDataGridTableSection.rows}}" stepKey="clickEdit3"/> |
79 | | - <waitForElementVisible selector="{{CmsDesignSection.customDesignFromGrid}}" stepKey="waitForDate3"/> |
80 | | - <fillField selector="{{CmsDesignSection.customDesignFromGrid}}" userInput="{$newDateFrom}" stepKey="fillDateFromInGrid"/> |
81 | | - <fillField selector="{{CmsDesignSection.customDesignToGrid}}" userInput="{$newDateTo}" stepKey="fillDateToInGrid"/> |
82 | | - <click selector="{{CmsDesignSection.saveInGrid}}" stepKey="clickSaveFromGrid3"/> |
83 | | - <waitForPageLoad stepKey="waitForPageSave3"/> |
| 72 | + <waitForElementVisible selector="{{AdminCmsGridPageInlineEditSection.customDesignFrom}}" stepKey="waitForDate3"/> |
| 73 | + <fillField selector="{{AdminCmsGridPageInlineEditSection.customDesignFrom}}" userInput="{$newDateFrom}" stepKey="fillDateFromInGrid"/> |
| 74 | + <fillField selector="{{AdminCmsGridPageInlineEditSection.customDesignTo}}" userInput="{$newDateTo}" stepKey="fillDateToInGrid"/> |
| 75 | + <click selector="{{AdminCmsGridPageInlineEditSection.savePageButton}}" stepKey="clickSaveFromGrid3"/> |
84 | 76 | <see userInput="{$newDateFromFormatted}" selector="{{AdminOrdersGridSection.gridCell('2','Custom design from')}}" stepKey="assertCustomDesignFrom4"/> |
85 | 77 | <see userInput="{$newDateToFormatted}" selector="{{AdminOrdersGridSection.gridCell('2','Custom design to')}}" stepKey="assertCustomDesignTo4"/> |
86 | 78 | </test> |
|
0 commit comments