Skip to content

Commit e6dca6d

Browse files
committed
Merge remote-tracking branch 'origin/2.4-develop' into spartans_pr_12062024
2 parents d2a89c6 + d290f35 commit e6dca6d

File tree

529 files changed

+2501
-3496
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

529 files changed

+2501
-3496
lines changed

app/code/Magento/Backend/Block/Media/Uploader.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ public function getImageUploadMaxHeight()
145145
*/
146146
protected function _prepareLayout()
147147
{
148-
$this->pageConfig->addPageAsset('jquery/fileUploader/css/jquery.fileupload-ui.css');
148+
$this->pageConfig->addPageAsset('jquery/uppy/dist/uppy.fileupload-ui.css');
149149
return parent::_prepareLayout();
150150
}
151151

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@
7777
<actionGroup ref="StorefrontOpenCheckoutPageActionGroup" stepKey="openCheckoutPage"/>
7878
<!-- Click next button to open payment section -->
7979
<actionGroup ref="StorefrontCheckoutClickNextButtonActionGroup" stepKey="clickNext"/>
80+
<actionGroup ref="CheckoutSelectCheckMoneyOrderPaymentActionGroup" stepKey="selectDefaultPaymentMethod"/>
8081
<!-- Click place order -->
8182
<actionGroup ref="ClickPlaceOrderActionGroup" stepKey="placeOrder"/>
8283
<actionGroup ref="StorefrontClickOrderLinkFromCheckoutSuccessPageActionGroup" stepKey="clickOrderLink"/>

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,7 @@
7979
<actionGroup ref="StorefrontOpenCheckoutPageActionGroup" stepKey="openCheckoutPage"/>
8080
<!--Click next button to open payment section-->
8181
<actionGroup ref="StorefrontCheckoutClickNextButtonActionGroup" stepKey="clickNext"/>
82+
<actionGroup ref="CheckoutSelectCheckMoneyOrderPaymentActionGroup" stepKey="selectDefaultPaymentMethod"/>
8283
<!--Click place order-->
8384
<actionGroup ref="ClickPlaceOrderActionGroup" stepKey="placeOrder"/>
8485
<actionGroup ref="StorefrontClickOrderLinkFromCheckoutSuccessPageActionGroup" stepKey="clickOrderLink"/>
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!--
3+
/**
4+
* Copyright © Magento, Inc. All rights reserved.
5+
* See COPYING.txt for license details.
6+
*/
7+
-->
8+
9+
<actionGroups xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
10+
xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/actionGroupSchema.xsd">
11+
<actionGroup name="AdminAddOptionsForProductAttributeActionGroup">
12+
<annotations>
13+
<description>Click on new value of selector attribute and fill the values for storefront view, and admin product edit page</description>
14+
</annotations>
15+
<arguments>
16+
<argument name="adminAttributeFirstRowValue" defaultValue="Blue" type="string" />
17+
<argument name="adminAttributeSecondRowValue" defaultValue="Yellow" type="string" />
18+
<argument name="storeViewAttributeFirstRowValue" defaultValue="Blau" type="string" />
19+
<argument name="storeViewAttributeSecondRowValue" defaultValue="Gelb" type="string" />
20+
<argument name="firstRow" defaultValue="0" type="string"/>
21+
<argument name="secondRow" defaultValue="1" type="string"/>
22+
</arguments>
23+
<scrollTo selector="{{AdminCreateNewProductAttributeSection.addValue}}" stepKey="scrollToOption"/>
24+
<waitForElementClickable selector="{{AdminCreateNewProductAttributeSection.addValue}}" stepKey="waitForAddButtonToBeClickable"/>
25+
<click selector="{{AdminCreateNewProductAttributeSection.addValue}}" stepKey="clickOnAddValueButton"/>
26+
<waitForElementVisible selector="{{AdminCreateNewProductAttributeSection.adminOption(firstRow)}}" stepKey="waitForFirstAdminAttributeFieldToVisible"/>
27+
<fillField selector="{{AdminCreateNewProductAttributeSection.adminOption(firstRow)}}" userInput="{{adminAttributeFirstRowValue}}" stepKey="fillFirstRowAdminField"/>
28+
<waitForElementVisible selector="{{AdminCreateNewProductAttributeSection.firstOptionStoreView}}" stepKey="waitForFirstRowCustomAttributeFieldToVisible"/>
29+
<fillField selector="{{AdminCreateNewProductAttributeSection.firstOptionStoreView}}" userInput="{{storeViewAttributeFirstRowValue}}" stepKey="fillFirstRowCustomField"/>
30+
<waitForElementClickable selector="{{AdminCreateNewProductAttributeSection.addValue}}" stepKey="againWaitForAddButtonToBeClickable"/>
31+
<click selector="{{AdminCreateNewProductAttributeSection.addValue}}" stepKey="againClickOnAddValueButton"/>
32+
<waitForElementVisible selector="{{AdminCreateNewProductAttributeSection.adminOption(secondRow)}}" stepKey="waitForSecondRowAdminAttributeFieldToVisible"/>
33+
<fillField selector="{{AdminCreateNewProductAttributeSection.adminOption(secondRow)}}" userInput="{{adminAttributeSecondRowValue}}" stepKey="fillSecondRowAdminField"/>
34+
<waitForElementVisible selector="{{AdminCreateNewProductAttributeSection.secondOptionStoreView}}" stepKey="waitForSecondRowCustomAttributeFieldToVisible"/>
35+
<fillField selector="{{AdminCreateNewProductAttributeSection.secondOptionStoreView}}" userInput="{{storeViewAttributeSecondRowValue}}" stepKey="fillSecondRowCustomField"/>
36+
</actionGroup>
37+
</actionGroups>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!--
3+
/**
4+
* Copyright © Magento, Inc. All rights reserved.
5+
* See COPYING.txt for license details.
6+
*/
7+
-->
8+
9+
<actionGroups xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
10+
xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/actionGroupSchema.xsd">
11+
<actionGroup name="AdminCreateProductAttributeWithCustomChangesActionGroup">
12+
<annotations>
13+
<description>Creating a product attribute with required custom changes.</description>
14+
</annotations>
15+
<arguments>
16+
<argument name="defaultLabel" type="string" defaultValue="Text_EN"/>
17+
<argument name="attributeType" type="string" defaultValue="text"/>
18+
<argument name="tabName" type="string" defaultValue="Manage Labels"/>
19+
<argument name="labelName" type="string" defaultValue="Text_DE"/>
20+
<argument name="catalogType" type="string" defaultValue="Yes"/>
21+
</arguments>
22+
23+
<amOnPage url="{{ProductAttributePage.url}}" stepKey="goToNewProductAttributePage"/>
24+
<waitForPageLoad stepKey="waitForAttributePageLoad"/>
25+
<waitForElementVisible selector="{{AttributePropertiesSection.DefaultLabel}}" stepKey="waitForDefaultLabelFieldToBeVisible"/>
26+
<fillField selector="{{AttributePropertiesSection.DefaultLabel}}" userInput="{{defaultLabel}}" stepKey="fillDefaultLabel"/>
27+
<waitForElement selector="{{AttributePropertiesSection.InputType}}" stepKey="waitForInputTypeElement"/>
28+
<selectOption selector="{{AttributePropertiesSection.InputType}}" userInput="{{attributeType}}" stepKey="selectInputType"/>
29+
<waitForElementClickable selector="{{AdminEditProductAttributesSection.tabButton(tabName)}}" stepKey="waitForManageLabelElementToBeClickable"/>
30+
<click selector="{{AdminEditProductAttributesSection.tabButton(tabName)}}" stepKey="clickManageLabel"/>
31+
<waitForElementVisible selector="{{AdminProductAttributeManageLabelsSection.customStoreLabel}}" stepKey="waitForCustomStoreViewLabelToBeVisible"/>
32+
<fillField selector="{{AdminProductAttributeManageLabelsSection.customStoreLabel}}" userInput="{{labelName}}" stepKey="fillCustomStoreViewLabel"/>
33+
<waitForElementClickable selector="{{StorefrontPropertiesSection.StoreFrontPropertiesTab}}" stepKey="waitForStorefrontPropertiesTabToBeClickable"/>
34+
<click selector="{{StorefrontPropertiesSection.StoreFrontPropertiesTab}}" stepKey="clickStorefrontPropertiesTab"/>
35+
<waitForElement selector="{{StorefrontPropertiesSection.visibleOnCatalogPagesOnStorefront}}" stepKey="waitForVisibleOnCatalogElement"/>
36+
<selectOption selector="{{StorefrontPropertiesSection.visibleOnCatalogPagesOnStorefront}}" userInput="{{catalogType}}" stepKey="enableVisibleOnStorefront"/>
37+
<waitForElementVisible selector="{{AttributePropertiesSection.Save}}" stepKey="waitForSaveButton"/>
38+
<click selector="{{AttributePropertiesSection.Save}}" stepKey="clickSaveButton"/>
39+
<waitForPageLoad stepKey="waitForAttributeToSave"/>
40+
</actionGroup>
41+
</actionGroups>
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!--
3+
/**
4+
* Copyright © Magento, Inc. All rights reserved.
5+
* See COPYING.txt for license details.
6+
*/
7+
-->
8+
9+
<actionGroups xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
10+
xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/actionGroupSchema.xsd">
11+
<actionGroup name="AdminFillCustomProductAttributeFieldsActionGroup">
12+
<annotations>
13+
<description>Filling custom product attribute values in product creation page.</description>
14+
</annotations>
15+
<arguments>
16+
<argument name="priceAttributeCode" type="string" defaultValue="price_en"/>
17+
<argument name="priceAttributeValue" type="string" defaultValue="1234"/>
18+
<argument name="textAttributeCode" type="string" defaultValue="text_en"/>
19+
<argument name="textAttributeValue" type="string" defaultValue="abcd"/>
20+
<argument name="areaAttributeCode" type="string" defaultValue="area_en"/>
21+
<argument name="areaAttributeValue" type="string" defaultValue="456"/>
22+
<argument name="dropdownAttributeCode" type="string" defaultValue="dropdown_en"/>
23+
<argument name="dropdownAttributeValue" type="string" defaultValue="Yellow"/>
24+
<argument name="boolean" type="string" defaultValue="yes_en"/>
25+
<argument name="dateAttributeCode" type="string" defaultValue="date_en"/>
26+
<argument name="dateAttributeValue" type="string" defaultValue="05/27/2024"/>
27+
<argument name="multiSelectAttributeValue" type="string" defaultValue="'Value_1_EN','Value_2_EN'"/>
28+
</arguments>
29+
<waitForElementVisible selector="{{AdminProductContentSection.attributeInput('priceAttributeCode')}}" stepKey="waitForPriceFieldToBeVisible"/>
30+
<fillField selector="{{AdminProductContentSection.attributeInput('priceAttributeCode')}}" userInput="{{priceAttributeValue}}" stepKey="fillPriceFieldToBeVisible"/>
31+
<waitForElementVisible selector="{{AdminProductContentSection.attributeInput('textAttributeCode')}}" stepKey="waitForTextFieldToBeVisible"/>
32+
<fillField selector="{{AdminProductContentSection.attributeInput('textAttributeCode')}}" userInput="{{textAttributeValue}}" stepKey="fillTextField"/>
33+
<waitForElementVisible selector="{{AdminProductCustomizableOptionsSection.customTextArea('areaAttributeCode')}}" stepKey="waitForAreaFieldToBeVisible"/>
34+
<fillField selector="{{AdminProductCustomizableOptionsSection.customTextArea('areaAttributeCode')}}" userInput="{{areaAttributeValue}}" stepKey="fillAreaField"/>
35+
<selectOption selector="{{AdminProductCustomizableOptionsSection.customDropDown('dropdownAttributeCode')}}" userInput="{{dropdownAttributeValue}}" stepKey="selectDropdownValue"/>
36+
<checkOption selector="{{AdminProductCustomizableOptionsSection.customYesOrNo('boolean')}}" stepKey="checkYesOrNo"/>
37+
<waitForElementVisible selector="{{AdminProductContentSection.attributeInput('dateAttributeCode')}}" stepKey="waitForDateFieldToBeVisible"/>
38+
<fillField selector="{{AdminProductContentSection.attributeInput('dateAttributeCode')}}" userInput="{{dateAttributeValue}}" stepKey="fillDateField"/>
39+
<selectOption selector="{{AdminProductCustomizableOptionsSection.customMultiSelect}}" parameterArray="[{{multiSelectAttributeValue}}]" stepKey="multiSelectSpecifiedValues"/>
40+
</actionGroup>
41+
</actionGroups>
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!--
3+
/**
4+
* Copyright © Magento, Inc. All rights reserved.
5+
* See COPYING.txt for license details.
6+
*/
7+
-->
8+
9+
<actionGroups xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
10+
xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/actionGroupSchema.xsd">
11+
<actionGroup name="AdminFillManageLabelsValuesActionGroup">
12+
<annotations>
13+
<description>Filling manage label values in product attribute page.</description>
14+
</annotations>
15+
<arguments>
16+
<argument name="customStoreViewValue" type="string"/>
17+
<argument name="newStoreViewValue" type="string"/>
18+
</arguments>
19+
<waitForElementVisible selector="{{AdminCreateNewProductAttributeSection.customStoreViewField(customStoreViewValue)}}" stepKey="waitForCustomStoreViewField"/>
20+
<fillField selector="{{AdminCreateNewProductAttributeSection.customStoreViewField(customStoreViewValue)}}" userInput="{{newStoreViewValue}}" stepKey="fillCustomStoreViewValue"/>
21+
</actionGroup>
22+
</actionGroups>

