|
10 | 10 | xsi:noNamespaceSchemaLocation="../../../../../../vendor/magento/magento2-functional-testing-framework/src/Magento/FunctionalTestingFramework/Test/etc/testSchema.xsd">
|
11 | 11 | <test name="AdminRemoveDefaultVideoSimpleProductTest">
|
12 | 12 | <annotations>
|
13 |
| - <features value="ProductVideo"/> |
14 |
| - <stories value="Add/remove images and videos for all product types and category"/> |
15 |
| - <title value="Admin should be able to remove default product video from a Simple Product"/> |
16 |
| - <description value="Admin should be able to remove default product video from a Simple Product"/> |
17 |
| - <severity value="MAJOR"/> |
18 |
| - <testCaseId value="MC-206"/> |
19 | 13 | <group value="ProductVideo"/>
|
20 | 14 | </annotations>
|
21 | 15 | <before>
|
22 |
| - <actionGroup ref="LoginAsAdmin" stepKey="loginAsAdmin"/> |
23 | 16 | <!-- Set product video Youtube api key configuration -->
|
24 |
| - <createData entity="ProductVideoYoutubeApiKeyConfig" stepKey="setStoreConfig"/> |
| 17 | + <createData entity="ProductVideoYoutubeApiKeyConfig" stepKey="setStoreConfig" after="loginAsAdmin"/> |
25 | 18 | </before>
|
26 | 19 | <after>
|
27 |
| - <amOnPage url="{{AdminLogoutPage.url}}" stepKey="amOnLogoutPage"/> |
28 |
| - <!-- Set product video default configuration --> |
29 |
| - <createData entity="DefaultProductVideoConfig" stepKey="setStoreDefaultConfig"/> |
| 20 | + <!-- Set product video configuration to default --> |
| 21 | + <createData entity="DefaultProductVideoConfig" stepKey="setStoreDefaultConfig" before="amOnLogoutPage"/> |
30 | 22 | </after>
|
31 | 23 |
|
32 |
| - <!-- Create product --> |
33 |
| - <amOnPage url="{{AdminProductIndexPage.url}}" stepKey="adminProductIndexPageAdd"/> |
34 |
| - <waitForPageLoad stepKey="waitForProductIndexPageLoad"/> |
35 |
| - <actionGroup ref="goToCreateProductPage" stepKey="goToCreateProductPage"> |
36 |
| - <argument name="product" value="ApiSimpleProduct"/> |
37 |
| - </actionGroup> |
38 |
| - <actionGroup ref="fillMainProductFormNoWeight" stepKey="fillMainProductForm"> |
39 |
| - <argument name="product" value="ApiSimpleProduct"/> |
40 |
| - </actionGroup> |
41 | 24 | <!-- Add product video -->
|
42 |
| - <actionGroup ref="addProductVideo" stepKey="addProductVideo"/> |
43 |
| - <!-- Save product --> |
44 |
| - <actionGroup ref="saveProductForm" stepKey="saveProductForm"/> |
| 25 | + <actionGroup ref="addProductVideo" stepKey="addProductVideo" after="fillMainProductForm"/> |
| 26 | + |
45 | 27 | <!-- Remove product video -->
|
46 |
| - <actionGroup ref="removeProductVideo" stepKey="removeProductVideo"/> |
47 |
| - <!-- Save product --> |
48 |
| - <actionGroup ref="saveProductForm" stepKey="saveProductFormAfterRemove"/> |
| 28 | + <actionGroup ref="removeProductVideo" stepKey="removeProductVideo" after="saveProductForm"/> |
49 | 29 |
|
50 | 30 | <!-- Assert product video not in admin product form -->
|
51 |
| - <actionGroup ref="assertProductVideoNotInAdminProductPage" stepKey="assertProductVideoNotInAdminProductPage"/> |
52 |
| - <!-- Assert product in storefront product page --> |
53 |
| - <actionGroup ref="AssertProductInStorefrontProductPage" stepKey="AssertProductInStorefrontProductPageAfterRemove"> |
54 |
| - <argument name="product" value="ApiSimpleProduct"/> |
55 |
| - </actionGroup> |
| 31 | + <actionGroup ref="assertProductVideoNotInAdminProductPage" stepKey="assertProductVideoNotInAdminProductPage" after="saveProductFormAfterRemove"/> |
| 32 | + |
56 | 33 | <!-- Assert product video not in storefront product page -->
|
57 |
| - <actionGroup ref="assertProductVideoNotInStorefrontProductPage" stepKey="assertProductVideoNotInStorefrontProductPage"/> |
| 34 | + <actionGroup ref="assertProductVideoNotInStorefrontProductPage" stepKey="assertProductVideoNotInStorefrontProductPage" after="AssertProductInStorefrontProductPage"/> |
58 | 35 | </test>
|
59 | 36 | </tests>
|
0 commit comments