|
19 | 19 | </annotations>
|
20 | 20 | <before>
|
21 | 21 | <actionGroup ref="LoginAsAdmin" stepKey="loginAsAdmin"/>
|
22 |
| - <!--Create website, Sore adn Store View--> |
23 |
| - <actionGroup ref="AdminCreateWebsiteActionGroup" stepKey="adminCreateWebsite"> |
24 |
| - <argument name="newWebsiteName" value="secondWebsite"/> |
25 |
| - <argument name="websiteCode" value="second_website"/> |
| 22 | + <!--Create website, Store and Store View--> |
| 23 | + <actionGroup ref="AdminCreateWebsiteActionGroup" stepKey="createSecondWebsite"> |
| 24 | + <argument name="newWebsiteName" value="{{secondCustomWebsite.name}}"/> |
| 25 | + <argument name="websiteCode" value="{{secondCustomWebsite.code}}"/> |
26 | 26 | </actionGroup>
|
27 |
| - <actionGroup ref="AdminCreateNewStoreGroupActionGroup" stepKey="adminCreateStore"> |
28 |
| - <argument name="website" value="secondWebsite"/> |
29 |
| - <argument name="storeGroupName" value="secondStore"/> |
30 |
| - <argument name="storeGroupCode" value="second_store"/> |
| 27 | + <actionGroup ref="AdminCreateNewStoreGroupActionGroup" stepKey="createSecondStoreGroup"> |
| 28 | + <argument name="website" value="{{secondCustomWebsite.name}}"/> |
| 29 | + <argument name="storeGroupName" value="{{SecondStoreGroupUnique.name}}"/> |
| 30 | + <argument name="storeGroupCode" value="{{SecondStoreGroupUnique.code}}"/> |
31 | 31 | </actionGroup>
|
32 |
| - <actionGroup ref="AdminCreateStoreViewActionGroup" stepKey="adminCreateStoreView"> |
33 |
| - <argument name="StoreGroup" value="customStoreTierPrice"/> |
34 |
| - <argument name="customStore" value="customStoreView"/> |
| 32 | + <actionGroup ref="AdminCreateStoreViewActionGroup" stepKey="createSecondStoreView"> |
| 33 | + <argument name="StoreGroup" value="SecondStoreGroupUnique"/> |
| 34 | + <argument name="customStore" value="SecondStoreUnique"/> |
35 | 35 | </actionGroup>
|
36 | 36 |
|
37 | 37 | <!--Create Simple Product and Category -->
|
|
60 | 60 | <click selector="{{ProductInWebsitesSection.sectionHeader}}" stepKey="clickToOpenWebsiteSection"/>
|
61 | 61 | <waitForPageLoad stepKey="waitForToOpenedWebsiteSection"/>
|
62 | 62 | <uncheckOption selector="{{ProductInWebsitesSection.website('Main Website')}}" stepKey="uncheckWebsite"/>
|
63 |
| - <click selector="{{AdminProductFormActionSection.saveButton}}" stepKey="clickSaveProduct"/> |
64 |
| - <see selector="{{AdminProductMessagesSection.successMessage}}" userInput="You saved the product." |
65 |
| - stepKey="seeSuccessMessage"/> |
| 63 | + <actionGroup ref="saveProductForm" stepKey="saveProduct1"/> |
66 | 64 |
|
67 | 65 | <!-- Set filter to product name and product2 in website 2 only -->
|
68 | 66 | <actionGroup ref="SearchForProductOnBackendActionGroup" stepKey="searchForProduct2">
|
|
72 | 70 | <argument name="product" value="$$createProduct2$$"/>
|
73 | 71 | </actionGroup>
|
74 | 72 | <actionGroup ref="SelectProductInWebsitesActionGroup" stepKey="selectProductInWebsites">
|
75 |
| - <argument name="website" value="secondWebsite"/> |
| 73 | + <argument name="website" value="{{secondCustomWebsite.name}}"/> |
76 | 74 | </actionGroup>
|
77 | 75 | <uncheckOption selector="{{ProductInWebsitesSection.website('Main Website')}}" stepKey="uncheckWebsite1"/>
|
78 |
| - <click selector="{{AdminProductFormActionSection.saveButton}}" stepKey="clickSaveProduct1"/> |
79 |
| - <see selector="{{AdminProductMessagesSection.successMessage}}" userInput="You saved the product." |
80 |
| - stepKey="seeSuccessMessage1"/> |
| 76 | + <actionGroup ref="saveProductForm" stepKey="saveProduct2"/> |
81 | 77 |
|
82 | 78 | <!-- Set filter to product name and product12 assigned to both websites 1 and 2 -->
|
83 | 79 | <actionGroup ref="SearchForProductOnBackendActionGroup" stepKey="searchForProduct12">
|
|
87 | 83 | <argument name="product" value="$$createProduct12$$"/>
|
88 | 84 | </actionGroup>
|
89 | 85 | <actionGroup ref="SelectProductInWebsitesActionGroup" stepKey="selectProductInWebsites1">
|
90 |
| - <argument name="website" value="secondWebsite"/> |
| 86 | + <argument name="website" value="{{secondCustomWebsite.name}}"/> |
91 | 87 | </actionGroup>
|
92 |
| - <click selector="{{AdminProductFormActionSection.saveButton}}" stepKey="clickSaveProduct2"/> |
93 |
| - <see selector="{{AdminProductMessagesSection.successMessage}}" userInput="You saved the product." |
94 |
| - stepKey="seeSuccessMessage2"/> |
| 88 | + <actionGroup ref="saveProductForm" stepKey="saveProduct3"/> |
95 | 89 | </before>
|
96 | 90 | <after>
|
97 | 91 | <actionGroup ref="AdminDeleteWebsiteActionGroup" stepKey="deleteWebsite">
|
98 |
| - <argument name="websiteName" value="secondWebsite"/> |
| 92 | + <argument name="websiteName" value="{{secondCustomWebsite.name}}"/> |
99 | 93 | </actionGroup>
|
100 | 94 | <actionGroup ref="ClearProductsFilterActionGroup" stepKey="clearProductsFilter"/>
|
101 | 95 | <deleteData createDataKey="createProduct0" stepKey="deleteProduct"/>
|
|
107 | 101 | </after>
|
108 | 102 | <!-- Step 1-2: Open Category page and Set scope selector to All Store Views-->
|
109 | 103 | <amOnPage url="{{AdminCategoryPage.url}}" stepKey="goToCategoryPage"/>
|
110 |
| - <waitForPageLoad stepKey="waitForCategoryPageLoad"/> |
111 | 104 | <click selector="{{AdminCategorySidebarTreeSection.categoryInTree($$createCategory.name$$)}}"
|
112 | 105 | stepKey="clickCategoryName"/>
|
113 | 106 | <click selector="{{AdminCategoryProductsSection.sectionHeader}}" stepKey="openProductSection"/>
|
|
126 | 119 |
|
127 | 120 | <!-- Step 3: Set scope selector to Website1( Storeview for the Website 1) -->
|
128 | 121 | <scrollToTopOfPage stepKey="scrollToTopOfPage"/>
|
129 |
| - <click selector="{{AdminCategoryMainActionsSection.CategoryStoreViewDropdownToggle}}" |
130 |
| - stepKey="clickStoresList"/> |
131 |
| - <waitForPageLoad stepKey="waitForCategoryPageLoad1"/> |
132 |
| - <click selector="{{AdminCategoryMainActionsSection.CategoryStoreViewOption('Default Store View')}}" |
133 |
| - stepKey="clickStoreView"/> |
134 |
| - <waitForElementVisible selector="{{AdminCategoryMainActionsSection.CategoryStoreViewModalAccept}}" |
135 |
| - stepKey="waitForPopup1"/> |
136 |
| - <click selector="{{AdminCategoryMainActionsSection.CategoryStoreViewModalAccept}}" stepKey="clickActionAccept"/> |
137 |
| - <waitForElementNotVisible selector="{{AdminCategoryMainActionsSection.CategoryStoreViewModalAccept}}" |
138 |
| - stepKey="waitForNotVisibleModalAccept"/> |
139 |
| - <waitForPageLoad stepKey="waitForCategoryPageLoad2"/> |
| 122 | + <actionGroup ref="AdminSwitchStoreViewActionGroup" stepKey="swichToDefaultStoreView"> |
| 123 | + <argument name="storeView" value="_defaultStore.name"/> |
| 124 | + </actionGroup> |
140 | 125 | <grabTextFrom selector="{{AdminCategorySidebarTreeSection.categoryInTree($$createCategory.name$$)}}"
|
141 | 126 | stepKey="grabTextFromCategory1"/>
|
142 | 127 | <assertRegExp expected="/\(2\)$/" expectedType="string" actual="$grabTextFromCategory1" actualType="variable"
|
|
154 | 139 |
|
155 | 140 | <!-- Step 4: Set scope selector to Website2 ( StoreView for Website 2) -->
|
156 | 141 | <scrollToTopOfPage stepKey="scrollToTopOfPage1"/>
|
157 |
| - <click selector="{{AdminCategoryMainActionsSection.CategoryStoreViewDropdownToggle}}" |
158 |
| - stepKey="clickStoresList1"/> |
159 |
| - <waitForPageLoad stepKey="waitForCategoryPageLoad3"/> |
160 |
| - <click selector="{{AdminCategoryMainActionsSection.CategoryStoreViewOption('secondStoreView')}}" |
161 |
| - stepKey="clickStoreView1"/> |
162 |
| - <waitForElementVisible selector="{{AdminCategoryMainActionsSection.CategoryStoreViewModalAccept}}" |
163 |
| - stepKey="waitForPopup2"/> |
164 |
| - <click selector="{{AdminCategoryMainActionsSection.CategoryStoreViewModalAccept}}" |
165 |
| - stepKey="clickActionAccept1"/> |
166 |
| - <waitForElementNotVisible selector="{{AdminCategoryMainActionsSection.CategoryStoreViewModalAccept}}" |
167 |
| - stepKey="waitForNotVisibleModalAccept1"/> |
168 |
| - <waitForPageLoad stepKey="waitForCategoryPageLoad4"/> |
| 142 | + <actionGroup ref="AdminSwitchStoreViewActionGroup" stepKey="swichToSecondStoreView"> |
| 143 | + <argument name="storeView" value="SecondStoreUnique.name"/> |
| 144 | + </actionGroup> |
169 | 145 | <click selector="{{AdminCategoryProductsSection.sectionHeader}}" stepKey="openProductSection2"/>
|
170 | 146 | <grabTextFrom selector="{{AdminCategorySidebarTreeSection.categoryInTree($$createCategory.name$$)}}"
|
171 | 147 | stepKey="grabTextFromCategory2"/>
|
|
0 commit comments