123456789101112131415161718192021222324252627282930313233 |
- <?xml version="1.0" encoding="UTF-8"?>
- <!--
- /**
- * Copyright © Magento, Inc. All rights reserved.
- * See COPYING.txt for license details.
- */
- -->
- <tests xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/testSchema.xsd">
- <test name="AdminAddDefaultVideoSimpleProductTest">
- <annotations>
- <group value="ProductVideo"/>
- </annotations>
- <before>
- <!-- Set product video Youtube api key configuration -->
- <createData entity="ProductVideoYoutubeApiKeyConfig" stepKey="setStoreConfig" after="loginAsAdmin"/>
- </before>
- <after>
- <!-- Set product video configuration to default -->
- <createData entity="DefaultProductVideoConfig" stepKey="setStoreDefaultConfig" before="amOnLogoutPage"/>
- </after>
- <!-- Add product video -->
- <actionGroup ref="addProductVideo" stepKey="addProductVideo" after="fillMainProductForm"/>
- <!-- Assert product video in admin product form -->
- <actionGroup ref="assertProductVideoAdminProductPage" stepKey="assertProductVideoAdminProductPage" after="saveProductForm"/>
- <!-- Assert product video in storefront product page -->
- <actionGroup ref="assertProductVideoStorefrontProductPage" stepKey="assertProductVideoStorefrontProductPage" after="AssertProductInStorefrontProductPage"/>
- </test>
- </tests>
|