Skip to content

Commit f48110d

Browse files
ENGCOM-6825: HOTFIX: #26607 Fix failing CI due to Functional Tests #26608
- Merge Pull Request #26608 from lbajsarowicz/magento2:hotfix/26607-ci-failure - Merged commits: 1. e6a3bee 2. e26a536 3. 075f9f4 4. dab9463 5. fe153fb 6. c9d83d7 7. 148011a 8. 2bdbf8b 9. 8450dc9 10. a2e16f3 11. e52bc2a 12. 548da89 13. ea4a31e 14. b130bd0 15. fc6fd62 16. a9fccdb 17. ed51b40 18. 8df79b0 19. 322e9d8 20. f16c97e 21. 5a202f8 22. 3eb92f5 23. 81cbfa2 24. b5141f4
2 parents 293cd41 + b5141f4 commit f48110d

24 files changed

+142
-102
lines changed

app/code/Magento/Bundle/Test/Mftf/Test/AdminEditRelatedBundleProductTest.xml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,8 @@
7070
<conditionalClick selector="{{AdminProductFormRelatedUpSellCrossSellSection.relatedDropdown}}" dependentSelector="{{AdminProductFormRelatedUpSellCrossSellSection.relatedDependent}}" visible="false" stepKey="openDropDownIfClosedRelatedSee"/>
7171
<see selector="{{AdminProductFormRelatedUpSellCrossSellSection.selectedRelatedProduct}}" userInput="$$simpleProduct1.sku$$" stepKey="seeRelatedProduct"/>
7272

73+
<magentoCLI command="cron:run --group=index" stepKey="runCronIndexer"/>
74+
7375
<!--See related product in storefront-->
7476
<amOnPage url="{{BundleProduct.sku}}.html" stepKey="goToStorefront"/>
7577
<waitForPageLoad stepKey="waitForStorefront"/>

app/code/Magento/Bundle/Test/Mftf/Test/StorefrontCheckBundleProductOptionTierPrices.xml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,7 @@
4444
</actionGroup>
4545
<actionGroup ref="logout" stepKey="logoutAsAdmin"/>
4646

47-
<!-- Run reindex -->
48-
<magentoCLI command="indexer:reindex" stepKey="reindex"/>
47+
<magentoCLI stepKey="runCronIndex" command="cron:run --group=index"/>
4948
</before>
5049
<after>
5150
<deleteData createDataKey="createBundleProductCreateBundleProduct" stepKey="deleteDynamicBundleProduct"/>

app/code/Magento/Bundle/Test/Mftf/Test/StorefrontCustomerSelectAndSetBundleOptionsTest.xml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@
2222
<actionGroup ref="LoginAsAdmin" stepKey="login"/>
2323
<createData entity="SimpleProduct2" stepKey="simpleProduct1"/>
2424
<createData entity="SimpleProduct2" stepKey="simpleProduct2"/>
25+
26+
<magentoCLI command="cron:run --group=index" stepKey="runCronIndexer"/>
2527
</before>
2628
<after>
2729
<!-- Delete the bundled product -->
@@ -89,6 +91,10 @@
8991

9092
<!-- Save product and go to storefront -->
9193
<actionGroup ref="SaveProductFormActionGroup" stepKey="saveProduct"/>
94+
95+
<wait stepKey="waitBeforeIndexerAfterBundle" time="60"/>
96+
<magentoCLI command="cron:run --group=index" stepKey="runCronIndexerAfterBundle"/>
97+
9298
<amOnPage url="{{BundleProduct.sku}}.html" stepKey="goToStorefront"/>
9399
<waitForPageLoad stepKey="waitForStorefront"/>
94100
<click selector="{{StorefrontBundledSection.addToCart}}" stepKey="clickCustomize"/>

