|
10 | 10 | xsi:noNamespaceSchemaLocation="../../../../../../vendor/magento/magento2-functional-testing-framework/src/Magento/FunctionalTestingFramework/Test/etc/testSchema.xsd">
|
11 | 11 | <test name="AdminAddDefaultVideoSimpleProductTest">
|
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 add default product video for a Simple Product"/> |
16 |
| - <description value="Admin should be able to add default product video for a Simple Product"/> |
17 |
| - <severity value="MAJOR"/> |
18 |
| - <testCaseId value="MC-111"/> |
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"/> |
45 | 26 |
|
46 | 27 | <!-- Assert product video in admin product form -->
|
47 |
| - <actionGroup ref="assertProductVideoAdminProductPage" stepKey="assertProductVideoAdminProductPage"/> |
48 |
| - <!-- Assert product in storefront product page --> |
49 |
| - <actionGroup ref="AssertProductInStorefrontProductPage" stepKey="AssertProductInStorefrontProductPage"> |
50 |
| - <argument name="product" value="ApiSimpleProduct"/> |
51 |
| - </actionGroup> |
| 28 | + <actionGroup ref="assertProductVideoAdminProductPage" stepKey="assertProductVideoAdminProductPage" after="saveProductForm"/> |
| 29 | + |
52 | 30 | <!-- Assert product video in storefront product page -->
|
53 |
| - <actionGroup ref="assertProductVideoStorefrontProductPage" stepKey="assertProductVideoStorefrontProductPage"/> |
| 31 | + <actionGroup ref="assertProductVideoStorefrontProductPage" stepKey="assertProductVideoStorefrontProductPage" after="AssertProductInStorefrontProductPage"/> |
54 | 32 | </test>
|
55 | 33 | </tests>
|
0 commit comments