-
Notifications
You must be signed in to change notification settings - Fork 9.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ENGCOM-8424: Resolve Login As Customer Log - Logged In must be DateRa…
…nge Filter instead of Text filter, Date display wrong timezone issue30328 #30329
- Loading branch information
Showing
4 changed files
with
84 additions
and
3 deletions.
There are no files selected for viewing
22 changes: 22 additions & 0 deletions
22
...ustomer/Test/Mftf/ActionGroup/AdminLoginAsCustomerLogFilterDatePickerTodayActionGroup.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!-- | ||
/** | ||
* Copyright © Magento, Inc. All rights reserved. | ||
* See COPYING.txt for license details. | ||
*/ | ||
--> | ||
|
||
<actionGroups xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/actionGroupSchema.xsd"> | ||
<actionGroup name="AdminLoginAsCustomerLogFilterDatePickerTodayActionGroup"> | ||
<annotations> | ||
<description>Filter Login as Customer Log grid by current day.</description> | ||
</annotations> | ||
<click selector="{{AdminLoginAsCustomerLogToolbarSection.filters}}" stepKey="clickFilters"/> | ||
<click selector="{{AdminLoginAsCustomerLogToolbarSection.DatePickerFrom}}" stepKey="clickFromDate"/> | ||
<click selector="{{AdminLoginAsCustomerLogToolbarSection.todayDate}}" stepKey="clickToToday"/> | ||
<click selector="{{AdminLoginAsCustomerLogToolbarSection.DatePickerTo}}" stepKey="clickToDate"/> | ||
<click selector="{{AdminLoginAsCustomerLogToolbarSection.todayDate}}" stepKey="clickTodayDateAgain"/> | ||
<click selector="{{AdminProductGridFilterSection.applyFilters}}" stepKey="clickApplyFilters"/> | ||
</actionGroup> | ||
</actionGroups> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
54 changes: 54 additions & 0 deletions
54
app/code/Magento/LoginAsCustomer/Test/Mftf/Test/AdminLoginAsCustomerLoggingFilterTest.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!-- | ||
/** | ||
* Copyright © Magento, Inc. All rights reserved. | ||
* See COPYING.txt for license details. | ||
*/ | ||
--> | ||
|
||
<tests xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/testSchema.xsd"> | ||
<test name="AdminLoginAsCustomerLoggingFilterTest"> | ||
<annotations> | ||
<features value="Login as Customer logs"/> | ||
<stories value="Filter by date login as customer logs"/> | ||
<title value="Filter by date login as customer logs"/> | ||
<description value="Filter by date should be from/to"/> | ||
<severity value="AVERAGE"/> | ||
<group value="login_as_customer"/> | ||
<testCaseId value="MC-38920"/> | ||
</annotations> | ||
<before> | ||
<magentoCLI command="config:set {{LoginAsCustomerConfigDataEnabled.path}} 1" | ||
stepKey="enableLoginAsCustomer"/> | ||
<magentoCLI command="config:set {{LoginAsCustomerStoreViewLogin.path}} 0" | ||
stepKey="enableLoginAsCustomerAutoDetection"/> | ||
<createData entity="Simple_US_Customer_Assistance_Allowed" stepKey="createFirstCustomer"/> | ||
<actionGroup ref="AdminLoginActionGroup" stepKey="loginAsDefaultUser"/> | ||
</before> | ||
<after> | ||
<actionGroup ref="ClearFiltersAdminDataGridActionGroup" stepKey="clearFilterAfter"/> | ||
<actionGroup ref="AdminLogoutActionGroup" stepKey="logoutAsDefaultAdmin"/> | ||
<deleteData createDataKey="createFirstCustomer" stepKey="deleteFirstCustomer"/> | ||
<magentoCLI command="config:set {{LoginAsCustomerConfigDataEnabled.path}} 0" | ||
stepKey="disableLoginAsCustomer"/> | ||
</after> | ||
<!-- Login into First Customer account --> | ||
<actionGroup ref="AdminLoginAsCustomerLoginFromCustomerPageActionGroup" | ||
stepKey="loginAsFirstCustomerByDefaultAdmin"> | ||
<argument name="customerId" value="$$createFirstCustomer.id$$"/> | ||
</actionGroup> | ||
<actionGroup ref="StorefrontSignOutAndCloseTabActionGroup" stepKey="signOutFirstCustomerDefaultAdmin"/> | ||
<!-- Navigate to Login as Customer Log page --> | ||
<actionGroup ref="AdminOpenLoginAsCustomerLogActionGroup" stepKey="gotoLoginAsCustomerLog"/> | ||
<!-- Setup date filters --> | ||
<actionGroup ref="ClearFiltersAdminDataGridActionGroup" stepKey="clearFilter"/> | ||
<actionGroup ref="AdminLoginAsCustomerLogFilterDatePickerTodayActionGroup" stepKey="filterByToday"/> | ||
<!-- Perform assertions --> | ||
<actionGroup ref="AdminAssertLoginAsCustomerLogRecordActionGroup" stepKey="verifyDefaultAdminFirstCustomerLogRecord"> | ||
<argument name="rowNumber" value="1"/> | ||
<argument name="adminId" value="1"/> | ||
<argument name="customerId" value="$$createFirstCustomer.id$$"/> | ||
</actionGroup> | ||
</test> | ||
</tests> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters