|
| 1 | +<?xml version="1.0" encoding="UTF-8"?> |
| 2 | +<!-- |
| 3 | + /** |
| 4 | + * Copyright 2024 Adobe |
| 5 | + * All Rights Reserved. |
| 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="AdminCheckNewGridFilterDateTimezonesTest"> |
| 11 | + <annotations> |
| 12 | + <features value="Order"/> |
| 13 | + <stories value="Check New Grid Filter Date Timezones"/> |
| 14 | + <title value="Admin should be able to check new grid filter date timezones."/> |
| 15 | + <description value="Check new grid filter date timezones."/> |
| 16 | + <severity value="BLOCKER"/> |
| 17 | + <testCaseId value="AC-4662"/> |
| 18 | + <group value="Order"/> |
| 19 | + <group value="cloud"/> |
| 20 | + </annotations> |
| 21 | + <before> |
| 22 | + <actionGroup ref="AdminLoginActionGroup" stepKey="loginAsAdmin"/> |
| 23 | + </before> |
| 24 | + <after> |
| 25 | + <actionGroup ref="AdminLogoutActionGroup" stepKey="logoutFromAdmin"/> |
| 26 | + </after> |
| 27 | + <actionGroup ref="AdminOpenGeneralConfigurationPageActionGroup" stepKey="goToGeneralConfig"/> |
| 28 | + <wait stepKey="wait" time="10"/> |
| 29 | + <conditionalClick selector="{{LocaleOptionsSection.sectionHeader}}" dependentSelector="{{LocaleOptionsSection.timezone}}" visible="false" stepKey="openLocaleSection"/> |
| 30 | + <grabValueFrom selector="{{LocaleOptionsSection.timezone}}" stepKey="originalTimezone"/> |
| 31 | + <selectOption selector="{{LocaleOptionsSection.timezone}}" userInput="America/Los_Angeles" stepKey="setTimezone"/> |
| 32 | + <amOnPage url="{{AdminOrdersPage.url}}" stepKey="onOrdersPage"/> |
| 33 | + <generateDate date="-1 year" timezone="America/Chicago" format="m/j/Y g:i A" stepKey="generateStartDate"/> |
| 34 | + <generateDate date="+1 year" timezone="America/Chicago" format="m/j/Y g:i A" stepKey="generateEndDate"/> |
| 35 | + <actionGroup ref="FilterOrderGridByPurchaseDateActionGroup" stepKey="filterOrderByPurchaseDate"> |
| 36 | + <argument name="from" value="{$generateStartDate}" /> |
| 37 | + <argument name="to" value="{$generateEndDate}" /> |
| 38 | + </actionGroup> |
| 39 | + </test> |
| 40 | +</tests> |
0 commit comments