|
| 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 | + |
| 9 | +<tests xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
| 10 | + xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/testSchema.xsd"> |
| 11 | + <test name="DateFiltersInCustomInstanceTimeZoneTest"> |
| 12 | + <annotations> |
| 13 | + <features value="Config"/> |
| 14 | + <stories value="Verify that Date filters of new Data Grids in Admin provide relevant search results if custom Instance Timezone is set"/> |
| 15 | + <title value="Verify DateFilters"/> |
| 16 | + <description value="Verify that Date filters of new Data Grids in Admin provide relevant search results if custom Instance Timezone is set"/> |
| 17 | + <severity value="MAJOR"/> |
| 18 | + <testCaseId value="AC-4300"/> |
| 19 | + </annotations> |
| 20 | + <before> |
| 21 | + <!--Login To Admin panel--> |
| 22 | + <actionGroup ref="AdminLoginActionGroup" stepKey="loginAsAdmin"/> |
| 23 | + <!-- Go to *General > General > Locale Options* section --> |
| 24 | + <actionGroup ref="AdminNavigateToDefaultLocaleSettingActionGroup" stepKey="redirect"/> |
| 25 | + <!--Set needed Timezone--> |
| 26 | + <selectOption userInput="New Zealand Standard Time (Antarctica/McMurdo)" selector="{{LocaleOptionsSection.timeZoneDropdown}}" stepKey="selectOption1"/> |
| 27 | + <actionGroup ref="AdminSaveConfigActionGroup" stepKey="saveConfiguration"/> |
| 28 | + <actionGroup ref="AdminLogoutActionGroup" stepKey="logoutAsAdmin"/> |
| 29 | + </before> |
| 30 | + <after> |
| 31 | + <actionGroup ref="AdminNavigateToDefaultLocaleSettingActionGroup" stepKey="redirectAgain"/> |
| 32 | + <selectOption userInput="Central Standard Time (America/Chicago)" selector="{{LocaleOptionsSection.timeZoneDropdown}}" stepKey="selectDefaultoption"/> |
| 33 | + <actionGroup ref="AdminSaveConfigActionGroup" stepKey="saveConfiguration"/> |
| 34 | + <!-- Delete customer --> |
| 35 | + <actionGroup ref="AdminDeleteCustomerActionGroup" stepKey="deleteCustomer"> |
| 36 | + <argument name="customerEmail" value="Simple_US_Customer.email"/> |
| 37 | + </actionGroup> |
| 38 | + <actionGroup ref="AdminLogoutActionGroup" stepKey="logoutAsAdmin"/> |
| 39 | + </after> |
| 40 | + <!-- Create Customer --> |
| 41 | + <actionGroup ref="SignUpNewUserFromStorefrontActionGroup" stepKey="signUpNewUser"> |
| 42 | + <argument name="Customer" value="Simple_US_Customer"/> |
| 43 | + </actionGroup> |
| 44 | + <!--Login to Admin--> |
| 45 | + <actionGroup ref="AdminLoginActionGroup" stepKey="adminLogin"/> |
| 46 | + <!--Go to *Customers > All Customers* page--> |
| 47 | + <actionGroup ref="AdminNavigateMenuActionGroup" stepKey="navigateToAllCustomerPage"> |
| 48 | + <argument name="menuUiId" value="{{AdminMenuCustomers.dataUiId}}"/> |
| 49 | + <argument name="submenuUiId" value="{{AdminMenuCustomersAllCustomers.dataUiId}}"/> |
| 50 | + </actionGroup> |
| 51 | + <!--Clear Filters if Present on Customer Grid Page--> |
| 52 | + <conditionalClick selector="{{AdminDataGridHeaderSection.clearFilters}}" dependentSelector="{{AdminDataGridHeaderSection.clearFilters}}" visible="true" stepKey="clickOnButtonToRemoveFiltersIfPresent"/> |
| 53 | + <!-- Click on Filters--> |
| 54 | + <click selector="{{AdminDataGridHeaderSection.filters}}" stepKey="clickOnFilters"/> |
| 55 | + <!-- Generate Today's Date to set in filter--> |
| 56 | + <!--<generateDate date="now" format="m/d/Y" stepKey="today"/>--> |
| 57 | + <generateDate date="now" format="m/j/Y" timezone="Antarctica/McMurdo" stepKey="today"/> |
| 58 | + <!--Set the *Customer Since* filter From Date--> |
| 59 | + <fillField selector="{{AdminDataGridHeaderSection.dateFilterFrom}}" userInput="{$today}" stepKey="fillDateFrom"/> |
| 60 | + <!--Set the *Customer Since* filter To Date--> |
| 61 | + <fillField selector="{{AdminDataGridHeaderSection.dateFilterTo}}" userInput="{$today}" stepKey="fillDateto"/> |
| 62 | + <!-- Apply Filter--> |
| 63 | + <actionGroup ref="AdminGridFilterApplyActionGroup" stepKey="applyFilter"/> |
| 64 | + <!--Customer *A* is present in the grid--> |
| 65 | + <actionGroup ref="AdminAssertCustomerInCustomersGrid" stepKey="assertCustomer1InGrid"> |
| 66 | + <argument name="text" value="{{Simple_US_Customer.email}}"/> |
| 67 | + <argument name="row" value="1"/> |
| 68 | + </actionGroup> |
| 69 | + </test> |
| 70 | +</tests> |
0 commit comments