Skip to content

Commit e24a1e8

Browse files
committed
MC-30869: [MFTF] Flaky Test UnassignProductsFromCategoryGridModeTest (MC-2290)
1 parent a9cc2ac commit e24a1e8

File tree

3 files changed

+27
-1
lines changed

3 files changed

+27
-1
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"/>

0 commit comments

Comments
 (0)