|
7 | 7 | --> |
8 | 8 | <tests xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
9 | 9 | xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/testSchema.xsd"> |
10 | | - <test name="SpecialPriceBundleProductInCartTest"> |
| 10 | + <test name="StorefrontSpecialPriceBundleProductInCartTest"> |
11 | 11 | <annotations> |
12 | 12 | <features value="Bundle"/> |
13 | 13 | <stories value="Check that the cart total is correct when the bundle product with special price added to the cart"/> |
14 | 14 | <title value="Customer should not be able to add a Bundle Product to the cart when added a special price for associated products"/> |
15 | 15 | <description value="Customer should not be able to add a Bundle Product to the cart when added a special price for associated products"/> |
16 | 16 | <severity value="MAJOR"/> |
17 | 17 | <testCaseId value="MC-19134"/> |
18 | | - <group value="Bundle"/> |
| 18 | + <group value="bundle"/> |
19 | 19 | </annotations> |
20 | 20 | <before> |
21 | | - <actionGroup ref="LoginAsAdmin" stepKey="login"/> |
22 | 21 | <createData entity="_defaultCategory" stepKey="category"/> |
23 | | - <!-- Create simple product and add special price --> |
| 22 | + <!-- Create simple product and add special price --> |
24 | 23 | <createData entity="SimpleProductWithSpecialPrice" stepKey="simpleProduct"> |
25 | 24 | <requiredEntity createDataKey="category"/> |
26 | 25 | </createData> |
| 26 | + <actionGroup ref="LoginAsAdmin" stepKey="login"/> |
27 | 27 | <amOnPage url="{{AdminProductEditPage.url($simpleProduct.id$)}}" stepKey="goToAdminProductPage"/> |
28 | | - <waitForPageLoad stepKey="waitForAdminProductPage"/> |
29 | 28 | <actionGroup ref="AddSpecialPriceToProductActionGroup" stepKey="addSpecialPrice"> |
30 | 29 | <argument name="price" value="{{SimpleProductWithSpecialPrice.special_price}}"/> |
31 | 30 | </actionGroup> |
32 | 31 | <actionGroup ref="saveProductForm" stepKey="saveSimpleProduct"/> |
33 | 32 | </before> |
34 | 33 | <after> |
| 34 | + <deleteData createDataKey="simpleProduct" stepKey="deleteSimpleProduct"/> |
| 35 | + <deleteData createDataKey="category" stepKey="deleteCategory"/> |
35 | 36 | <!-- Delete the bundled product --> |
36 | 37 | <actionGroup stepKey="deleteBundle" ref="deleteProductUsingProductGrid"> |
37 | 38 | <argument name="product" value="BundleProduct"/> |
38 | 39 | </actionGroup> |
39 | 40 | <actionGroup ref="AdminClearFiltersActionGroup" stepKey="ClearFiltersAfter"/> |
40 | | - <amOnPage url="{{AdminLogoutPage.url}}" stepKey="logout"/> |
41 | | - <deleteData createDataKey="simpleProduct" stepKey="deleteSimpleProduct"/> |
42 | | - <deleteData createDataKey="category" stepKey="deleteCategory"/> |
| 41 | + <actionGroup ref="logout" stepKey="logout"/> |
43 | 42 | </after> |
44 | 43 | <!--Go to bundle product creation page--> |
45 | 44 | <amOnPage url="{{AdminProductCreatePage.url(BundleProduct.set, BundleProduct.type)}}" stepKey="goToBundleProductCreationPage"/> |
46 | | - <waitForPageLoad stepKey="waitForBundleProductCreatePageToLoad"/> |
47 | 45 | <actionGroup ref="fillMainBundleProductForm" stepKey="fillMainFieldsForBundle"/> |
48 | 46 | <!-- Add Option, a "Radio Buttons" type option --> |
49 | 47 | <actionGroup ref="addBundleOptionWithOneProduct" stepKey="addBundleOptions"> |
|
58 | 56 | <actionGroup ref="saveProductForm" stepKey="saveBundleProduct"/> |
59 | 57 | <!-- Go to storefront BundleProduct --> |
60 | 58 | <amOnPage url="{{BundleProduct.sku}}.html" stepKey="goToStorefront"/> |
61 | | - <waitForPageLoad stepKey="waitForStorefront"/> |
62 | 59 | <actionGroup ref="StorefrontAddBundleProductFromProductToCartActionGroup" stepKey="addProductToCartFirstTime"> |
63 | 60 | <argument name="productName" value="{{BundleProduct.name}}"/> |
64 | 61 | </actionGroup> |
|
0 commit comments