Skip to content
This repository was archived by the owner on Apr 29, 2019. It is now read-only.

Commit 04a9105

Browse files
committed
MQE-727: MSI Test Cases
- Adding an action group for "AdminGridFilterSearchResultsByInput". - Adding an action group for "AdminGridSearchByKeyword". - Adding an action group for "AdminSaveAndClose". - Adding an action group for "LogoutOfAdmin".
1 parent 1cd00e9 commit 04a9105

File tree

5 files changed

+84
-1
lines changed

5 files changed

+84
-1
lines changed

dev/tests/acceptance/tests/functional/Magento/FunctionalTest/Backend/ActionGroup/AdminClearGridFiltersActionGroup.xml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
xsi:noNamespaceSchemaLocation="../../../../../../vendor/magento/magento2-functional-testing-framework/src/Magento/FunctionalTestingFramework/Test/etc/actionGroupSchema.xsd">
1111
<actionGroup name="AdminClearGridFiltersIfPresent">
1212
<conditionalClick selector=".admin__data-grid-header[data-bind='afterRender: \$data.setToolbarNode'] .action-remove" dependentSelector=".admin__data-grid-header[data-bind='afterRender: \$data.setToolbarNode'] .admin__data-grid-filters-current._show" visible="true" stepKey="clearTheFiltersIfPresent"/>
13-
<waitForPageLoad stepKey="waitForPageLoad"/>
13+
<executeJS function="jQuery('.action-remove').click();" stepKey="clearIfMultipleExist"/>
14+
<waitForPageLoad stepKey="waitForPageLoad" time="5"/>
1415
</actionGroup>
1516
</actionGroups>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
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+
<actionGroups xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
10+
xsi:noNamespaceSchemaLocation="../../../../../../vendor/magento/magento2-functional-testing-framework/src/Magento/FunctionalTestingFramework/Test/etc/actionGroupSchema.xsd">
11+
<actionGroup name="AdminGridFilterSearchResultsByInput">
12+
<arguments>
13+
<argument name="selector"/>
14+
<argument name="value"/>
15+
</arguments>
16+
17+
<!-- Start of Action Group: AdminClearGridFiltersIfPresent -->
18+
<conditionalClick selector=".admin__data-grid-header[data-bind='afterRender: \$data.setToolbarNode'] .action-remove" dependentSelector=".admin__data-grid-header[data-bind='afterRender: \$data.setToolbarNode'] .admin__data-grid-filters-current._show" visible="true" stepKey="clearTheFiltersIfPresent"/>
19+
<executeJS function="jQuery('.action-remove').click();" stepKey="clearIfMultipleExist"/>
20+
<waitForPageLoad stepKey="waitForPageLoad" time="5"/>
21+
<!-- End of Action Group: AdminClearGridFiltersIfPresent -->
22+
23+
<click selector="{{AdminGridFilterControls.filters}}" stepKey="clickOnFilters1"/>
24+
<fillField userInput="{{value}}" selector="{{selector}}" stepKey="fillCodeField2"/>
25+
<click selector="{{AdminGridFilterControls.applyFilters}}" stepKey="clickOnApplyFilters1"/>
26+
</actionGroup>
27+
</actionGroups>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
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+
<actionGroups xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
10+
xsi:noNamespaceSchemaLocation="../../../../../../vendor/magento/magento2-functional-testing-framework/src/Magento/FunctionalTestingFramework/Test/etc/actionGroupSchema.xsd">
11+
<actionGroup name="AdminGridSearchByKeyword">
12+
<arguments>
13+
<argument name="value"/>
14+
</arguments>
15+
16+
<!-- Start of Action Group: AdminClearGridFiltersIfPresent -->
17+
<conditionalClick selector=".admin__data-grid-header[data-bind='afterRender: \$data.setToolbarNode'] .action-remove" dependentSelector=".admin__data-grid-header[data-bind='afterRender: \$data.setToolbarNode'] .admin__data-grid-filters-current._show" visible="true" stepKey="clearTheFiltersIfPresent"/>
18+
<executeJS function="jQuery('.action-remove').click();" stepKey="clearIfMultipleExist"/>
19+
<waitForPageLoad stepKey="waitForPageLoad" time="5"/>
20+
<!-- End of Action Group: AdminClearGridFiltersIfPresent -->
21+
22+
<fillField selector="{{AdminGridSearchBox.searchByKeyword}}" userInput="{{value}}" stepKey="fillSearchByKeyword"/>
23+
<click selector="{{AdminGridSearchBox.search}}" stepKey="clickOnSearch"/>
24+
</actionGroup>
25+
</actionGroups>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
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+
<actionGroups xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
10+
xsi:noNamespaceSchemaLocation="../../../../../../vendor/magento/magento2-functional-testing-framework/src/Magento/FunctionalTestingFramework/Test/etc/actionGroupSchema.xsd">
11+
<actionGroup name="AdminSaveAndClose">
12+
<click selector="{{AdminProductFormActionSection.saveArrow}}" stepKey="openSaveDropDown"/>
13+
<click selector="{{AdminProductFormActionSection.saveAndClose}}" stepKey="clickOnSaveAndClose"/>
14+
<seeElement selector="{{AdminProductMessagesSection.successMessage}}" stepKey="assertSaveMessageSuccess"/>
15+
</actionGroup>
16+
</actionGroups>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
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+
<actionGroups xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
10+
xsi:noNamespaceSchemaLocation="../../../../../../vendor/magento/magento2-functional-testing-framework/src/Magento/FunctionalTestingFramework/Test/etc/actionGroupSchema.xsd">
11+
<actionGroup name="LogoutOfAdmin">
12+
<amOnPage url="{{_ENV.MAGENTO_BACKEND_NAME}}/admin/auth/logout/" stepKey="amOnLogoutPage"/>
13+
</actionGroup>
14+
</actionGroups>

0 commit comments

Comments
 (0)