Skip to content

Commit 605cc52

Browse files
MFTF tests updates.
1 parent c0a4ac2 commit 605cc52

File tree

41 files changed

+404
-213
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+404
-213
lines changed

app/code/Magento/LoginAsCustomer/Test/Mftf/ActionGroup/AdminAssertContainsMessageOrderCreatedByAdminActionGroup.xml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,19 @@
88

99
<actionGroups xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
1010
xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/actionGroupSchema.xsd">
11-
<!-- Assert Admin Order page contains message about Order created by a Store Administrator -->
1211
<actionGroup name="AdminAssertContainsMessageOrderCreatedByAdminActionGroup">
12+
<annotations>
13+
<description>Assert Admin Order page contains message about Order created by a Store Administrator.
14+
</description>
15+
</annotations>
1316
<arguments>
1417
<argument name="orderId" type="string"/>
15-
<argument name="adminUserFullName" defaultValue="Magento User" type="string"/>
18+
<argument name="adminUserFullName" type="string"/>
1619
</arguments>
20+
1721
<amOnPage url="{{AdminOrderPage.url(orderId)}}" stepKey="gotoOrderPage"/>
1822
<waitForPageLoad stepKey="waitForPageLoad"/>
19-
<see userInput="Order Placed by {{adminUserFullName}} using Login as Customer" stepKey="seeMessageOrderCreatedByAdmin"/>
23+
<see userInput="Order Placed by {{adminUserFullName}} using Login as Customer"
24+
stepKey="seeMessageOrderCreatedByAdmin"/>
2025
</actionGroup>
2126
</actionGroups>
Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,11 @@
88

99
<actionGroups xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
1010
xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/actionGroupSchema.xsd">
11-
<!-- Verify Login As Customer config section is not available by direct url -->
12-
<actionGroup name="AssertAdminLoginAsCustomerConfigNotAvailableDirectlyActionGroup">
11+
<actionGroup name="AdminAssertLoginAsCustomerConfigNotAvailableDirectlyActionGroup">
12+
<annotations>
13+
<description>Verify Login As Customer config section is not available by direct url.</description>
14+
</annotations>
15+
1316
<amOnPage url="{{AdminLoginAsCustomerConfigPage.url}}" stepKey="navigateToLoginAsCustomerConfigSection"/>
1417
<waitForPageLoad stepKey="waitForPageLoad"/>
1518
<seeInCurrentUrl url="admin/system_config/index" stepKey="seeRedirectToConfigIndexPage"/>
Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,11 @@
88

99
<actionGroups xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
1010
xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/actionGroupSchema.xsd">
11-
<!-- Verify no Login As Customer config section available -->
12-
<actionGroup name="AssertAdminLoginAsCustomerConfigNotVisibleActionGroup">
11+
<actionGroup name="AdminAssertLoginAsCustomerConfigNotVisibleActionGroup">
12+
<annotations>
13+
<description>Verify no Login As Customer config section available.</description>
14+
</annotations>
15+
1316
<!-- TODO: update -->
1417
<dontSee userInput="Login As Customer" stepKey="dontSeeLoginAsCustomerItem"/>
1518
</actionGroup>

app/code/Magento/LoginAsCustomer/Test/Mftf/ActionGroup/AdminAssertLoginAsCustomerLogRecordActionGroup.xml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,20 @@
88

99
<actionGroups xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
1010
xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/actionGroupSchema.xsd">
11-
<!-- Assert Login As Customer Log record is correct -->
1211
<actionGroup name="AdminAssertLoginAsCustomerLogRecordActionGroup">
12+
<annotations>
13+
<description>Assert Login As Customer Log record is correct.</description>
14+
</annotations>
1315
<arguments>
1416
<argument name="rowNumber" type="string"/>
1517
<argument name="adminId" type="string"/>
1618
<argument name="customerId" type="string"/>
1719
</arguments>
20+
1821
<seeInCurrentUrl url="{{AdminLoginAsCustomerLogPage.url}}" stepKey="checkUrl"/>
19-
<see selector="{{AdminLoginAsCustomerLogGridSection.adminIdInRow(rowNumber)}}" userInput="{{adminId}}" stepKey="seeCorrectAdminId"/>
20-
<see selector="{{AdminLoginAsCustomerLogGridSection.customerIdInRow(rowNumber)}}" userInput="{{customerId}}" stepKey="seeCorrectCustomerId"/>
22+
<see selector="{{AdminLoginAsCustomerLogGridSection.adminIdInRow(rowNumber)}}" userInput="{{adminId}}"
23+
stepKey="seeCorrectAdminId"/>
24+
<see selector="{{AdminLoginAsCustomerLogGridSection.customerIdInRow(rowNumber)}}" userInput="{{customerId}}"
25+
stepKey="seeCorrectCustomerId"/>
2126
</actionGroup>
2227
</actionGroups>

app/code/Magento/LoginAsCustomer/Test/Mftf/ActionGroup/AdminEditUserRoleActionGroup.xml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,14 @@
77
-->
88
<actionGroups xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
99
xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/actionGroupSchema.xsd">
10-
<!-- Open User Role resources for edit -->
1110
<actionGroup name="AdminEditUserRoleActionGroup">
11+
<annotations>
12+
<description>Open User Role resources for edit.</description>
13+
</annotations>
1214
<arguments>
1315
<argument name="roleName" type="string"/>
1416
</arguments>
17+
1518
<amOnPage url="{{AdminRolesPage.url}}" stepKey="navigateToUserRolesGrid"/>
1619
<fillField selector="{{AdminRoleGridSection.roleNameFilterTextField}}" userInput="{{roleName}}"
1720
stepKey="enterRoleName"/>

