|
| 1 | +<?xml version="1.0" encoding="UTF-8"?> |
| 2 | +<!-- |
| 3 | + /** |
| 4 | + * Copyright © Magento, Inc. All rights reserved. |
| 5 | + * See COPYING.txt for license details. |
| 6 | + */ |
| 7 | +--> |
| 8 | +<tests xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
| 9 | + xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/testSchema.xsd"> |
| 10 | + <test name="AdminCMSPageInlineEditTest"> |
| 11 | + <annotations> |
| 12 | + <features value="Cms"/> |
| 13 | + <stories value="Inline Edit Cms Page"/> |
| 14 | + <title value="Inline changing CMS page custom theme will be applied with proper dates"/> |
| 15 | + <description value="Verify that Merchant can inline edit CMS pages in grid and dates will be proper"/> |
| 16 | + <severity value="MAJOR"/> |
| 17 | + <testCaseId value="MC-40900" /> |
| 18 | + <useCaseId value="MC-39953"/> |
| 19 | + <group value="cms"/> |
| 20 | + <group value="ui"/> |
| 21 | + </annotations> |
| 22 | + <before> |
| 23 | + <actionGroup ref="AdminLoginActionGroup" stepKey="loginAsAdmin"/> |
| 24 | + </before> |
| 25 | + <after> |
| 26 | + <actionGroup ref="AdminOpenCMSPagesGridActionGroup" stepKey="navigateToCmsPageGridAgain"/> |
| 27 | + <actionGroup ref="ClearFiltersAdminDataGridActionGroup" stepKey="resetGridFilters"/> |
| 28 | + <actionGroup ref="AdminLogoutActionGroup" stepKey="logout"/> |
| 29 | + </after> |
| 30 | + <generateDate date="now" format="m/d/Y" stepKey="today"/> |
| 31 | + <generateDate date="+1 day" format="m/d/Y" stepKey="tomorrow"/> |
| 32 | + <generateDate date="now" format="M j, Y" stepKey="todayFormatted"/> |
| 33 | + <generateDate date="+1 day" format="M j, Y" stepKey="tomorrowFormatted"/> |
| 34 | + <generateDate date="+100 day" format="m/d/Y" stepKey="newDateFrom"/> |
| 35 | + <generateDate date="+101 day" format="m/d/Y" stepKey="newDateTo"/> |
| 36 | + <generateDate date="+100 day" format="M j, Y" stepKey="newDateFromFormatted"/> |
| 37 | + <generateDate date="+101 day" format="M j, Y" stepKey="newDateToFormatted"/> |
| 38 | + <actionGroup ref="AdminOpenCMSPagesGridActionGroup" stepKey="navigateToCmsPageGrid"/> |
| 39 | + <actionGroup ref="AdminGridColumnShowActionGroup" stepKey="showCustomerEmailColumn"> |
| 40 | + <argument name="columnLabel" value="Custom design from"/> |
| 41 | + </actionGroup> |
| 42 | + <actionGroup ref="AdminGridColumnShowActionGroup" stepKey="showCustomerEmailColumnTwo"> |
| 43 | + <argument name="columnLabel" value="Custom design to"/> |
| 44 | + </actionGroup> |
| 45 | + <actionGroup ref="ClearFiltersAdminDataGridActionGroup" stepKey="clickClearFilters"/> |
| 46 | + <fillField selector="{{AdminDataGridHeaderSection.search}}" userInput="404 Not Found" stepKey="fillKeywordSearchFieldWithSecondCustomerEmail"/> |
| 47 | + <click selector="{{AdminDataGridHeaderSection.submitSearch}}" stepKey="clickKeywordSearch"/> |
| 48 | + <see userInput="404 Not Found" selector="{{AdminGridRow.rowOne}}" stepKey="seeFirstCmsPageAfterFiltering"/> |
| 49 | + <click selector="{{CmsPagesPageActionsSection.firstItemSelectButton}}" stepKey="clickOnSelectButton"/> |
| 50 | + <click selector="{{CmsPagesPageActionsSection.firstItemEditButton}}" stepKey="clickOnEditButton"/> |
| 51 | + <click selector="{{CmsDesignSection.customDesignUpdateTab}}" stepKey="clickOnDesignTab"/> |
| 52 | + <waitForElementVisible selector="{{CmsDesignSection.customDesignFrom}}" stepKey="waitForLayoutDropDown" /> |
| 53 | + <fillField selector="{{CmsDesignSection.customDesignFrom}}" userInput="{$today}" stepKey="fillDateFrom"/> |
| 54 | + <fillField selector="{{CmsDesignSection.customDesignTo}}" userInput="{$tomorrow}" stepKey="fillDateTo"/> |
| 55 | + <selectOption selector="{{CmsDesignSection.customTheme}}" userInput="{{MagentoBlankTheme.name}}" stepKey="fillCustomTheme"/> |
| 56 | + <actionGroup ref="SaveCmsPageActionGroup" stepKey="saveCmsPage"/> |
| 57 | + <see userInput="{$todayFormatted}" selector="{{AdminOrdersGridSection.gridCell('2','Custom design from')}}" stepKey="assertCustomDesignFrom"/> |
| 58 | + <see userInput="{$tomorrowFormatted}" selector="{{AdminOrdersGridSection.gridCell('2','Custom design to')}}" stepKey="assertCustomDesignTo"/> |
| 59 | + <click selector="{{AdminDataGridTableSection.rows}}" stepKey="clickEdit"/> |
| 60 | + <waitForElementVisible selector="{{AdminCmsPageGridInlineEditSection.customLayout}}" stepKey="waitForDate"/> |
| 61 | + <selectOption userInput="2 columns with right bar" selector="{{AdminCmsPageGridInlineEditSection.customLayout}}" stepKey="changeLayoutFromGrid"/> |
| 62 | + <click selector="{{AdminCmsPageGridInlineEditSection.savePageButton}}" stepKey="clickSaveFromGrid"/> |
| 63 | + <see userInput="{$todayFormatted}" selector="{{AdminOrdersGridSection.gridCell('2','Custom design from')}}" stepKey="assertCustomDesignFrom2"/> |
| 64 | + <see userInput="{$tomorrowFormatted}" selector="{{AdminOrdersGridSection.gridCell('2','Custom design to')}}" stepKey="assertCustomDesignTo2"/> |
| 65 | + <click selector="{{AdminDataGridTableSection.rows}}" stepKey="clickEdit2"/> |
| 66 | + <waitForElementVisible selector="{{AdminCmsPageGridInlineEditSection.customLayout}}" stepKey="waitForDate2"/> |
| 67 | + <selectOption userInput="2 columns with left bar" selector="{{AdminCmsPageGridInlineEditSection.customLayout}}" stepKey="changeLayoutFromGrid2"/> |
| 68 | + <click selector="{{AdminCmsPageGridInlineEditSection.savePageButton}}" stepKey="clickSaveFromGrid2"/> |
| 69 | + <see userInput="{$todayFormatted}" selector="{{AdminOrdersGridSection.gridCell('2','Custom design from')}}" stepKey="assertCustomDesignFrom3"/> |
| 70 | + <see userInput="{$tomorrowFormatted}" selector="{{AdminOrdersGridSection.gridCell('2','Custom design to')}}" stepKey="assertCustomDesignTo3"/> |
| 71 | + <click selector="{{AdminDataGridTableSection.rows}}" stepKey="clickEdit3"/> |
| 72 | + <waitForElementVisible selector="{{AdminCmsPageGridInlineEditSection.customDesignFrom}}" stepKey="waitForDate3"/> |
| 73 | + <fillField selector="{{AdminCmsPageGridInlineEditSection.customDesignFrom}}" userInput="{$newDateFrom}" stepKey="fillDateFromInGrid"/> |
| 74 | + <fillField selector="{{AdminCmsPageGridInlineEditSection.customDesignTo}}" userInput="{$newDateTo}" stepKey="fillDateToInGrid"/> |
| 75 | + <click selector="{{AdminCmsPageGridInlineEditSection.savePageButton}}" stepKey="clickSaveFromGrid3"/> |
| 76 | + <see userInput="{$newDateFromFormatted}" selector="{{AdminOrdersGridSection.gridCell('2','Custom design from')}}" stepKey="assertCustomDesignFrom4"/> |
| 77 | + <see userInput="{$newDateToFormatted}" selector="{{AdminOrdersGridSection.gridCell('2','Custom design to')}}" stepKey="assertCustomDesignTo4"/> |
| 78 | + </test> |
| 79 | +</tests> |
0 commit comments