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

Commit 7a96f05

Browse files
committed
MQE-727: MSI Test Cases
- Removing 2 duplicate Action Groups. - Removing a duplicate section. - Adding a waitForPageLoad to an Action Group. - Updating a selector so it works on every page. Several pages in the Admin do not contain the selector #fulltext.
1 parent fcb9af4 commit 7a96f05

File tree

6 files changed

+4
-42
lines changed

6 files changed

+4
-42
lines changed

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

Lines changed: 0 additions & 14 deletions
This file was deleted.

dev/tests/acceptance/tests/functional/Magento/FunctionalTest/Catalog/Section/AdminProductGridSection.xml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,4 @@
2525
<element name="bulkActionOption" type="button" selector="//div[contains(@class,'admin__data-grid-header-row') and contains(@class, 'row')]//div[contains(@class, 'action-select-wrap')]//ul/li/span[text() = '{{label}}']" parameterized="true"/>
2626
<element name="productGridXRowYColumnButton" type="input" selector="table.data-grid tr.data-row:nth-child({{row}}) td:nth-child({{column}})" parameterized="true" timeout="30"/>
2727
</section>
28-
<section name="AdminProductGridFilterControls">
29-
<element name="sku" type="input" selector=".admin__data-grid-filters-wrap input[name='sku']"/>
30-
</section>
3128
</sections>

dev/tests/acceptance/tests/functional/Magento/FunctionalTest/Ui/ActionGroup/AdminDataGridFilterActionGroup.xml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,10 @@
1313
<arguments>
1414
<argument name="keyword"/>
1515
</arguments>
16+
1617
<conditionalClick selector="{{AdminDataGridHeaderSection.clearFilters}}" dependentSelector="{{AdminDataGridHeaderSection.clearFilters}}" visible="true" stepKey="clickClearFilters"/>
18+
<waitForPageLoad stepKey="waitForPageLoad" time="5"/>
19+
1720
<fillField selector="{{AdminDataGridHeaderSection.search}}" userInput="{{keyword}}" stepKey="fillKeywordSearchField"/>
1821
<click selector="{{AdminDataGridHeaderSection.submitSearch}}" stepKey="clickKeywordSearch"/>
1922
</actionGroup>

dev/tests/acceptance/tests/functional/Magento/FunctionalTest/Ui/ActionGroup/AdminDataGridPaginationActionGroup.xml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88

99
<actionGroups xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
1010
xsi:noNamespaceSchemaLocation="../../../../../../vendor/magento/magento2-functional-testing-framework/src/Magento/FunctionalTestingFramework/Test/etc/actionGroupSchema.xsd">
11-
1211
<actionGroup name="adminDataGridSelectPerPage">
1312
<arguments>
1413
<argument name="perPage"/>
@@ -28,5 +27,4 @@
2827
<click selector="{{AdminDataGridPaginationSection.perPageApplyInput}}" stepKey="applyCustomPerPage"/>
2928
<waitForLoadingMaskToDisappear stepKey="waitForGridLoad"/>
3029
</actionGroup>
31-
3230
</actionGroups>

dev/tests/acceptance/tests/functional/Magento/FunctionalTest/Ui/ActionGroup/AdminGridSearchByKeywordActionGroup.xml

Lines changed: 0 additions & 22 deletions
This file was deleted.

dev/tests/acceptance/tests/functional/Magento/FunctionalTest/Ui/Section/AdminDataGridHeaderSection.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
xsi:noNamespaceSchemaLocation="../../../../../../vendor/magento/magento2-functional-testing-framework/src/Magento/FunctionalTestingFramework/Page/etc/SectionObject.xsd">
1111
<section name="AdminDataGridHeaderSection">
1212
<!--Search by keyword element-->
13-
<element name="search" type="input" selector="#fulltext"/>
13+
<element name="search" type="input" selector=".admin__data-grid-header[data-bind='afterRender: \$data.setToolbarNode'] input[placeholder='Search by keyword']"/>
1414
<element name="submitSearch" type="button" selector=".data-grid-search-control-wrap > button.action-submit" timeout="30"/>
1515
<!--Filters-->
1616
<element name="filters" type="button" selector="button[data-action='grid-filter-expand']" timeout="30"/>

0 commit comments

Comments
 (0)