23
23
<before >
24
24
<actionGroup ref =" LoginActionGroup" stepKey =" loginAsAdmin" />
25
25
26
+ <actionGroup ref =" deleteAllProductsUsingProductGrid" stepKey =" deleteAllProducts" />
27
+
26
28
<!-- Create Website -->
27
29
<actionGroup ref =" AdminCreateWebsiteActionGroup" stepKey =" createAdditionalWebsite" >
28
- <argument name =" newWebsiteName" value =" Second Website " />
29
- <argument name =" websiteCode" value =" second_website " />
30
+ <argument name =" newWebsiteName" value =" {{customWebsite.name}} " />
31
+ <argument name =" websiteCode" value =" {{customWebsite.code}} " />
30
32
</actionGroup >
31
33
32
34
<!-- Create Store -->
33
35
<actionGroup ref =" AdminCreateNewStoreGroupActionGroup" stepKey =" createNewStore" >
34
- <argument name =" website" value =" Second Website " />
35
- <argument name =" storeGroupName" value =" Second Store " />
36
- <argument name =" storeGroupCode" value =" second_store " />
36
+ <argument name =" website" value =" {{customWebsite.name}} " />
37
+ <argument name =" storeGroupName" value =" {{customStoreGroup.name}} " />
38
+ <argument name =" storeGroupCode" value =" {{customStoreGroup.code}} " />
37
39
</actionGroup >
38
40
39
41
<!-- Create Store view -->
42
44
<click selector =" {{AdminStoresMainActionsSection.createStoreViewButton}}" stepKey =" createStoreViewButton" />
43
45
<waitForPageLoad stepKey =" waitForProductPageLoad" />
44
46
<waitForElementVisible selector =" //legend[contains(., 'Store View Information')]" stepKey =" waitForNewStorePageToOpen" />
45
- <selectOption userInput =" Second Store " selector =" {{AdminNewStoreSection.storeGrpDropdown}}" stepKey =" selectStoreGroup" />
47
+ <selectOption userInput =" {{customStoreGroup.name}} " selector =" {{AdminNewStoreSection.storeGrpDropdown}}" stepKey =" selectStoreGroup" />
46
48
<fillField userInput =" Second Store View" selector =" {{AdminNewStoreSection.storeNameTextField}}" stepKey =" fillStoreViewName" />
47
49
<fillField userInput =" second_store_view" selector =" {{AdminNewStoreSection.storeCodeTextField}}" stepKey =" fillStoreViewCode" />
48
50
<selectOption selector =" {{AdminNewStoreSection.statusDropdown}}" userInput =" 1" stepKey =" enableStoreViewStatus" />
57
59
<!-- Create a Simple Product 1 -->
58
60
<actionGroup ref =" createSimpleProductAndAddToWebsite" stepKey =" createSimpleProduct1" >
59
61
<argument name =" product" value =" simpleProductForMassUpdate" />
60
- <argument name =" website" value =" Second Website " />
62
+ <argument name =" website" value =" {{customWebsite.name}} " />
61
63
</actionGroup >
62
64
63
65
<!-- Create a Simple Product 2 -->
64
66
<actionGroup ref =" createSimpleProductAndAddToWebsite" stepKey =" createSimpleProduct2" >
65
67
<argument name =" product" value =" simpleProductForMassUpdate2" />
66
- <argument name =" website" value =" Second Website " />
68
+ <argument name =" website" value =" {{customWebsite.name}} " />
67
69
</actionGroup >
68
70
</before >
69
71
<after >
72
+ <actionGroup ref =" AdminClearFiltersActionGroup" stepKey =" clearFilters" />
73
+
70
74
<!-- Delete website -->
71
75
<actionGroup ref =" AdminDeleteWebsiteActionGroup" stepKey =" deleteSecondWebsite" >
72
- <argument name =" websiteName" value =" Second Website " />
76
+ <argument name =" websiteName" value =" {{customWebsite.name}} " />
73
77
</actionGroup >
78
+
74
79
<amOnPage url =" {{AdminProductIndexPage.url}}" stepKey =" navigateToProductIndex" />
80
+ <waitForPageLoad stepKey =" waitForProductGridPageLoad" />
75
81
76
82
<!-- Delete Products -->
77
83
<actionGroup ref =" DeleteProductActionGroup" stepKey =" deleteProduct1" >
80
86
<actionGroup ref =" DeleteProductActionGroup" stepKey =" deleteProduct2" >
81
87
<argument name =" productName" value =" simpleProductForMassUpdate2.name" />
82
88
</actionGroup >
89
+
83
90
<actionGroup ref =" logout" stepKey =" amOnLogoutPage" />
84
91
</after >
85
92
105
112
<click selector =" {{AdminProductGridSection.bulkActionOption('Disable')}}" stepKey =" clickDisabled" />
106
113
<waitForPageLoad stepKey =" waitForBulkUpdatePage" />
107
114
115
+ <actionGroup ref =" AdminFilterStoreViewActionGroup" stepKey =" filterStoreViewAgain" >
116
+ <argument name =" customStore" value =" 'Second Store View'" />
117
+ </actionGroup >
118
+
108
119
<!-- Verify Product Statuses -->
109
120
<see selector =" {{AdminProductGridSection.productGridContentsOnRow('1')}}" userInput =" Enabled" stepKey =" checkIfProduct1IsEnabled" />
110
121
<see selector =" {{AdminProductGridSection.productGridContentsOnRow('2')}}" userInput =" Disabled" stepKey =" checkIfProduct2IsDisabled" />
157
168
</actionGroup >
158
169
<actionGroup ref =" StorefrontCheckAdvancedSearchResultActionGroup" stepKey =" StorefrontCheckAdvancedSearchResultDefault2" />
159
170
<see userInput =" We can't find any items matching these search criteria." selector =" {{StorefrontCatalogSearchAdvancedResultMainSection.message}}" stepKey =" seeInDefault2" />
160
- </test >
171
+ </test >
161
172
<test name =" AdminMassUpdateProductStatusStoreViewScopeMysqlTest" >
162
173
<annotations >
163
174
<features value =" Catalog" />
173
184
<before >
174
185
<actionGroup ref =" LoginActionGroup" stepKey =" loginAsAdmin" />
175
186
187
+ <actionGroup ref =" deleteAllProductsUsingProductGrid" stepKey =" deleteAllProducts" />
188
+
176
189
<!-- Create Website -->
177
190
<actionGroup ref =" AdminCreateWebsiteActionGroup" stepKey =" createAdditionalWebsite" >
178
- <argument name =" newWebsiteName" value =" Second Website " />
179
- <argument name =" websiteCode" value =" second_website " />
191
+ <argument name =" newWebsiteName" value =" {{customWebsite.name}} " />
192
+ <argument name =" websiteCode" value =" {{customWebsite.code}} " />
180
193
</actionGroup >
181
194
182
195
<!-- Create Store -->
183
196
<actionGroup ref =" AdminCreateNewStoreGroupActionGroup" stepKey =" createNewStore" >
184
- <argument name =" website" value =" Second Website " />
185
- <argument name =" storeGroupName" value =" Second Store " />
186
- <argument name =" storeGroupCode" value =" second_store " />
197
+ <argument name =" website" value =" {{customWebsite.name}} " />
198
+ <argument name =" storeGroupName" value =" {{customStoreGroup.name}} " />
199
+ <argument name =" storeGroupCode" value =" {{customStoreGroup.code}} " />
187
200
</actionGroup >
188
201
189
202
<!-- Create Store view -->
192
205
<click selector =" {{AdminStoresMainActionsSection.createStoreViewButton}}" stepKey =" createStoreViewButton" />
193
206
<waitForPageLoad stepKey =" waitForProductPageLoad" />
194
207
<waitForElementVisible selector =" //legend[contains(., 'Store View Information')]" stepKey =" waitForNewStorePageToOpen" />
195
- <selectOption userInput =" Second Store " selector =" {{AdminNewStoreSection.storeGrpDropdown}}" stepKey =" selectStoreGroup" />
208
+ <selectOption userInput =" {{customStoreGroup.name}} " selector =" {{AdminNewStoreSection.storeGrpDropdown}}" stepKey =" selectStoreGroup" />
196
209
<fillField userInput =" Second Store View" selector =" {{AdminNewStoreSection.storeNameTextField}}" stepKey =" fillStoreViewName" />
197
210
<fillField userInput =" second_store_view" selector =" {{AdminNewStoreSection.storeCodeTextField}}" stepKey =" fillStoreViewCode" />
198
211
<selectOption selector =" {{AdminNewStoreSection.statusDropdown}}" userInput =" 1" stepKey =" enableStoreViewStatus" />
207
220
<!-- Create a Simple Product 1 -->
208
221
<actionGroup ref =" createSimpleProductAndAddToWebsite" stepKey =" createSimpleProduct1" >
209
222
<argument name =" product" value =" simpleProductForMassUpdate" />
210
- <argument name =" website" value =" Second Website " />
223
+ <argument name =" website" value =" {{customWebsite.name}} " />
211
224
</actionGroup >
212
225
213
226
<!-- Create a Simple Product 2 -->
214
227
<actionGroup ref =" createSimpleProductAndAddToWebsite" stepKey =" createSimpleProduct2" >
215
228
<argument name =" product" value =" simpleProductForMassUpdate2" />
216
- <argument name =" website" value =" Second Website " />
229
+ <argument name =" website" value =" {{customWebsite.name}} " />
217
230
</actionGroup >
218
231
</before >
219
232
<after >
233
+ <actionGroup ref =" AdminClearFiltersActionGroup" stepKey =" clearFilters" />
234
+
220
235
<!-- Delete website -->
221
236
<actionGroup ref =" AdminDeleteWebsiteActionGroup" stepKey =" deleteSecondWebsite" >
222
- <argument name =" websiteName" value =" Second Website " />
237
+ <argument name =" websiteName" value =" {{customWebsite.name}} " />
223
238
</actionGroup >
224
239
<amOnPage url =" {{AdminProductIndexPage.url}}" stepKey =" navigateToProductIndex" />
225
240
255
270
<click selector =" {{AdminProductGridSection.bulkActionOption('Disable')}}" stepKey =" clickDisabled" />
256
271
<waitForPageLoad stepKey =" waitForBulkUpdatePage" />
257
272
273
+ <actionGroup ref =" AdminFilterStoreViewActionGroup" stepKey =" filterStoreViewAgain" >
274
+ <argument name =" customStore" value =" 'Second Store View'" />
275
+ </actionGroup >
276
+
258
277
<!-- Verify Product Statuses -->
259
278
<see selector =" {{AdminProductGridSection.productGridContentsOnRow('1')}}" userInput =" Enabled" stepKey =" checkIfProduct1IsEnabled" />
260
279
<see selector =" {{AdminProductGridSection.productGridContentsOnRow('2')}}" userInput =" Disabled" stepKey =" checkIfProduct2IsDisabled" />
299
318
<actionGroup ref =" StorefrontCheckAdvancedSearchResultActionGroup" stepKey =" StorefrontCheckAdvancedSearchResultDefault2" />
300
319
<see userInput =" We can't find any items matching these search criteria." selector =" {{StorefrontCatalogSearchAdvancedResultMainSection.message}}" stepKey =" seeInDefault2" />
301
320
</test >
302
- </tests >
321
+ </tests >
0 commit comments