Skip to content

Commit 2357fb5

Browse files
committed
MC-290: Customer should be able to change chosen options for Bundle Product when clicking Edit button in Shopping Cart page
- Make stepkey names clearer
1 parent 4ca877f commit 2357fb5

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

dev/tests/acceptance/tests/functional/Magento/FunctionalTest/Bundle/Section/AdminProductFormBundleSection.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
<section name="AdminProductFormBundleSection">
1212
<element name="bundleItemsToggle" type="button" selector="//span[text()='Bundle Items']"/>
1313
<element name="shipmentType" type="select" selector=".admin__control-select[name='product[shipment_type]']"/>
14-
<element name="addOption" type="button" selector="button[data-index='add_button'] span"/>
14+
<element name="addOption" type="button" selector="button[data-index='add_button']"/>
1515
<element name="firstOptionTitle" type="input" selector="[name='bundle_options[bundle_options][0][title]']"/>
1616
<element name="firstInputType" type="select" selector="[name='bundle_options[bundle_options][0][type]']"/>
1717
<element name="firstRequired" type="checkbox" selector="[name='bundle_options[bundle_options][0][required]']"/>

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@
6262
<fillField selector="{{AdminProductFormBundleSection.bundleOptionXProductYQuantity('0', '0')}}" userInput="{{BundleProduct.defaultQuantity}}" stepKey="fillProductDefaultQty1"/>
6363
<fillField selector="{{AdminProductFormBundleSection.bundleOptionXProductYQuantity('0', '1')}}" userInput="{{BundleProduct.defaultQuantity}}" stepKey="fillProductDefaultQty2"/>
6464

65-
<click stepKey="saveProductAttribute" selector="{{AdminProductFormActionSection.saveButton}}"/>
65+
<click stepKey="saveProductBundle" selector="{{AdminProductFormActionSection.saveButton}}"/>
6666
<see stepKey="assertSuccess" selector="{{AdminProductMessagesSection.successMessage}}" userInput="You saved the product."/>
6767

6868
<!-- Go to the storefront bundled product page -->
@@ -71,7 +71,7 @@
7171
<click stepKey="customizeAndAddToCart" selector="{{StorefrontBundledSection.addToCart}}"/>
7272
<waitForPageLoad stepKey="waitCustomizableOptionsPopUp"/>
7373

74-
<!-- add two products to the shopping cart, each with one different page -->
74+
<!-- add one product to the shopping cart -->
7575
<click stepKey="selectFirstBundleOption" selector="{{StorefrontBundledSection.nthBundledOption('1','1')}}"/>
7676
<waitForPageLoad stepKey="waitForPriceUpdate"/>
7777
<see stepKey="seeSinglePrice" selector="{{StorefrontBundledSection.configuredPrice}}" userInput="1,230.00"/>
@@ -99,7 +99,7 @@
9999
<click stepKey="saveProductAttribute2" selector="{{AdminProductFormActionSection.saveButton}}"/>
100100
<see stepKey="assertSuccess2" selector="{{AdminProductMessagesSection.successMessage}}" userInput="You saved the product."/>
101101

102-
<!-- Go to the shopping cart page and grab the value of the first product -->
102+
<!-- Go to the shopping cart page and make sure the title has changed -->
103103
<amOnPage url="/checkout/cart/" stepKey="onPageShoppingCart1"/>
104104
<waitForPageLoad stepKey="waitForCartPageLoad1"/>
105105
<grabTextFrom selector="{{CheckoutCartProductSection.nthBundleOptionName('1')}}" stepKey="grabTotalAfter"/>

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@
6262
<fillField selector="{{AdminProductFormBundleSection.bundleOptionXProductYQuantity('0', '0')}}" userInput="{{BundleProduct.defaultQuantity}}" stepKey="fillProductDefaultQty1"/>
6363
<fillField selector="{{AdminProductFormBundleSection.bundleOptionXProductYQuantity('0', '1')}}" userInput="{{BundleProduct.defaultQuantity}}" stepKey="fillProductDefaultQty2"/>
6464

65-
<click stepKey="saveProductAttribute" selector="{{AdminProductFormActionSection.saveButton}}"/>
65+
<click stepKey="saveProductBundle" selector="{{AdminProductFormActionSection.saveButton}}"/>
6666
<see stepKey="assertSuccess" selector="{{AdminProductMessagesSection.successMessage}}" userInput="You saved the product."/>
6767

6868
<!-- Go to the storefront bundled product page -->
@@ -71,7 +71,7 @@
7171
<click stepKey="customizeAndAddToCart" selector="{{StorefrontBundledSection.addToCart}}"/>
7272
<waitForPageLoad stepKey="waitCustomizableOptionsPopUp"/>
7373

74-
<!-- add two products to the shopping cart, each with one different page -->
74+
<!-- add two products to the shopping cart, each with one different option -->
7575
<click stepKey="selectFirstBundleOption" selector="{{StorefrontBundledSection.nthBundledOption('1','1')}}"/>
7676
<waitForPageLoad stepKey="waitForPriceUpdate"/>
7777
<see stepKey="seeSinglePrice" selector="{{StorefrontBundledSection.configuredPrice}}" userInput="1,230.00"/>

0 commit comments

Comments
 (0)