Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.
 
 
 
 
 
 

50 строки
2.6 KiB

  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="StorefrontConfigurableSwatchOptionsThumbImagesTest"
  11. extends="StorefrontConfigurableOptionsThumbImagesTest">
  12. <annotations>
  13. <features value="Swatches"/>
  14. <stories value="Configurable product with swatch attribute"/>
  15. <title value="Check thumbnail images and active image for Configurable Product with swatch attribute"/>
  16. <description value="Login as admin, create attribute with two options, configurable product with two
  17. associated simple products. Add few images for products, check the fotorama thumbnail images
  18. (visible and active) for each selected option for the configurable product"/>
  19. <severity value="MAJOR"/>
  20. <group value="swatches"/>
  21. </annotations>
  22. <before>
  23. <!-- Go to created attribute (attribute page) -->
  24. <actionGroup ref="NavigateToEditProductAttributeActionGroup" stepKey="navigateToSkuProductAttribute" after="createConfigProductOption">
  25. <argument name="ProductAttribute" value="$$createConfigProductAttribute.default_frontend_label$$"/>
  26. </actionGroup>
  27. <!-- Set 'swatch_visual' value for option "Catalog Input Type for Store Owner" -->
  28. <actionGroup ref="AdminUpdateAttributeInputTypeActionGroup" stepKey="selectSwatchVisualInputType" after="navigateToSkuProductAttribute"/>
  29. <!-- Set 'yes' value for option "Update Product Preview Image" -->
  30. <actionGroup ref="AdminUpdateProductPreviewImageActionGroup" stepKey="setUpdateProductPreviewImage" after="selectSwatchVisualInputType"/>
  31. <!-- Save Product Attribute -->
  32. <actionGroup ref="SaveProductAttributeActionGroup" stepKey="saveAttribute" after="setUpdateProductPreviewImage"/>
  33. </before>
  34. <!-- Select first option -->
  35. <actionGroup ref="StorefrontSelectSwatchOptionOnProductPageActionGroup" stepKey="selectFirstOptionValue">
  36. <argument name="optionName" value="$$getConfigAttributeOption1.label$$"/>
  37. </actionGroup>
  38. <!-- Select second option -->
  39. <actionGroup ref="StorefrontSelectSwatchOptionOnProductPageActionGroup" stepKey="selectSecondOptionValue">
  40. <argument name="optionName" value="$$getConfigAttributeOption2.label$$"/>
  41. </actionGroup>
  42. </test>
  43. </tests>