Skip to content

Commit

Permalink
Fix MFTF tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
engcom-Kilo committed Jun 26, 2020
1 parent dee9b16 commit a49709f
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,9 @@
<argument name="categoryName" value="$$categoryN.name$$, $$categoryM.name$$"/>
</actionGroup>

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

<wait stepKey="waitAfterAssignCategoryK" time="60"/>

<!-- Unassign category M from Product B -->
<actionGroup ref="AdminProductPageOpenByIdActionGroup" stepKey="amOnEditCategoryPageB">
<argument name="productId" value="$$productB.id$$"/>
Expand Down Expand Up @@ -142,9 +144,9 @@
<see userInput="$$productC.name$$" selector="{{StorefrontCategoryMainSection.productName}}" stepKey="seeProductInCategoryN"/>

<!-- Run cron -->
<wait stepKey="waitBeforeRunMagentoCron" time="30"/>
<wait stepKey="waitBeforeRunMagentoCron" time="60"/>
<magentoCLI stepKey="runMagentoCron" command="cron:run --group=index"/>
<wait stepKey="waitAfterRunMagentoCron" time="60"/>
<wait stepKey="waitAfterRunMagentoCron" time="120"/>

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

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

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

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,6 @@
</arguments>
<fillField userInput="{{productName}}" selector="{{AdminCustomerWishlistSection.productName}}" stepKey="fillProductNameField"/>
<click selector="{{AdminCustomerWishlistSection.searchButton}}" stepKey="clickSearchButton"/>
<waitForPageLoad stepKey="waitForGridLoading"/>
<waitForAjaxLoad time="60" stepKey="waitForLoading"/>
</actionGroup>
</actionGroups>
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
<createData entity="SimpleProduct" stepKey="createProduct">
<requiredEntity createDataKey="createCategory"/>
</createData>
<magentoCLI command="cron:run --group=index" stepKey="runCronIndexer"/>
<createData entity="Simple_US_Customer" stepKey="createCustomer"/>
</before>
<after>
Expand Down

0 comments on commit a49709f

Please sign in to comment.