Skip to content

Commit 55d3b79

Browse files
committed
MC-221: Admin should be able to select/edit the “Attributes Set” when creating/editing a bundle product
1 parent 527660a commit 55d3b79

File tree

3 files changed

+24
-1
lines changed

3 files changed

+24
-1
lines changed

dev/tests/acceptance/tests/functional/Magento/FunctionalTest/Bundle/Data/ProductData.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
<data key="type">bundle</data>
2929
<data key="fixedPrice">10</data>
3030
<data key="fixedPriceFormatted">$10.00</data>
31+
<data key="defaultAttribute">Default</data>
3132
</entity>
3233
<entity name="ApiBundleProduct" type="product2">
3334
<data key="name" unique="suffix">Api Bundle Product</data>

dev/tests/acceptance/tests/functional/Magento/FunctionalTest/Bundle/Test/AdminAddBundleItemsTest.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
<description value="Admin should be able to add/edit bundle items when creating/editing a bundle product"/>
1717
<severity value="MAJOR"/>
1818
<testCaseId value="MC-223"/>
19-
<group value="banana"/>
19+
<group value="Bundle"/>
2020
</annotations>
2121
<before>
2222
<!--Creating data-->

dev/tests/acceptance/tests/functional/Magento/FunctionalTest/Bundle/Test/AdminAttributeSetSelectionTest.xml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,5 +60,27 @@
6060
<argument name="product" value="BundleProduct"/>
6161
</actionGroup>
6262
<seeElement selector="{{AdminProductCatalog.attributeSetOfFirstRow(ProductAttributeFrontendLabel.label)}}" stepKey="seeAttributeSet"/>
63+
64+
<!--Editing Attribute set-->
65+
<click selector="{{AdminProductCatalog.attributeSetOfFirstRow(ProductAttributeFrontendLabel.label)}}" stepKey="clickAttributeSet2"/>
66+
<waitForPageLoad stepKey="waitForPageLoad2"/>
67+
<pauseExecution stepKey="pause2"/>
68+
69+
<click selector="{{AdminProductFormSection.attributeSet}}" stepKey="startEditAttrSet2"/>
70+
<fillField selector="{{AdminProductFormSection.attributeSetFilter}}" userInput="{{BundleProduct.defaultAttribute}}" stepKey="searchForAttrSet2"/>
71+
<click selector="{{AdminProductFormSection.attributeSetFilterResult}}" stepKey="selectAttrSet2"/>
72+
73+
<!--save the product/published by default-->
74+
<click selector="{{AdminProductFormActionSection.saveButton}}" stepKey="clickSaveButton2"/>
75+
<seeElement selector="{{AdminCategoryMessagesSection.SuccessMessage}}" stepKey="messageYouSavedTheProductIsShown2"/>
76+
77+
<!--Testing that price appears correctly in admin catalog-->
78+
<!--Set filter to product name-->
79+
<amOnPage url="{{AdminCatalogProductPage.url}}" stepKey="GoToCatalogProductPage2"/>
80+
<waitForPageLoad stepKey="WaitForPageToLoad2"/>
81+
<actionGroup ref="filterProductGridByName" stepKey="filterBundleProductOptionsDownToName2">
82+
<argument name="product" value="BundleProduct"/>
83+
</actionGroup>
84+
<seeElement selector="{{AdminProductCatalog.attributeSetOfFirstRow(BundleProduct.defaultAttribute)}}" stepKey="seeAttributeSet2"/>
6385
</test>
6486
</tests>

0 commit comments

Comments
 (0)