Skip to content

Commit 66e1232

Browse files
committed
MQE-1424: Stabilize mtf-eol branch
1 parent c17aebc commit 66e1232

7 files changed

+17
-10
lines changed

app/code/Magento/Catalog/Test/Mftf/Section/AdminProductFormSection.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@
7474
</section>
7575
<section name="AdminAddRelatedProductsModalSection">
7676
<element name="AddSelectedProductsButton" type="button" selector="//aside[contains(@class, 'related_modal')]//button[contains(@class, 'action-primary')]" timeout="30"/>
77+
<element name="AddUpSellProductsButton" type="button" selector="//aside[contains(@class, 'upsell_modal')]//button[contains(@class, 'action-primary')]" timeout="30"/>
7778
</section>
7879
<section name="ProductWYSIWYGSection">
7980
<element name="Switcher" type="button" selector="//select[@id='dropdown-switcher']"/>

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,14 +42,16 @@
4242
<magentoCLI command="cron:run" stepKey="runCron2"/>
4343
</before>
4444
<after>
45+
<magentoCLI stepKey="setFlatCatalogCategory" command="config:set catalog/frontend/flat_catalog_category 0 "/>
46+
<magentoCLI stepKey="setIndexerMode" command="indexer:set-mode" arguments="realtime" />
47+
<magentoCLI stepKey="indexerReindex" command="indexer:reindex" />
4548
<deleteData stepKey="deleteCategory" createDataKey="createCategory"/>
4649
<actionGroup ref="AdminDeleteStoreViewActionGroup" stepKey="deleteStoreViewEn">
4750
<argument name="customStore" value="customStoreEN"/>
4851
</actionGroup>
4952
<actionGroup ref="AdminDeleteStoreViewActionGroup" stepKey="deleteStoreViewFr">
5053
<argument name="customStore" value="customStoreFR"/>
5154
</actionGroup>
52-
<magentoCLI stepKey="setFlatCatalogCategory" command="config:set catalog/frontend/flat_catalog_category 0 "/>
5355
<actionGroup ref="logout" stepKey="logout"/>
5456
</after>
5557
<!-- Select created category and make category inactive-->

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,14 +42,16 @@
4242
<magentoCLI command="cron:run" stepKey="runCron2"/>
4343
</before>
4444
<after>
45+
<magentoCLI stepKey="setFlatCatalogCategory" command="config:set catalog/frontend/flat_catalog_category 0 "/>
46+
<magentoCLI stepKey="setIndexerMode" command="indexer:set-mode" arguments="realtime" />
47+
<magentoCLI stepKey="indexerReindex" command="indexer:reindex" />
4548
<deleteData stepKey="deleteCategory" createDataKey="createCategory"/>
4649
<actionGroup ref="AdminDeleteStoreViewActionGroup" stepKey="deleteStoreViewEn">
4750
<argument name="customStore" value="customStoreEN"/>
4851
</actionGroup>
4952
<actionGroup ref="AdminDeleteStoreViewActionGroup" stepKey="deleteStoreViewFr">
5053
<argument name="customStore" value="customStoreFR"/>
5154
</actionGroup>
52-
<magentoCLI stepKey="setFlatCatalogCategory" command="config:set catalog/frontend/flat_catalog_category 0 "/>
5355
<actionGroup ref="logout" stepKey="logout"/>
5456
</after>
5557
<!-- Select created category and make category inactive-->

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,14 +42,16 @@
4242
<magentoCLI command="cron:run" stepKey="runCron2"/>
4343
</before>
4444
<after>
45+
<magentoCLI stepKey="setFlatCatalogCategory" command="config:set catalog/frontend/flat_catalog_category 0 "/>
46+
<magentoCLI stepKey="setIndexerMode" command="indexer:set-mode" arguments="realtime" />
47+
<magentoCLI stepKey="indexerReindex" command="indexer:reindex" />
4548
<actionGroup ref="AdminDeleteStoreViewActionGroup" stepKey="deleteStoreViewEn">
4649
<argument name="customStore" value="customStoreEN"/>
4750
</actionGroup>
4851
<actionGroup ref="AdminDeleteStoreViewActionGroup" stepKey="deleteStoreViewFr">
4952
<argument name="customStore" value="customStoreFR"/>
5053
</actionGroup>
5154
<deleteData createDataKey="category" stepKey="deleteCategory"/>
52-
<magentoCLI stepKey="setFlatCatalogCategory" command="config:set catalog/frontend/flat_catalog_category 0 "/>
5355
<actionGroup ref="logout" stepKey="logout"/>
5456
</after>
5557
<!-- Select created category and disable Include In Menu option-->

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

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,13 @@
2020
</annotations>
2121