app/code/Magento/LoginAsCustomer/Test/Mftf/ActionGroup/AdminFilterLoginAsCustomerLogActionGroup.xml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,17 +8,22 @@
88

99
<actionGroups xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
1010
xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/actionGroupSchema.xsd">
11-
<!-- Filter Login As Customer Log records -->
1211
<actionGroup name="AdminFilterLoginAsCustomerLogActionGroup">
12+
<annotations>
13+
<description>Filter Login As Customer Log records.</description>
14+
</annotations>
1315
<arguments>
1416
<argument name="adminId" type="string"/>
1517
<argument name="customerId" type="string"/>
1618
</arguments>
19+
1720
<seeInCurrentUrl url="{{AdminLoginAsCustomerLogPage.url}}" stepKey="checkUrl"/>
1821
<click selector="{{AdminLoginAsCustomerLogToolbarSection.resetFilter}}" stepKey="resetFilters"/>
1922
<waitForLoadingMaskToDisappear stepKey="waitForResetFilter"/>
20-
<fillField selector="{{AdminLoginAsCustomerLogFiltersSection.adminId}}" userInput="{{adminId}}" stepKey="fillAdminId"/>
21-
<fillField selector="{{AdminLoginAsCustomerLogFiltersSection.customerId}}" userInput="{{customerId}}" stepKey="fillCustomerId"/>
23+
<fillField selector="{{AdminLoginAsCustomerLogFiltersSection.adminId}}" userInput="{{adminId}}"
24+
stepKey="fillAdminId"/>
25+
<fillField selector="{{AdminLoginAsCustomerLogFiltersSection.customerId}}" userInput="{{customerId}}"
26+
stepKey="fillCustomerId"/>
2227
<click selector="{{AdminLoginAsCustomerLogToolbarSection.search}}" stepKey="applyFilters"/>
2328
<waitForLoadingMaskToDisappear stepKey="waitForApplyFilter"/>
2429
</actionGroup>

app/code/Magento/LoginAsCustomer/Test/Mftf/ActionGroup/AdminLoginAsCustomerAbsentOnCustomerGirdPageActionGroup.xml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,11 @@
88

99
<actionGroups xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
1010
xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/actionGroupSchema.xsd">
11-
<!-- Verify Login As Customer Login action is absent on Customer grid page -->
1211
<actionGroup name="AdminLoginAsCustomerAbsentOnCustomerGridPageActionGroup">
12+
<annotations>
13+
<description>Verify Login As Customer Login action is absent on Customer grid page.</description>
14+
</annotations>
15+
1316
<amOnPage url="{{AdminCustomerPage.url}}" stepKey="gotoCustomerGridPage"/>
1417
<waitForPageLoad stepKey="waitForCustomerGridPageLoad"/>
1518
<dontSee userInput="Login As Customer" stepKey="dontSeeLoginAsCustomer"/>

app/code/Magento/LoginAsCustomer/Test/Mftf/ActionGroup/AdminLoginAsCustomerAbsentOnCustomerPageActionGroup.xml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,14 @@
88

99
<actionGroups xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
1010
xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/actionGroupSchema.xsd">
11-
<!-- Verify Login As Customer Login action is absent on Customer page -->
1211
<actionGroup name="AdminLoginAsCustomerAbsentOnCustomerPageActionGroup">
12+
<annotations>
13+
<description>Verify Login As Customer Login action is absent on Customer page.</description>
14+
</annotations>
1315
<arguments>
1416
<argument name="customerId" type="string"/>
1517
</arguments>
18+
1619
<amOnPage url="{{AdminEditCustomerPage.url(customerId)}}" stepKey="gotoCustomerPage"/>
1720
<waitForPageLoad stepKey="waitForCustomerPageLoad"/>
1821
<dontSee userInput="Login As Customer" stepKey="dontSeeLoginAsCustomer"/>

app/code/Magento/LoginAsCustomer/Test/Mftf/ActionGroup/AdminLoginAsCustomerAbsentOnOrderGridPageActionGroup.xml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,11 @@
88

99
<actionGroups xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
1010
xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/actionGroupSchema.xsd">
11-
<!-- Verify Login As Customer Login action is absent on Order grid page -->
1211
<actionGroup name="AdminLoginAsCustomerAbsentOnOrderGridPageActionGroup">
12+
<annotations>
13+
<description>Verify Login As Customer Login action is absent on Order grid page.</description>
14+
</annotations>
15+
1316
<amOnPage url="{{AdminOrdersPage.url}}" stepKey="gotoOrderGridPage"/>
1417
<waitForPageLoad stepKey="waitForOrderGridPageLoad"/>
1518
<dontSee userInput="Login As Customer" stepKey="dontSeeLoginAsCustomer"/>

app/code/Magento/LoginAsCustomer/Test/Mftf/ActionGroup/AdminLoginAsCustomerAbsentOnOrderPageActionGroup.xml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,14 @@
88

99
<actionGroups xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
1010
xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/actionGroupSchema.xsd">
11-
<!-- Verify Login As Customer Login action is absent on Order page -->
1211
<actionGroup name="AdminLoginAsCustomerAbsentOnOrderPageActionGroup">
12+
<annotations>
13+
<description>Verify Login As Customer Login action is absent on Order page.</description>
14+
</annotations>
1315
<arguments>
1416
<argument name="orderId" type="string"/>
1517
</arguments>
18+
1619
<amOnPage url="{{AdminOrderPage.url(orderId)}}" stepKey="gotoOrderPage"/>
1720
<waitForPageLoad stepKey="waitForOrderPageLoad"/>
1821
<dontSee userInput="Login As Customer" stepKey="dontSeeLoginAsCustomer"/>

0 commit comments

Comments
 (0)