-
Notifications
You must be signed in to change notification settings - Fork 45
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #9005 from adobe-commerce-tier-4/PR_Tier4_June24
[Support Tier-4 odubovyk] 06-13-24 Regular delivery of bugfixes and improvements
- Loading branch information
Showing
7 changed files
with
238 additions
and
25 deletions.
There are no files selected for viewing
41 changes: 41 additions & 0 deletions
41
...Magento/Bundle/Test/Mftf/ActionGroup/AdminFillCatalogProductsListWidgetSkuActionGroup.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!-- | ||
/************************************************************************ | ||
* | ||
* Copyright 2023 Adobe | ||
* All Rights Reserved. | ||
* | ||
* NOTICE: All information contained herein is, and remains | ||
* the property of Adobe and its suppliers, if any. The intellectual | ||
* and technical concepts contained herein are proprietary to Adobe | ||
* and its suppliers and are protected by all applicable intellectual | ||
* property laws, including trade secret and copyright laws. | ||
* Dissemination of this information or reproduction of this material | ||
* is strictly forbidden unless prior written permission is obtained | ||
* from Adobe. | ||
* *********************************************************************** | ||
*/ | ||
--> | ||
|
||
<actionGroups xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/actionGroupSchema.xsd"> | ||
<actionGroup name="AdminFillCatalogProductsListWidgetSkuActionGroup"> | ||
<annotations> | ||
<description>Fill catalog products list widget sku.</description> | ||
</annotations> | ||
|
||
<arguments> | ||
<argument name="sku" type="string" defaultValue=""/> | ||
</arguments> | ||
|
||
<waitForElementVisible selector="{{WidgetSection.AddParam}}" stepKey="waitForAddParamElement"/> | ||
<click selector="{{WidgetSection.AddParam}}" stepKey="clickOnAddParamElement"/> | ||
<waitForElementVisible selector="{{WidgetSection.ConditionsDropdown}}" | ||
stepKey="waitForConditionsDropdownVisible"/> | ||
<selectOption selector="{{WidgetSection.ConditionsDropdown}}" userInput="SKU" stepKey="selectSkuAsCondition"/> | ||
<waitForElementVisible selector="{{WidgetSection.RuleParam}}" stepKey="waitForRuleParamElementVisible"/> | ||
<click selector="{{WidgetSection.RuleParam}}" stepKey="clickToAddRuleParam"/> | ||
<fillField selector=".rule-param-edit input" userInput="{{sku}}" stepKey="fillSkuField"/> | ||
<click selector="{{AdminNewWidgetSection.applyParameter}}" stepKey="clickApplyButton"/> | ||
</actionGroup> | ||
</actionGroups> |
86 changes: 86 additions & 0 deletions
86
app/code/Magento/Bundle/Test/Mftf/Test/StorefrontBundleAddToCartFromWidget.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,86 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!-- | ||
/************************************************************************ | ||
* | ||
* Copyright 2023 Adobe | ||
* All Rights Reserved. | ||
* | ||
* NOTICE: All information contained herein is, and remains | ||
* the property of Adobe and its suppliers, if any. The intellectual | ||
* and technical concepts contained herein are proprietary to Adobe | ||
* and its suppliers and are protected by all applicable intellectual | ||
* property laws, including trade secret and copyright laws. | ||
* Dissemination of this information or reproduction of this material | ||
* is strictly forbidden unless prior written permission is obtained | ||
* from Adobe. | ||
* *********************************************************************** | ||
*/ | ||
--> | ||
|
||
<tests xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/testSchema.xsd"> | ||
<test name="StorefrontBundleAddToCartFromWidget"> | ||
<annotations> | ||
<features value="Bundle"/> | ||
<stories value="Bundle product details page"/> | ||
<title value="Customer should be able to add a bundle product to the cart from widget"/> | ||
<description value="Customer should be able to add a bundle product to the cart from widget"/> | ||
<severity value="CRITICAL"/> | ||
<testCaseId value="AC-10867"/> | ||
<useCaseId value="ACP2E-2615"/> | ||
<group value="WYSIWYGDisabled"/> | ||
<group value="Bundle"/> | ||
</annotations> | ||
<before> | ||
<actionGroup ref="AdminLoginActionGroup" stepKey="login"/> | ||
<createData entity="SimpleProduct2" stepKey="simpleProduct1"/> | ||
</before> | ||
<after> | ||
<actionGroup ref="DeleteProductBySkuActionGroup" stepKey="deleteBundleProductBySku"> | ||
<argument name="sku" value="{{BundleProductWithSlashSku.sku}}"/> | ||
</actionGroup> | ||
<deleteData createDataKey="simpleProduct1" stepKey="deleteSimpleProduct1"/> | ||
<actionGroup ref="AdminLogoutActionGroup" stepKey="logout"/> | ||
</after> | ||
|
||
<!-- Start creating a bundle product --> | ||
<actionGroup ref="AdminOpenProductIndexPageActionGroup" stepKey="goToProductList"/> | ||
<actionGroup ref="GoToCreateProductPageActionGroup" stepKey="goToCreateProduct"> | ||
<argument name="product" value="BundleProduct"/> | ||
</actionGroup> | ||
<actionGroup ref="FillProductNameAndSkuInProductFormActionGroup" stepKey="fillNameAndSku"> | ||
<argument name="product" value="BundleProductWithSlashSku"/> | ||
</actionGroup> | ||
|
||
<!-- Add Option One, a "Drop-down" type option --> | ||
<actionGroup ref="AddBundleOptionWithOneProductActionGroup" stepKey="addBundleOptionWithOneProduct"> | ||
<argument name="x" value="0"/> | ||
<argument name="n" value="1"/> | ||
<argument name="prodOneSku" value="$$simpleProduct1.sku$$"/> | ||
<argument name="prodTwoSku" value=""/> | ||
<argument name="optionTitle" value="Option One"/> | ||
<argument name="inputType" value="select"/> | ||
</actionGroup> | ||
|
||
<!-- Save product, edit Homepage CMS page and add products widget --> | ||
<actionGroup ref="SaveProductFormActionGroup" stepKey="saveProduct"/> | ||
<amOnPage url="{{AdminCmsPageEditPage.url(CmsHomePageContent.page_id)}}" stepKey="navigateToEditCmsHomePage"/> | ||
<click selector="{{CmsNewPagePageContentSection.header}}" stepKey="clickContentTab" /> | ||
<actionGroup ref="AdminInsertWidgetToCmsPageContentActionGroup" stepKey="insertWidgetToCmsPageContentActionGroup"> | ||
<argument name="widgetType" value="Catalog Products List"/> | ||
</actionGroup> | ||
<actionGroup ref="AdminFillCatalogProductsListWidgetSkuActionGroup" stepKey="selectProductForListing"> | ||
<argument name="sku" value="{{BundleProductWithSlashSku.sku}}"/> | ||
</actionGroup> | ||
<actionGroup ref="AdminClickInsertWidgetActionGroup" stepKey="clickInsertWidgetButton2"/> | ||
<actionGroup ref="SaveCmsPageActionGroup" stepKey="clickSaveButton"/> | ||
<see selector="{{AdminMessagesSection.success}}" userInput="You saved the page." stepKey="seeSuccess"/> | ||
|
||
<!-- Go to storefront homepage and add to cart --> | ||
<actionGroup ref="StorefrontOpenHomePageActionGroup" stepKey="goToHomePage"/> | ||
<actionGroup ref="StorefrontHoverProductOnCategoryPageActionGroup" stepKey="hoverProduct"/> | ||
<actionGroup ref="StorefrontClickAddToCartButtonActionGroup" stepKey="addToCart"/> | ||
<waitForPageLoad stepKey="waitForProductAdded"/> | ||
<waitForElementVisible selector="{{StorefrontMessagesSection.success}}" stepKey="seeSuccessMessage"/> | ||
</test> | ||
</tests> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.