app/code/Magento/Catalog/Test/Mftf/ActionGroup/ImportProductCustomizableOptionsActionGroup.xml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@
1515
<arguments>
1616
<argument name="productName" type="string"/>
1717
</arguments>
18-
18+
<scrollTo selector="{{AdminProductCustomizableOptionsSection.importOptions}}" stepKey="scrollToClickImportOptions"/>
19+
<waitForElementClickable selector="{{AdminProductCustomizableOptionsSection.importOptions}}" stepKey="waitForElementClickImportOptions"/>
1920
<click selector="{{AdminProductCustomizableOptionsSection.importOptions}}" stepKey="clickImportOptions"/>
2021
<waitForElementVisible selector="{{AdminProductImportOptionsSection.selectProductTitle}}" stepKey="waitForTitleVisible"/>
2122
<conditionalClick selector="{{AdminProductImportOptionsSection.resetFiltersButton}}" dependentSelector="{{AdminProductImportOptionsSection.resetFiltersButton}}" visible="true" stepKey="clickResetFilters"/>
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!--
3+
/**
4+
* Copyright © Magento, Inc. All rights reserved.
5+
* See COPYING.txt for license details.
6+
*/
7+
-->
8+
9+
<actionGroups xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
10+
xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/actionGroupSchema.xsd">
11+
<actionGroup name="StorefrontAddQuantityOnProductPageActionGroup">
12+
<annotations>
13+
<description>On Storefront product page add quantity.</description>
14+
</annotations>
15+
<arguments>
16+
<argument name="quantity" type="string" defaultValue="1"/>
17+
</arguments>
18+
19+
<waitForElementVisible selector="{{StorefrontProductPageSection.qtyInput}}" stepKey="waitForQtyToBeVisible"/>
20+
<fillField userInput="{{quantity}}" selector="{{StorefrontProductPageSection.qtyInput}}" stepKey="fillProductQty"/>
21+
</actionGroup>
22+
</actionGroups>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!--
3+
/**
4+
* Copyright © Magento, Inc. All rights reserved.
5+
* See COPYING.txt for license details.
6+
*/
7+
-->
8+
9+
<actionGroups xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
10+
xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/actionGroupSchema.xsd">
11+
<actionGroup name="StorefrontAddSimpleProductCustomOptionCheckBoxActionGroup">
12+
<annotations>
13+
<description>Adding simple product to cart with custom options checkbox.</description>
14+
</annotations>
15+
<arguments>
16+
<argument name="checkBoxValue" type="string" defaultValue="Value1"/>
17+
</arguments>
18+
19+
<waitForElementClickable selector="{{StorefrontProductInfoMainSection.customOptionCheckBox(checkBoxValue)}}" stepKey="waitForOptionCheckbox"/>
20+
<checkOption selector="{{StorefrontProductInfoMainSection.customOptionCheckBox(checkBoxValue)}}" stepKey="checkCustomCheckBox"/>
21+
</actionGroup>
22+
</actionGroups>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!--
3+
/**
4+
* Copyright © Magento, Inc. All rights reserved.
5+
* See COPYING.txt for license details.
6+
*/
7+
-->
8+
9+
<actionGroups xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
10+
xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/actionGroupSchema.xsd">
11+
<actionGroup name="StorefrontAddSimpleProductCustomOptionDropDownActionGroup">
12+
<annotations>
13+
<description>Adding simple product to cart with custom options dropdown.</description>
14+
</annotations>
15+
<arguments>
16+
<argument name="dropDownOption" type="string" defaultValue="Value1 +$10.00"/>
17+
</arguments>
18+
19+
<waitForElementVisible selector="{{StorefrontProductInfoMainSection.selectCustomOptionDropDown}}" stepKey="waitForOptionDropDown"/>
20+
<selectOption selector="{{StorefrontProductInfoMainSection.selectCustomOptionDropDown}}" userInput="{{dropDownOption}}" stepKey="clickOptionValueDropDown"/>
21+
</actionGroup>
22+
</actionGroups>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!--
3+
/**
4+
* Copyright © Magento, Inc. All rights reserved.
5+
* See COPYING.txt for license details.
6+
*/
7+
-->
8+
9+
<actionGroups xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
10+
xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/actionGroupSchema.xsd">
11+
<actionGroup name="StorefrontAddSimpleProductCustomOptionFieldActionGroup">
12+
<annotations>
13+
<description>Adding simple product to cart with custom option field.</description>
14+
</annotations>
15+
<arguments>
16+
<argument name="testValue" type="string" defaultValue="Test value"/>
17+
</arguments>
18+
19+
<waitForElementVisible selector="{{StorefrontProductInfoMainSection.customOptionField}}" stepKey="waitForCustomOptionFieldToBeVisible"/>
20+
<fillField selector="{{StorefrontProductInfoMainSection.customOptionField}}" userInput="{{testValue}}" stepKey="fillCustomOptionField"/>
21+
</actionGroup>
22+
</actionGroups>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!--
3+
/**
4+
* Copyright © Magento, Inc. All rights reserved.
5+
* See COPYING.txt for license details.
6+
*/
7+
-->
8+
9+
<actionGroups xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
10+
xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/actionGroupSchema.xsd">
11+
<actionGroup name="StorefrontAssertProductAttributeValuesOnProductPageActionGroup">
12+
<annotations>
13+
<description>Asserting storefront product attribute values on product page.</description>
14+
</annotations>
15+
<arguments>
16+
<argument name="textAttribute" type="string" defaultValue="Text_EN"/>
17+
<argument name="areaAttribute" type="string" defaultValue="Area_EN"/>
18+
<argument name="dateAttribute" type="string" defaultValue="Date_EN"/>
19+
<argument name="yesAttribute" type="string" defaultValue="Yes_EN"/>
20+
<argument name="dropdownAttribute" type="string" defaultValue="Dropdown_EN"/>
21+
<argument name="multiAttribute" type="string" defaultValue="Multi_EN"/>
22+
<argument name="priceAttribute" type="string" defaultValue="Price_EN"/>
23+
<argument name="dropdownAttributeValue" type="string" defaultValue="Yellow"/>
24+
<argument name="multiAttributeValue" type="string" defaultValue="Value_1_EN, Value_2_EN"/>
25+
</arguments>
26+
<waitForElement selector="{{StorefrontProductPageSection.attributeTypes('textAttribute')}}" stepKey="assertTextAttribute"/>
27+
<waitForElement selector="{{StorefrontProductPageSection.attributeTypes('areaAttribute')}}" stepKey="assertAreaAttribute"/>
28+
<waitForElement selector="{{StorefrontProductPageSection.attributeTypes('dateAttribute')}}" stepKey="assertDateAttribute"/>
29+
<waitForElement selector="{{StorefrontProductPageSection.attributeTypes('yesAttribute')}}" stepKey="assertYesAttribute"/>
30+
<waitForElement selector="{{StorefrontProductPageSection.attributeTypes('dropdownAttribute')}}" stepKey="assertDropdownAttribute"/>
31+
<waitForElement selector="{{StorefrontProductPageSection.attributeTypes('multiAttribute')}}" stepKey="assertMultiAttribute"/>
32+
<waitForElement selector="{{StorefrontProductPageSection.attributeTypes('priceAttribute')}}" stepKey="assertPriceAttribute"/>
33+
<waitForText selector="{{StorefrontProductPageSection.attributeTypes('dropdownAttribute')}}" userInput="{{dropdownAttributeValue}}" stepKey="assertDropdownAttributeValue"/>
34+
<waitForText selector="{{StorefrontProductPageSection.attributeTypes('multiAttribute')}}" userInput="{{multiAttributeValue}}" stepKey="assertMultiAttributeValue"/>
35+
</actionGroup>
36+
</actionGroups>

0 commit comments

Comments
 (0)