Skip to content

Commit c5db401

Browse files
[ACQE-5247] Fixing flaky tests StorefrontCategorySidebarMobileMenuTest StoreFrontAddOutOfStockProductToShoppingCartTest
1 parent ac045d3 commit c5db401

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

app/code/Magento/Catalog/Test/Mftf/Test/StorefrontCategorySidebarMobileMenuTest.xml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@
4242
<click selector="{{StorefrontHeaderSection.mobileMenuToggle}}" stepKey="openSideMenu"/>
4343
<waitForElementClickable selector="{{StorefrontHeaderSection.NavigationCategoryByName($$createParentCategory.name$$)}}" stepKey="waitForCategoryMenuClickable" />
4444
<click selector="{{StorefrontHeaderSection.NavigationCategoryByName($$createParentCategory.name$$)}}" stepKey="expandCategoryMenu"/>
45-
<waitForPageLoad stepKey="waitForSearchResult"/>
4645

4746
<!-- Assert the category expanded successfully -->
4847
<actionGroup ref="StorefrontAssertCategoryNameIsShownInMenuActionGroup" stepKey="verifySubCatMenuItemIsVisibleInTheSidebar">

app/code/Magento/CatalogInventory/Test/Mftf/Test/StoreFrontAddOutOfStockProductToShoppingCartTest.xml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
<test name="StoreFrontAddOutOfStockProductToShoppingCartTest">
1212
<annotations>
1313
<features value="[Disabled Inventory Check] Add Out of Stock Product to the Shopping Cart"/>
14-
<stories value="[Disabled Inventory Check] Add Out of Stock Product to the Shopping Cart."/>
14+
<stories value="[Disabled Inventory Check] Add Out of Stock Product to the Shopping Cart"/>
1515
<title value="Checking Add Out of Stock Products to the Shopping Cart"/>
1616
<description value="Placing the order for out of stock products and zero quantity"/>
1717
<severity value="CRITICAL"/>
@@ -62,6 +62,7 @@
6262
<!-- Mouse Hover Product On Category Page-->
6363
<actionGroup ref="StorefrontHoverProductOnCategoryPageActionGroup" stepKey="hoverProduct"/>
6464
<!-- Select Add to cart-->
65+
<waitForElementVisible selector="{{StorefrontCategoryMainSection.addToCartProductBySku($$simpleProductOne.sku$$)}}" stepKey="waitForAddToCartButton"/>
6566
<click selector="{{StorefrontCategoryMainSection.addToCartProductBySku($$simpleProductOne.sku$$)}}" stepKey="toCategory"/>
6667
<waitForElementVisible selector="{{StorefrontProductPageSection.errorMsg}}" stepKey="wait"/>
6768
<!-- Assert the Error Message-->

0 commit comments

Comments
 (0)