2222
<before>
23-
<magentoCLI stepKey="setCountryOfManufacture" command="config:set catalog/fields_masks/sku" arguments="'{{name}} {{country_of_manufacture}}'"/>
23+
<magentoCLI stepKey="setCountryOfManufacture" command="config:set catalog/fields_masks/sku" arguments="{{name}}-{{country_of_manufacture}}"/>
2424
<actionGroup ref="LoginAsAdmin" stepKey="loginAsAdmin"/>
2525
</before>
2626
<after>
27-
<magentoCLI stepKey="setName" command="config:set catalog/fields_masks/sku" arguments="'{{name}}'"/>
27+
<magentoCLI stepKey="setName" command="config:set catalog/fields_masks/sku" arguments="{{name}}"/>
2828
<actionGroup ref="deleteProductBySku" stepKey="deleteCreatedProduct">
29-
<argument name="sku" value="{{nameAndAttributeSkuMaskSimpleProduct.name}} {{nameAndAttributeSkuMaskSimpleProduct.country_of_manufacture_label}}" />
29+
<argument name="sku" value="{{nameAndAttributeSkuMaskSimpleProduct.name}}-{{nameAndAttributeSkuMaskSimpleProduct.country_of_manufacture_label}}" />
3030
</actionGroup>
3131
<actionGroup ref="logout" stepKey="logout"/>
3232
</after>
@@ -53,9 +53,9 @@
5353
<waitForPageLoad stepKey="waitForProductCatalogPageToLoad"/>
5454
<conditionalClick selector="{{AdminProductGridFilterSection.clearAll}}" dependentSelector="{{AdminProductGridFilterSection.clearAll}}" visible="true" stepKey="clickClearAll"/>
5555
<click selector="{{AdminProductGridFilterSection.filters}}" stepKey="clickFiltersButton"/>
56-
<fillField selector="{{AdminProductGridFilterSection.skuFilter}}" userInput="{{nameAndAttributeSkuMaskSimpleProduct.name}} {{nameAndAttributeSkuMaskSimpleProduct.country_of_manufacture_label}}" stepKey="fillSkuFilterFieldWithNameAndCountryOfManufactureInput" />
56+
<fillField selector="{{AdminProductGridFilterSection.skuFilter}}" userInput="{{nameAndAttributeSkuMaskSimpleProduct.name}}-{{nameAndAttributeSkuMaskSimpleProduct.country_of_manufacture_label}}" stepKey="fillSkuFilterFieldWithNameAndCountryOfManufactureInput" />
5757
<click selector="{{AdminProductGridFilterSection.applyFilters}}" stepKey="clickApplyFiltersButton"/>
5858
<waitForPageLoad stepKey="waitForProductSearchAfterApplyingFilters"/>
59-
<see selector="{{AdminProductGridSection.firstProductRow}}" userInput="{{nameAndAttributeSkuMaskSimpleProduct.name}} {{nameAndAttributeSkuMaskSimpleProduct.country_of_manufacture_label}}" stepKey="seeSimpleProductSkuMaskedAsNameAndCountryOfManufacture"/>
59+
<see selector="{{AdminProductGridSection.firstProductRow}}" userInput="{{nameAndAttributeSkuMaskSimpleProduct.name}}-{{nameAndAttributeSkuMaskSimpleProduct.country_of_manufacture_label}}" stepKey="seeSimpleProductSkuMaskedAsNameAndCountryOfManufacture"/>
6060
</test>
6161
</tests>

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
<group value="mtf_migrated"/>
2020
</annotations>
2121
<before>
22-
<actionGroup ref = "LoginAsAdmin" stepKey="loginAsAdmin"/>
22+
<actionGroup ref="LoginAsAdmin" stepKey="loginAsAdmin"/>
2323
</before>
2424
<after>
2525
<actionGroup ref="logout" stepKey="logout"/>

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@
145145
</actionGroup>
146146
<waitForPageLoad stepKey="waitForTheSimpleProduct2ToBeLoaded"/>
147147
<checkOption selector="{{AdminAddProductsToGroupPanel.firstCheckbox}}" stepKey="selectSimpleProduct1"/>
148-
<click stepKey="addSimpleProduct2" selector="{{AdminAddRelatedProductsModalSection.AddSelectedProductsButton}}"/>
148+
<click stepKey="addSimpleProduct2" selector="{{AdminAddRelatedProductsModalSection.AddUpSellProductsButton}}"/>
149149
<waitForPageLoad stepKey="waitForSimpleProductToBeAdded"/>
150150
<scrollTo selector="{{AdminProductFormActionSection.saveButton}}" stepKey="scrollToTheSaveButton"/>
151151
<click stepKey="clickOnSaveButton1" selector="{{AdminProductFormActionSection.saveButton}}"/>

0 commit comments

Comments
 (0)