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

97 строки
5.8 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="StorefrontSwatchAttributesDisplayInWidgetCMSTest" deprecated="Use StorefrontSwatchAttributeDisplayedInWidgetCMSTest instead">
  11. <annotations>
  12. <features value="ConfigurableProduct"/>
  13. <stories value="Swatches"/>
  14. <title value="Deprecated. Swatch Attribute is not displayed in the Widget CMS"/>
  15. <description value="Deprecated. Swatch Attribute is not displayed in the Widget CMS"/>
  16. <severity value="MAJOR"/>
  17. <testCaseId value="MAGETWO-96469"/>
  18. <useCaseId value="MAGETWO-96406"/>
  19. <group value="ConfigurableProduct"/>
  20. <skip>
  21. <issueId value="DEPRECATED">Use StorefrontSwatchAttributeDisplayedInWidgetCMSTest instead</issueId>
  22. </skip>
  23. <group value="pr_exclude"/>
  24. </annotations>
  25. <before>
  26. <actionGroup ref="AdminDisableWYSIWYGActionGroup" stepKey="disableWYSIWYG"/>
  27. <createData entity="NewRootCategory" stepKey="createRootCategory"/>
  28. </before>
  29. <after>
  30. <!--delete created configurable product-->
  31. <actionGroup ref="DeleteProductUsingProductGridActionGroup" stepKey="deleteProduct">
  32. <argument name="product" value="BaseConfigurableProduct"/>
  33. </actionGroup>
  34. <comment userInput="BIC workaround" stepKey="visitAdminProductPage"/>
  35. <actionGroup ref="ResetAdminDataGridToDefaultViewActionGroup" stepKey="clickClearFiltersInitial"/>
  36. <actionGroup ref="AdminDeleteProductAttributeByLabelActionGroup" stepKey="deleteAttribute">
  37. <argument name="productAttributeLabel" value="{{visualSwatchAttribute.default_label}}"/>
  38. </actionGroup>
  39. <!-- Reindex after deleting product attribute -->
  40. <actionGroup ref="CliIndexerReindexActionGroup" stepKey="reindex">
  41. <argument name="indices" value=""/>
  42. </actionGroup>
  43. <!--delete root category-->
  44. <actionGroup ref="AdminOpenCategoryPageActionGroup" stepKey="navigateToCategoryPage"/>
  45. <click selector="{{AdminCategorySidebarTreeSection.categoryInTree('$$createRootCategory.name$$')}}" stepKey="clickOnDefaultRootCategory"/>
  46. <waitForPageLoad stepKey="waitForPageDefaultCategoryEditLoad" />
  47. <seeElement selector="{{AdminCategoryMainActionsSection.DeleteButton}}" stepKey="assertDeleteButtonIsPresent1"/>
  48. <click selector="{{AdminCategoryMainActionsSection.DeleteButton}}" stepKey="DeleteDefaultRootCategory"/>
  49. <waitForElementVisible selector="{{AdminCategoryModalSection.ok}}" stepKey="waitForModalDeleteDefaultRootCategory" />
  50. <click selector="{{AdminCategoryModalSection.ok}}" stepKey="acceptModal1"/>
  51. <waitForElementVisible selector="{{AdminCategoryMessagesSection.SuccessMessage}}" stepKey="waitForPageReloadAfterDeleteDefaultCategory"/>
  52. <actionGroup ref="EnabledWYSIWYGActionGroup" stepKey="enableWYSIWYG"/>
  53. <!--logout-->
  54. <actionGroup ref="AdminLogoutActionGroup" stepKey="logoutFromAdmin"/>
  55. </after>
  56. <!--Login-->
  57. <actionGroup ref="AdminLoginActionGroup" stepKey="loginToAdmin"/>
  58. <!--Create a configurable swatch product via the UI -->
  59. <actionGroup ref="AdminOpenProductIndexPageActionGroup" stepKey="goToProductIndex"/>
  60. <actionGroup ref="GoToCreateProductPageActionGroup" stepKey="goToCreateProductPage">
  61. <argument name="product" value="BaseConfigurableProduct"/>
  62. </actionGroup>
  63. <actionGroup ref="FillMainProductFormActionGroup" stepKey="fillProductForm">
  64. <argument name="product" value="BaseConfigurableProduct"/>
  65. </actionGroup>
  66. <searchAndMultiSelectOption selector="{{AdminProductFormSection.categoriesDropdown}}" parameterArray="[$$createRootCategory.name$$]" stepKey="searchAndSelectCategory"/>
  67. <!--Add swatch attribute to configurable product-->
  68. <actionGroup ref="AddVisualSwatchToProductWithStorefrontConfigActionGroup" stepKey="addSwatchToProduct"/>
  69. <!--Create CMS page-->
  70. <actionGroup ref="CreateNewPageWithWidget" stepKey="createCMSPageWithWidget">
  71. <argument name="category" value="$$createRootCategory.name$$"/>
  72. <argument name="condition" value="Category"/>
  73. <argument name="widgetType" value="Catalog Products List"/>
  74. </actionGroup>
  75. <click selector="{{CmsNewPagePageSeoSection.header}}" stepKey="clickToExpandSEOSection"/>
  76. <scrollTo selector="{{CmsNewPagePageSeoSection.urlKey}}" stepKey="scrollToUrlKey"/>
  77. <grabValueFrom selector="{{CmsNewPagePageSeoSection.urlKey}}" stepKey="grabTextFromUrlKey"/>
  78. <actionGroup ref="AdminLogoutActionGroup" stepKey="logout"/>
  79. <!--Open Storefront page for the new created page-->
  80. <amOnPage url="{{StorefrontHomePage.url}}$grabTextFromUrlKey" stepKey="gotToCreatedCmsPage"/>
  81. <waitForPageLoad stepKey="waitForPageLoad"/>
  82. <seeElement selector="{{StorefrontProductInfoMainSection.productSwatch(visualSwatchOption1.default_label)}}" stepKey="assertAddedWidgetS"/>
  83. <seeElement selector="{{StorefrontProductInfoMainSection.productSwatch(visualSwatchOption2.default_label)}}" stepKey="assertAddedWidgetM"/>
  84. <!--Login to delete CMS page-->
  85. <actionGroup ref="AdminLoginActionGroup" stepKey="loginAsAdmin"/>
  86. <actionGroup ref="DeletePageByUrlKeyActionGroup" stepKey="deletePage">
  87. <argument name="UrlKey" value="$grabTextFromUrlKey"/>
  88. </actionGroup>
  89. </test>
  90. </tests>