|
50 | 50 | <argument name="product" value="SimpleProduct"/>
|
51 | 51 | </actionGroup>
|
52 | 52 | <!-- Add text swatch product to category -->
|
53 |
| - <searchAndMultiSelectOption selector="{{AdminProductFormSection.categoriesDropdown}}" parameterArray="[$$createCategory.name$$]" stepKey="fillCategory"/> |
| 53 | + <searchAndMultiSelectOption selector="{{AdminProductFormSection.categoriesDropdown}}" |
| 54 | + parameterArray="[$$createCategory.name$$]" stepKey="fillCategory"/> |
54 | 55 | <click selector="{{AdminProductFormSection.saveCategory}}" stepKey="saveCategory"/>
|
55 | 56 | <scrollToTopOfPage stepKey="scrollToTop0"/>
|
56 |
| - <selectOption selector="{{AdminProductFormSection.attributeRequiredInputField(textSwatchAttribute.attribute_code)}}" userInput="textSwatchOption1" stepKey="fillTheAttributeRequiredInputField"/> |
| 57 | + <selectOption |
| 58 | + selector="{{AdminProductFormSection.attributeRequiredInputField(textSwatchAttribute.attribute_code)}}" |
| 59 | + userInput="textSwatchOption1" stepKey="fillTheAttributeRequiredInputField"/> |
57 | 60 | <actionGroup ref="AdminProductFormSaveActionGroup" stepKey="clickSaveButton"/>
|
58 | 61 | <actionGroup ref="CliIndexerReindexActionGroup" stepKey="reindex">
|
59 | 62 | <argument name="indices" value=""/>
|
|
68 | 71 | <argument name="product" value="DownloadableProduct"/>
|
69 | 72 | </actionGroup>
|
70 | 73 | <!-- Add visual swatch product to category -->
|
71 |
| - <searchAndMultiSelectOption selector="{{AdminProductFormSection.categoriesDropdown}}" parameterArray="[$$createCategory.name$$]" stepKey="fillCategory1"/> |
| 74 | + <searchAndMultiSelectOption selector="{{AdminProductFormSection.categoriesDropdown}}" |
| 75 | + parameterArray="[$$createCategory.name$$]" stepKey="fillCategory1"/> |
72 | 76 | <click selector="{{AdminProductFormSection.saveCategory}}" stepKey="saveCategory1"/>
|
73 | 77 | <scrollToTopOfPage stepKey="scrollToTop1"/>
|
74 |
| - <selectOption selector="{{AdminProductFormSection.attributeRequiredInputField(ProductAttributeFrontendLabel.label)}}" userInput="visualSwatchOption2" stepKey="fillTheAttributeRequiredInputField1"/> |
| 78 | + <selectOption |
| 79 | + selector="{{AdminProductFormSection.attributeRequiredInputField(ProductAttributeFrontendLabel.label)}}" |
| 80 | + userInput="visualSwatchOption2" stepKey="fillTheAttributeRequiredInputField1"/> |
75 | 81 | <actionGroup ref="AdminProductFormSaveActionGroup" stepKey="clickSaveButton1"/>
|
76 | 82 | <actionGroup ref="CliIndexerReindexActionGroup" stepKey="reindex1">
|
77 | 83 | <argument name="indices" value=""/>
|
78 | 84 | </actionGroup>
|
79 | 85 | </before>
|
80 | 86 | <after>
|
81 | 87 | <!-- Delete text and visual swatch attributes -->
|
82 |
| - <actionGroup ref="OpenProductAttributeFromSearchResultInGridActionGroup" stepKey="openProductAttributeFromSearchResultInGrid0"> |
| 88 | + <actionGroup ref="OpenProductAttributeFromSearchResultInGridActionGroup" |
| 89 | + stepKey="openProductAttributeFromSearchResultInGrid0"> |
83 | 90 | <argument name="productAttributeCode" value="{{textSwatchAttribute.attribute_code}}"/>
|
84 | 91 | </actionGroup>
|
85 |
| - <actionGroup ref="DeleteProductAttributeByAttributeCodeActionGroup" stepKey="deleteProductAttributeByAttributeCode0"> |
| 92 | + <actionGroup ref="DeleteProductAttributeByAttributeCodeActionGroup" |
| 93 | + stepKey="deleteProductAttributeByAttributeCode0"> |
86 | 94 | <argument name="productAttributeCode" value="{{textSwatchAttribute.attribute_code}}"/>
|
87 | 95 | </actionGroup>
|
88 |
| - <actionGroup ref="AssertProductAttributeRemovedSuccessfullyActionGroup" stepKey="deleteProductAttributeSuccess0"/> |
89 |
| - <actionGroup ref="OpenProductAttributeFromSearchResultInGridActionGroup" stepKey="openProductAttributeFromSearchResultInGrid1"> |
| 96 | + <actionGroup ref="AssertProductAttributeRemovedSuccessfullyActionGroup" |
| 97 | + stepKey="deleteProductAttributeSuccess0"/> |
| 98 | + <actionGroup ref="OpenProductAttributeFromSearchResultInGridActionGroup" |
| 99 | + stepKey="openProductAttributeFromSearchResultInGrid1"> |
90 | 100 | <argument name="productAttributeCode" value="{{ProductAttributeFrontendLabel.label}}"/>
|
91 | 101 | </actionGroup>
|
92 |
| - <actionGroup ref="DeleteProductAttributeByAttributeCodeActionGroup" stepKey="deleteProductAttributeByAttributeCode1"> |
| 102 | + <actionGroup ref="DeleteProductAttributeByAttributeCodeActionGroup" |
| 103 | + stepKey="deleteProductAttributeByAttributeCode1"> |
93 | 104 | <argument name="productAttributeCode" value="{{ProductAttributeFrontendLabel.label}}"/>
|
94 | 105 | </actionGroup>
|
95 |
| - <actionGroup ref="AssertProductAttributeRemovedSuccessfullyActionGroup" stepKey="deleteProductAttributeSuccess1"/> |
| 106 | + <actionGroup ref="AssertProductAttributeRemovedSuccessfullyActionGroup" |
| 107 | + stepKey="deleteProductAttributeSuccess1"/> |
96 | 108 | <actionGroup ref="AdminOpenProductAttributePageActionGroup" stepKey="navigateToProductAttributeGrid"/>
|
97 | 109 | <click selector="{{AdminProductAttributeGridSection.ResetFilter}}" stepKey="resetFiltersOnGrid"/>
|
98 | 110 | <!-- Delete category -->
|
|
109 | 121 | <!--Assert that attribute values present in layered navigation -->
|
110 | 122 | <amOnPage url="$$createCategory.custom_attributes[url_key]$$.html" stepKey="amOnCategoryPage"/>
|
111 | 123 | <waitForPageLoad stepKey="waitForCategoryPageLoad"/>
|
112 |
| - <click selector="{{StorefrontCategorySidebarSection.seeLayeredNavigationCategoryTextSwatch}}" stepKey="clickTextSwatch"/> |
| 124 | + <click selector="{{StorefrontCategorySidebarSection.seeLayeredNavigationCategoryTextSwatch}}" |
| 125 | + stepKey="clickTextSwatch"/> |
113 | 126 | <click selector="{{StorefrontCategorySidebarSection.seeTextSwatchOption}}" stepKey="seeTextSwatch"/>
|
114 | 127 | <see userInput="{{SimpleProduct.name}}" stepKey="assertTextSwatchProduct"/>
|
115 | 128 | <!--Assert that attribute values present in layered navigation -->
|
116 | 129 | <amOnPage url="$$createCategory.custom_attributes[url_key]$$.html" stepKey="amOnCategoryPage1"/>
|
117 | 130 | <waitForPageLoad stepKey="waitForCategoryPageLoad1"/>
|
118 |
| - <click selector="{{StorefrontCategorySidebarSection.seeLayeredNavigationCategoryVisualSwatch}}" stepKey="clickVisualSwatch"/> |
| 131 | + <click selector="{{StorefrontCategorySidebarSection.seeLayeredNavigationCategoryVisualSwatch}}" |
| 132 | + stepKey="clickVisualSwatch"/> |
119 | 133 | <click selector="{{StorefrontCategorySidebarSection.seeVisualSwatchOption}}" stepKey="seeVisualSwatch"/>
|
120 | 134 | <see userInput="{{DownloadableProduct.name}}" stepKey="assertVisualSwatchProduct"/>
|
121 | 135 | <!--Verfiy the text swatch attribute product appears in search option with option one -->
|
122 | 136 | <actionGroup ref="StorefrontOpenHomePageActionGroup" stepKey="goToStorefrontPage"/>
|
123 | 137 | <actionGroup ref="StorefrontCheckQuickSearchStringActionGroup" stepKey="quickSearchForOptionOne">
|
124 | 138 | <argument name="phrase" value="textSwatchOption1"/>
|
125 | 139 | </actionGroup>
|
126 |
| - <see selector="{{StorefrontCategoryMainSection.productName}}" userInput="{{SimpleProduct.name}}" stepKey="seeTextSwatchAttributeProductName"/> |
| 140 | + <see selector="{{StorefrontCategoryMainSection.productName}}" userInput="{{SimpleProduct.name}}" |
| 141 | + stepKey="seeTextSwatchAttributeProductName"/> |
127 | 142 | <!--Verfiy the text swatch attribute product does not appears in search option with option two -->
|
128 | 143 | <actionGroup ref="StorefrontOpenHomePageActionGroup" stepKey="goToStorefrontPage1"/>
|
129 | 144 | <actionGroup ref="StorefrontCheckQuickSearchStringActionGroup" stepKey="quickSearchForOptionTwo">
|
130 | 145 | <argument name="phrase" value="textSwatchOption2"/>
|
131 | 146 | </actionGroup>
|
132 |
| - <dontSee selector="{{StorefrontCatalogSearchMainSection.searchResults}}" userInput="{{SimpleProduct.name}}" stepKey="doNotSeeProduct"/> |
| 147 | + <dontSee selector="{{StorefrontCatalogSearchMainSection.searchResults}}" userInput="{{SimpleProduct.name}}" |
| 148 | + stepKey="doNotSeeProduct"/> |
133 | 149 | <!--Verfiy the visual swatch attribute product appears in search option with option two -->
|
134 | 150 | <actionGroup ref="StorefrontOpenHomePageActionGroup" stepKey="goToStorefrontPage2"/>
|
135 | 151 | <actionGroup ref="StorefrontCheckQuickSearchStringActionGroup" stepKey="quickSearchForOptionTwo1">
|
136 | 152 | <argument name="phrase" value="visualSwatchOption2"/>
|
137 | 153 | </actionGroup>
|
138 |
| - <waitForText selector="{{StorefrontCategoryMainSection.productName}}" userInput="{{DownloadableProduct.name}}" stepKey="seeVisualSwatchAttributeProductName"/> |
| 154 | + <waitForText selector="{{StorefrontCategoryMainSection.productName}}" userInput="{{DownloadableProduct.name}}" |
| 155 | + stepKey="seeVisualSwatchAttributeProductName"/> |
139 | 156 | <!--Verfiy the visual swatch attribute product does not appear in search option with option one -->
|
140 | 157 | <actionGroup ref="StorefrontOpenHomePageActionGroup" stepKey="goToStorefrontPage3"/>
|
141 | 158 | <actionGroup ref="StorefrontCheckQuickSearchStringActionGroup" stepKey="quickSearchForOptionOne1">
|
142 | 159 | <argument name="phrase" value="visualSwatchOption1"/>
|
143 | 160 | </actionGroup>
|
144 |
| - <dontSee selector="{{StorefrontCatalogSearchMainSection.searchResults}}" userInput="{{DownloadableProduct.name}}" stepKey="doNotSeeProduct1"/> |
| 161 | + <dontSee selector="{{StorefrontCatalogSearchMainSection.searchResults}}" |
| 162 | + userInput="{{DownloadableProduct.name}}" stepKey="doNotSeeProduct1"/> |
145 | 163 | </test>
|
146 | 164 | </tests>
|
0 commit comments