Skip to content

Commit 95c560d

Browse files
committed
MC-220: Admin should be able to select a “Bundle Product” product type when adding a new product
1 parent 96da9ee commit 95c560d

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!--
3+
/**
4+
* Copyright © Magento, Inc. All rights reserved.
5+
* See COPYING.txt for license details.
6+
*/
7+
-->
8+
9+
<tests xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
10+
xsi:noNamespaceSchemaLocation="../../../../../../vendor/magento/magento2-functional-testing-framework/src/Magento/FunctionalTestingFramework/Test/etc/testSchema.xsd">
11+
<test name="NewBundleProductSelectionTest">
12+
<annotations>
13+
<features value="Bundle"/>
14+
<stories value="Create/Edit bundle product in Admin"/>
15+
<title value="Admin should be able to select a “Bundle Product” product type when adding a new product"/>
16+
<description value="Admin should be able to select a “Bundle Product” product type when adding a new product"/>
17+
<severity value="CRITICAL"/>
18+
<testCaseId value="MC-220"/>
19+
<group value="Bundle"/>
20+
</annotations>
21+
<before>
22+
<actionGroup ref="LoginAsAdmin" stepKey="loginAsAdmin"/>
23+
</before>
24+
<after>
25+
<amOnPage url="{{AdminLogoutPage.url}}" stepKey="amOnLogoutPage"/>
26+
</after>
27+
<amOnPage url="{{AdminCatalogProductPage.url}}" stepKey="GoToCatalogProductPage"/>
28+
<waitForPageLoad stepKey="WaitForPageToLoad"/>
29+
<!--Selecting new bundle product-->
30+
<actionGroup ref="goToCreateProductPage" stepKey="goToCreateBundleProduct">
31+
<argument name="product" value="BundleProduct"/>
32+
</actionGroup>
33+
<!--Testing if on the bundle product creation page-->
34+
<seeElement selector="{{AdminProductFormBundleSection.bundleOptionsDropDown}}" stepKey="CheckForPresenceOfBundleProductFeatures"/>
35+
</test>
36+
</tests>

0 commit comments

Comments
 (0)