app/code/Magento/Bundle/Test/Mftf/Test/StorefrontEditBundleProductTest.xml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,8 @@
6565
<click stepKey="saveProductBundle" selector="{{AdminProductFormActionSection.saveButton}}"/>
6666
<see stepKey="assertSuccess" selector="{{AdminProductMessagesSection.successMessage}}" userInput="You saved the product."/>
6767

68+
<magentoCLI command="cron:run --group=index" stepKey="runCronIndexer"/>
69+
6870
<!-- Go to the storefront bundled product page -->
6971
<amOnPage url="/{{BundleProduct.urlKey}}.html" stepKey="visitStoreFrontBundle"/>
7072
<waitForPageLoad stepKey="waitForStorefront"/>

app/code/Magento/Catalog/Test/Mftf/Data/ProductData.xml

Lines changed: 66 additions & 65 deletions
Large diffs are not rendered by default.

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@
2727
<createData entity="SimpleProduct2" stepKey="simpleProduct4"/>
2828
<createData entity="SimpleProduct2" stepKey="simpleProduct5"/>
2929
<createData entity="SimpleProduct2" stepKey="simpleProduct6"/>
30+
31+
<magentoCLI command="cron:run --group=index" stepKey="runCronIndexer"/>
3032
</before>
3133
<after>
3234
<!-- Delete simple product -->

app/code/Magento/CatalogRule/Test/Mftf/ActionGroup/OpenCatalogPriceRuleActionGroup.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
<argument name="ruleName" type="string" defaultValue="CustomCatalogRule.name"/>
1414
</arguments>
1515
<amOnPage url="{{AdminCatalogPriceRuleGridPage.url}}" stepKey="goToAdminCatalogPriceRuleGridPage"/>
16+
<waitForPageLoad stepKey="waitForAdminCatalogPriceRuleGridPageLoad"/>
1617
<conditionalClick selector="{{AdminDataGridHeaderSection.clearFilters}}" dependentSelector="{{AdminDataGridHeaderSection.clearFilters}}" visible="true" stepKey="clearExistingFilters"/>
1718
<fillField selector="{{AdminCatalogPriceRuleGridSection.filterByRuleName}}" userInput="{{ruleName}}" stepKey="filterByRuleName"/>
1819
<click selector="{{AdminDataGridHeaderSection.applyFilters}}" stepKey="clickSearch"/>

app/code/Magento/Checkout/Test/Mftf/Test/StorefrontOnePageCheckoutDataWhenChangeQtyTest.xml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@
2121
<before>
2222
<!--Create a product-->
2323
<createData entity="SimpleProduct2" stepKey="createProduct"/>
24+
25+
<magentoCLI command="cron:run --group=index" stepKey="runCronIndexer"/>
2426
</before>
2527
<after>
2628
<!--Delete created data-->

app/code/Magento/ConfigurableProduct/Test/Mftf/Data/ConfigurableProductData.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,12 @@
2323
<requiredEntity type="custom_attribute_array">CustomAttributeCategoryIds</requiredEntity>
2424
</entity>
2525
<entity name="ApiConfigurableProduct" type="product">
26+
<data key="name" unique="suffix">API Configurable Product</data>
2627
<data key="sku" unique="suffix">api-configurable-product</data>
28+
<data key="urlKey" unique="suffix">api-configurable-product</data>
2729
<data key="type_id">configurable</data>
2830
<data key="attribute_set_id">4</data>
2931
<data key="visibility">4</data>
30-
<data key="name" unique="suffix">API Configurable Product</data>
31-
<data key="urlKey" unique="suffix">api-configurable-product</data>
3232
<data key="price">123.00</data>
3333
<data key="weight">2</data>
3434
<data key="status">1</data>

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@
2121
</annotations>
2222
<before>
2323
<createData entity="ApiCategory" stepKey="createCategory"/>
24+
25+
<magentoCLI command="cron:run --group=index" stepKey="runCronIndexer"/>
2426
</before>
2527
<after>
2628
<!-- Delete configurable product -->

0 commit comments

Comments
 (0)