|
16 | 16 | <description value="Customer should be able to change chosen options for Bundle Product when clicking Edit button in Shopping Cart page"/>
|
17 | 17 | <severity value="MAJOR"/>
|
18 | 18 | <testCaseId value="MC-290"/>
|
19 |
| - <group value="Levi"/> |
| 19 | + <group value="Bundle"/> |
20 | 20 | </annotations>
|
21 | 21 | <before>
|
22 | 22 | <actionGroup ref="LoginAsAdmin" stepKey="loginAsAdmin"/>
|
|
71 | 71 | <click stepKey="customizeAndAddToCart" selector="{{StorefrontBundledSection.addToCart}}"/>
|
72 | 72 | <waitForPageLoad stepKey="waitCustomizableOptionsPopUp"/>
|
73 | 73 |
|
| 74 | + <!-- add two products to the shopping cart, each with one different page --> |
74 | 75 | <click stepKey="selectFirstBundleOption" selector="{{StorefrontBundledSection.nthBundledOption('1','1')}}"/>
|
75 |
| - |
| 76 | + <waitForPageLoad stepKey="waitForPriceUpdate"/> |
76 | 77 | <see stepKey="seeSinglePrice" selector="{{StorefrontBundledSection.configuredPrice}}" userInput="1,230.00"/>
|
77 | 78 | <click stepKey="addFirstItemToCart" selector="{{StorefrontBundledSection.addToCartConfigured}}"/>
|
78 | 79 | <waitForPageLoad stepKey="waitForElementAdded"/>
|
79 | 80 |
|
80 | 81 | <click stepKey="unselectFirstBundleOption" selector="{{StorefrontBundledSection.nthBundledOption('1','1')}}"/>
|
81 | 82 | <click stepKey="selectSecondBundleOption" selector="{{StorefrontBundledSection.nthBundledOption('1','2')}}"/>
|
82 |
| - |
| 83 | + <waitForPageLoad stepKey="waitForPriceUpdate2"/> |
83 | 84 | <see stepKey="seeSinglePrice2" selector="{{StorefrontBundledSection.configuredPrice}}" userInput="1,230.00"/>
|
84 | 85 | <click stepKey="addSecondItemToCart" selector="{{StorefrontBundledSection.addToCartConfigured}}"/>
|
85 | 86 | <waitForPageLoad stepKey="waitForElementAdded2"/>
|
86 | 87 |
|
| 88 | + <!-- Go to the shopping cart page and edit the first product --> |
| 89 | + <amOnPage url="/checkout/cart/" stepKey="onPageShoppingCart"/> |
| 90 | + <waitForPageLoad stepKey="waitForCartPageLoad"/> |
| 91 | + <waitForElementVisible stepKey="waitForInfoDropdown" selector="{{CheckoutCartSummarySection.total}}"/> |
| 92 | + <grabTextFrom selector="{{CheckoutCartSummarySection.total}}" stepKey="grabTotalBefore"/> |
| 93 | + <click stepKey="clickEdit" selector="{{CheckoutCartProductSection.nthEditButton('1')}}"/> |
| 94 | + <waitForPageLoad stepKey="waitForStorefront2"/> |
| 95 | + |
| 96 | + <!-- Choose both of the options on the storefront --> |
| 97 | + <click stepKey="selectFirstBundleOption2" selector="{{StorefrontBundledSection.nthBundledOption('1','1')}}"/> |
| 98 | + <click stepKey="selectSecondBundleOption2" selector="{{StorefrontBundledSection.nthBundledOption('1','2')}}"/> |
| 99 | + |
| 100 | + <waitForPageLoad stepKey="waitForPriceUpdate3"/> |
| 101 | + <see stepKey="seeDoublePrice" selector="{{StorefrontBundledSection.configuredPrice}}" userInput="2,460.00"/> |
| 102 | + |
| 103 | + <click stepKey="addFirstItemToCart2" selector="{{StorefrontBundledSection.updateCart}}"/> |
| 104 | + <waitForPageLoad stepKey="waitForElementAdded3"/> |
| 105 | + |
| 106 | + <!-- Go to the shopping cart page --> |
| 107 | + <amOnPage url="/checkout/cart/" stepKey="onPageShoppingCart2"/> |
| 108 | + <waitForPageLoad stepKey="waitForCartPageLoad2"/> |
| 109 | + |
| 110 | + <!-- Assert that the options are both there and the proce no longer matches --> |
| 111 | + <see stepKey="assertBothOptions" selector="{{CheckoutCartProductSection.nthItemOption('2')}}" userInput="$$simpleProduct1.sku$$"/> |
| 112 | + <see stepKey="assertBothOptions2" selector="{{CheckoutCartProductSection.nthItemOption('2')}}" userInput="$$simpleProduct2.sku$$"/> |
| 113 | + <grabTextFrom selector="{{CheckoutCartSummarySection.total}}" stepKey="grabTotalAfter"/> |
| 114 | + <assertNotEquals expected="{$grabTotalBefore}" expectedType="string" actual="{$grabTotalAfter}" actualType="string" stepKey="assertNotEquals"/> |
| 115 | + |
87 | 116 | </test>
|
88 | 117 | </tests>
|
0 commit comments