AdminAddDefaultVideoSimpleProductTest.xml 1.4 KB

123456789101112131415161718192021222324252627282930313233
  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. <tests xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  9. xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/testSchema.xsd">
  10. <test name="AdminAddDefaultVideoSimpleProductTest">
  11. <annotations>
  12. <group value="ProductVideo"/>
  13. </annotations>
  14. <before>
  15. <!-- Set product video Youtube api key configuration -->
  16. <createData entity="ProductVideoYoutubeApiKeyConfig" stepKey="setStoreConfig" after="loginAsAdmin"/>
  17. </before>
  18. <after>
  19. <!-- Set product video configuration to default -->
  20. <createData entity="DefaultProductVideoConfig" stepKey="setStoreDefaultConfig" before="amOnLogoutPage"/>
  21. </after>
  22. <!-- Add product video -->
  23. <actionGroup ref="addProductVideo" stepKey="addProductVideo" after="fillMainProductForm"/>
  24. <!-- Assert product video in admin product form -->
  25. <actionGroup ref="assertProductVideoAdminProductPage" stepKey="assertProductVideoAdminProductPage" after="saveProductForm"/>
  26. <!-- Assert product video in storefront product page -->
  27. <actionGroup ref="assertProductVideoStorefrontProductPage" stepKey="assertProductVideoStorefrontProductPage" after="AssertProductInStorefrontProductPage"/>
  28. </test>
  29. </tests>