Skip to content

Commit 794c049

Browse files
authored
Merge pull request #5396 from magento-tsg/2.3-develop-pr115
[TSG] TESTs Fixes for 2.3 (pr115) (2.3-develop)
2 parents 0c441c4 + 909f617 commit 794c049

File tree

6 files changed

+30
-4
lines changed

6 files changed

+30
-4
lines changed

app/code/Magento/Catalog/Test/Mftf/ActionGroup/AdminSaveCategoryFormActionGroup.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
</annotations>
1515

1616
<seeInCurrentUrl url="{{AdminCategoryPage.url}}" stepKey="seeOnCategoryPage"/>
17+
<scrollToTopOfPage stepKey="scrollToTopOfTheCategoryPage"/>
1718
<click selector="{{AdminMainActionsSection.save}}" stepKey="saveCategory"/>
1819
<waitForElementVisible selector="{{AdminMessagesSection.success}}" stepKey="waitForSuccessMessageAppears"/>
1920
<see userInput="You saved the category." selector="{{AdminMessagesSection.success}}" stepKey="assertSuccessMessage"/>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
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="urn:magento:mftf:Test/etc/actionGroupSchema.xsd">
11+
<actionGroup name="AssertStorefrontProductAbsentOnCategoryPageActionGroup">
12+
<annotations>
13+
<description>Navigate to category page and verify product is absent.</description>
14+
</annotations>
15+
<arguments>
16+
<argument name="categoryUrlKey" defaultValue="{{_defaultCategory.url_key}}"/>
17+
<argument name="productName" defaultValue="{{SimpleProduct.name}}"/>
18+
</arguments>
19+
20+
<amOnPage url="{{StorefrontCategoryPage.url(categoryUrlKey)}}" stepKey="navigateToCategoryPage"/>
21+
<waitForPageLoad stepKey="waitForCategoryPageLoad"/>
22+
<dontSee selector="{{StorefrontCategoryMainSection.productName}}" userInput="{{productName}}" stepKey="assertProductIsNotPresent"/>
23+
</actionGroup>
24+
</actionGroups>

app/code/Magento/Catalog/Test/Mftf/ActionGroup/StorefrontAssertProductAbsentOnCategoryPageActionGroup.xml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@
1010
xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/actionGroupSchema.xsd">
1111
<actionGroup name="StorefrontAssertProductAbsentOnCategoryPageActionGroup">
1212
<annotations>
13-
<description>Navigate to category page and verify product is absent.</description>
13+
<description>DEPRECATED. Please use AssertStorefrontProductAbsentOnCategoryPageActionGroup instead.
14+
Navigate to category page and verify product is absent.</description>
1415
</annotations>
1516
<arguments>
1617
<argument name="category" defaultValue="_defaultCategory"/>

app/code/Magento/CatalogSearch/Test/Mftf/Test/SearchEntityResultsTest.xml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -302,9 +302,6 @@
302302
<testCaseId value="MC-14784"/>
303303
<group value="CatalogSearch"/>
304304
<group value="mtf_migrated"/>
305-
<skip>
306-
<issueId value="MC-30161"/>
307-
</skip>
308305
</annotations>
309306
<before>
310307
<createData entity="_defaultCategory" stepKey="createCategory"/>

app/code/Magento/ConfigurableProduct/Test/Mftf/Test/EndToEndB2CLoggedInUserTest.xml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,8 @@
6161
<requiredEntity createDataKey="createConfigProduct"/>
6262
</createData>
6363
<updateData entity="ApiSimpleProductUpdateDescription" stepKey="updateConfigProduct" createDataKey="createConfigProduct"/>
64+
<!-- Reindex invalidated indices after product attribute has been created/deleted -->
65+
<actionGroup ref="CliRunReindexUsingCronJobsActionGroup" stepKey="reindexInvalidatedIndices"/>
6466
</before>
6567
<after>
6668
<!-- @TODO: Uncomment once MQE-679 is fixed -->

app/code/Magento/Customer/Test/Mftf/Test/EndToEndB2CLoggedInUserTest.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
<actionGroup ref="StorefrontCustomerLogoutActionGroup" stepKey="logoutCustomer"/>
2727
<actionGroup ref="LoginAsAdmin" stepKey="loginAsAdmin"/>
2828
<actionGroup ref="DeleteCustomerFromAdminActionGroup" stepKey="deleteCustomerFromAdmin"/>
29+
<actionGroup ref="ClearFiltersAdminDataGridActionGroup" stepKey="clearProductsGridFilters"/>
2930
<actionGroup ref="logout" stepKey="adminLogout"/>
3031
</after>
3132
<!-- Step 0: User signs up an account -->

0 commit comments

Comments
 (0)