Skip to content

Commit a49709f

Browse files
committed
Fix MFTF tests.
1 parent dee9b16 commit a49709f

File tree

3 files changed

+9
-8
lines changed

3 files changed

+9
-8
lines changed

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

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -55,9 +55,9 @@
5555
<argument name="categoryName" value="$$categoryN.name$$, $$categoryM.name$$"/>
5656
</actionGroup>
5757

58-
<wait stepKey="waitBeforeRunCronIndex" time="30"/>
58+
<wait stepKey="waitBeforeRunCronIndex" time="60"/>
5959
<magentoCLI stepKey="runCronIndex" command="cron:run --group=index"/>
60-
<wait stepKey="waitAfterRunCronIndex" time="60"/>
60+
<wait stepKey="waitAfterRunCronIndex" time="120"/>
6161
</before>
6262
<after>
6363
<!-- Change "Category Products" and "Product Categories" indexers to "Update on Save" mode -->
@@ -103,6 +103,8 @@
103103
<argument name="categoryName" value="$$categoryK.name$$"/>
104104
</actionGroup>
105105

106+
<wait stepKey="waitAfterAssignCategoryK" time="60"/>
107+
106108
<!-- Unassign category M from Product B -->
107109
<actionGroup ref="AdminProductPageOpenByIdActionGroup" stepKey="amOnEditCategoryPageB">
108110
<argument name="productId" value="$$productB.id$$"/>
@@ -142,9 +144,9 @@
142144
<see userInput="$$productC.name$$" selector="{{StorefrontCategoryMainSection.productName}}" stepKey="seeProductInCategoryN"/>
143145

144146
<!-- Run cron -->
145-
<wait stepKey="waitBeforeRunMagentoCron" time="30"/>
147+
<wait stepKey="waitBeforeRunMagentoCron" time="60"/>
146148
<magentoCLI stepKey="runMagentoCron" command="cron:run --group=index"/>
147-
<wait stepKey="waitAfterRunMagentoCron" time="60"/>
149+
<wait stepKey="waitAfterRunMagentoCron" time="120"/>
148150

149151
<!-- Open categories K, L, M, N on Storefront in order to make sure that new assigments are applied -->
150152
<!-- Category K contains only Products A, C -->
@@ -208,9 +210,9 @@
208210
<see userInput="$$productC.name$$" selector="{{StorefrontCategoryMainSection.productName}}" stepKey="productCOnCategoryN"/>
209211

210212
<!-- Run Cron once to reindex product changes -->
211-
<wait stepKey="waitBeforeRunCronIndexAfterProductAssignToCategory" time="30"/>
213+
<wait stepKey="waitBeforeRunCronIndexAfterProductAssignToCategory" time="60"/>
212214
<magentoCLI stepKey="runCronIndexAfterProductAssignToCategory" command="cron:run --group=index"/>
213-
<wait stepKey="waitAfterRunCronIndexAfterProductAssignToCategory" time="60"/>
215+
<wait stepKey="waitAfterRunCronIndexAfterProductAssignToCategory" time="120"/>
214216

215217
<!-- Open categories K, L, M, N on Storefront in order to make sure that new assigments are applied -->
216218

app/code/Magento/Customer/Test/Mftf/ActionGroup/AdminCustomerFindWishlistItemActionGroup.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,6 @@
1414
</arguments>
1515
<fillField userInput="{{productName}}" selector="{{AdminCustomerWishlistSection.productName}}" stepKey="fillProductNameField"/>
1616
<click selector="{{AdminCustomerWishlistSection.searchButton}}" stepKey="clickSearchButton"/>
17-
<waitForPageLoad stepKey="waitForGridLoading"/>
17+
<waitForAjaxLoad time="60" stepKey="waitForLoading"/>
1818
</actionGroup>
1919
</actionGroups>

app/code/Magento/Wishlist/Test/Mftf/Test/AdminDeleteCustomerWishListItemTest.xml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@
2222
<createData entity="SimpleProduct" stepKey="createProduct">
2323
<requiredEntity createDataKey="createCategory"/>
2424
</createData>
25-
<magentoCLI command="cron:run --group=index" stepKey="runCronIndexer"/>
2625
<createData entity="Simple_US_Customer" stepKey="createCustomer"/>
2726
</before>
2827
<after>

0 commit comments

Comments
 (0)