Skip to content

Commit fa7ef72

Browse files
[Magento Community Engineering] Community Contributions - 2.4-develop
- merged latest code from mainline branch
2 parents 38fe624 + 3d87b92 commit fa7ef72

File tree

25 files changed

+180
-96
lines changed

25 files changed

+180
-96
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/Section/StorefrontProductInfoMainSection.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
xsi:noNamespaceSchemaLocation="urn:magento:mftf:Page/etc/SectionObject.xsd">
1111
<section name="StorefrontProductInfoMainSection">
1212
<element name="optionByAttributeId" type="input" selector="#attribute{{var1}}" parameterized="true"/>
13+
<element name="selectableProductOptions" type="select" selector="#attribute{{var1}} option:not([disabled])" parameterized="true"/>
1314
<element name="productAttributeTitle1" type="text" selector="#product-options-wrapper div[tabindex='0'] label"/>
1415
<element name="productPrice" type="text" selector="div.price-box.price-final_price"/>
1516
<element name="productAttributeOptions1" type="select" selector="#product-options-wrapper div[tabindex='0'] option"/>

0 commit comments

Comments
 (0)