File tree Expand file tree Collapse file tree 2 files changed +10
-3
lines changed
dev/tests/acceptance/tests/functional/Magento/FunctionalTest/Bundle Expand file tree Collapse file tree 2 files changed +10
-3
lines changed Original file line number Diff line number Diff line change 10
10
xsi : noNamespaceSchemaLocation =" ../../../../../../vendor/magento/magento2-functional-testing-framework/src/Magento/FunctionalTestingFramework/Page/etc/SectionObject.xsd" >
11
11
<section name =" StorefrontBundledSection" >
12
12
<element name =" nthBundledOption" type =" input" selector =" .option:nth-of-type({{numOption}}) .choice:nth-of-type({{numOptionSelect}}) input" parameterized =" true" />
13
- <element name =" addToCart" type =" button" selector =" #bundle-slide" />
14
- <element name =" addToCartConfigured" type =" button" selector =" #product-addtocart-button" />
15
- <element name =" updateCart" type =" button" selector =" #product-updatecart-button" />
13
+ <element name =" addToCart" type =" button" selector =" #bundle-slide" timeout = " 30 " />
14
+ <element name =" addToCartConfigured" type =" button" selector =" #product-addtocart-button" timeout = " 30 " />
15
+ <element name =" updateCart" type =" button" selector =" #product-updatecart-button" timeout = " 30 " />
16
16
<element name =" configuredPrice" type =" block" selector =" .price-configured_price .price" />
17
17
</section >
18
18
</sections >
Original file line number Diff line number Diff line change 89
89
<amOnPage url =" /checkout/cart/" stepKey =" onPageShoppingCart" />
90
90
<waitForPageLoad stepKey =" waitForCartPageLoad" />
91
91
<waitForElementVisible stepKey =" waitForInfoDropdown" selector =" {{CheckoutCartSummarySection.total}}" />
92
+ <waitForPageLoad stepKey =" waitForCartPageLoad3" />
92
93
<grabTextFrom selector =" {{CheckoutCartSummarySection.total}}" stepKey =" grabTotalBefore" />
93
94
<click stepKey =" clickEdit" selector =" {{CheckoutCartProductSection.nthEditButton('1')}}" />
94
95
<waitForPageLoad stepKey =" waitForStorefront2" />
110
111
<!-- Assert that the options are both there and the proce no longer matches -->
111
112
<see stepKey =" assertBothOptions" selector =" {{CheckoutCartProductSection.nthItemOption('2')}}" userInput =" $$simpleProduct1.sku$$" />
112
113
<see stepKey =" assertBothOptions2" selector =" {{CheckoutCartProductSection.nthItemOption('2')}}" userInput =" $$simpleProduct2.sku$$" />
114
+ <waitForElementVisible stepKey =" waitForInfoDropdown2" selector =" {{CheckoutCartSummarySection.total}}" />
115
+ <waitForPageLoad stepKey =" waitForCartPageLoad4" />
113
116
<grabTextFrom selector =" {{CheckoutCartSummarySection.total}}" stepKey =" grabTotalAfter" />
114
117
<assertNotEquals expected =" {$grabTotalBefore}" expectedType =" string" actual =" {$grabTotalAfter}" actualType =" string" stepKey =" assertNotEquals" />
115
118
119
+ <!-- Delete the bundled product -->
120
+ <actionGroup stepKey =" deleteBundle" ref =" deleteProductUsingProductGrid" >
121
+ <argument name =" product" value =" BundleProduct" />
122
+ </actionGroup >
116
123
</test >
117
124
</tests >
You can’t perform that action at this time.
0 commit comments