|
13 | 13 |
|
14 | 14 | <!--Click on Catalog item-->
|
15 | 15 | <click stepKey="clickOnCatalogItem" selector="{{CatalogProductsSection.catalogItem}}"/>
|
16 |
| - |
17 |
| - <waitForPageLoad stepKey="waitForCatalogLoad" time="3"/> |
| 16 | + <waitForPageLoad stepKey="waitForCatalogLoad"/> |
18 | 17 |
|
19 | 18 | <!--Click on Products item-->
|
20 | 19 | <click stepKey="clickOnProductItem" selector="{{CatalogProductsSection.productItem}}"/>
|
21 |
| - |
22 |
| - <waitForPageLoad stepKey="waitForCatalogProductPageLoad" time="3"/> |
| 20 | + <waitForPageLoad stepKey="waitForCatalogProductPageLoad"/> |
23 | 21 |
|
24 | 22 | <!--Assert we have gone desired page successfully-->
|
25 | 23 | <seeInCurrentUrl stepKey="assertWeAreOnTheCatalogProductPage" url="{{assertionData.catalogProduct}}"/>
|
|
33 | 31 |
|
34 | 32 | <!--Click on Configuration Product item-->
|
35 | 33 | <click stepKey="clickOnConfigurationProductItem" selector="{{ConfigurableProductSection.configProductItem}}"/>
|
36 |
| - |
37 |
| - <waitForPageLoad stepKey="waitForConfigurableProductPageLoad" time="3"/> |
| 34 | + <waitForPageLoad stepKey="waitForConfigurableProductPageLoad"/> |
38 | 35 |
|
39 | 36 | <!--Assert we have gone desired page successfully-->
|
40 | 37 | <seeInCurrentUrl stepKey="assertWeAreOnTheConfigurableProductPage" url="{{assertionData.configurableProduct}}"/>
|
|
54 | 51 |
|
55 | 52 | <!--Click "Create Configurations" button in configurations field-->
|
56 | 53 | <click stepKey="clickOnCreateConfigurationsButton" selector="{{NewProduct.createConfigurationButton}}"/>
|
57 |
| - |
58 |
| - <wait stepKey="waitForCreateProductConfigurationsPageLoad" time="3"/> |
| 54 | + <waitForPageLoad stepKey="waitForCreateProductConfigurationsPageLoad"/> |
59 | 55 |
|
60 | 56 | <!--Click "Create New Attribute" button-->
|
61 | 57 | <click stepKey="clickOnCreateNewAttributeButton" selector="{{NewProduct.createNewAttributeButton}}"/>
|
62 |
| - |
63 |
| - <wait stepKey="waitForNewAttributePageLoad" time="3"/> |
| 58 | + <waitForPageLoad stepKey="waitForNewAttributePageLoad"/> |
64 | 59 |
|
65 | 60 | </actionGroup>
|
66 | 61 |
|
67 |
| - <actionGroup name="FillNewAttributeFields"> |
| 62 | + |
| 63 | + <actionGroup name="CreateNewAttribute"> |
68 | 64 |
|
69 | 65 | <switchToIFrame stepKey="NewAttributePage" selector="{{NewProduct.newAttributeIFrame}}"/>
|
70 | 66 |
|
|
73 | 69 |
|
74 | 70 | <!--Add option 1 to attribute-->
|
75 | 71 | <click selector="{{NewProduct.addOptionButton}}" stepKey="clickAddOption1"/>
|
76 |
| - <fillField stepKey="fillInAdminField1" selector="{{NewProduct.adminField1}}" userInput="{{NewProductsData.adminField1}}"/> |
77 |
| - <fillField stepKey="fillInDefaultStoreViewField1" selector="{{NewProduct.defaultStoreViewField1}}" userInput="{{NewProductsData.defaultStoreViewField1}}"/> |
| 72 | + <fillField stepKey="fillInAdminFieldRed" selector="{{NewProduct.adminFieldRed}}" userInput="{{NewProductsData.adminFieldRed}}"/> |
| 73 | + <fillField stepKey="fillInDefaultStoreViewFieldRed" selector="{{NewProduct.defaultStoreViewFieldRed}}" userInput="{{NewProductsData.defaultStoreViewFieldRed}}"/> |
78 | 74 |
|
79 | 75 | <!--Add option 2 to attribute-->
|
80 | 76 | <click selector="{{NewProduct.addOptionButton}}" stepKey="clickAddOption2"/>
|
81 |
| - <fillField stepKey="fillInAdminField2" selector="{{NewProduct.adminField2}}" userInput="{{NewProductsData.adminField2}}"/> |
82 |
| - <fillField stepKey="fillInDefaultStoreViewField2" selector="{{NewProduct.defaultStoreViewField2}}" userInput="{{NewProductsData.defaultStoreViewField2}}"/> |
| 77 | + <fillField stepKey="fillInAdminFieldBlue" selector="{{NewProduct.adminFieldBlue}}" userInput="{{NewProductsData.adminFieldBlue}}"/> |
| 78 | + <fillField stepKey="fillInDefaultStoreViewFieldBlue" selector="{{NewProduct.defaultStoreViewFieldBlue}}" userInput="{{NewProductsData.defaultStoreViewFieldBlue}}"/> |
83 | 79 |
|
84 | 80 | <!--Add option 3 to attribute-->
|
85 | 81 | <click selector="{{NewProduct.addOptionButton}}" stepKey="clickAddOption3"/>
|
86 |
| - <fillField stepKey="fillInAdminField3" selector="{{NewProduct.adminField3}}" userInput="{{NewProductsData.adminField3}}"/> |
87 |
| - <fillField stepKey="fillInDefaultStoreViewField3" selector="{{NewProduct.defaultStoreViewField3}}" userInput="{{NewProductsData.defaultStoreViewField3}}"/> |
| 82 | + <fillField stepKey="fillInAdminFieldYellow" selector="{{NewProduct.adminFieldYellow}}" userInput="{{NewProductsData.adminFieldYellow}}"/> |
| 83 | + <fillField stepKey="fillInDefaultStoreViewFieldYellow" selector="{{NewProduct.defaultStoreViewFieldYellow}}" userInput="{{NewProductsData.defaultStoreViewFieldYellow}}"/> |
88 | 84 |
|
89 | 85 | <!--Add option 4 to attribute-->
|
90 | 86 | <click selector="{{NewProduct.addOptionButton}}" stepKey="clickAddOption4"/>
|
91 |
| - <fillField stepKey="fillInAdminField4" selector="{{NewProduct.adminField4}}" userInput="{{NewProductsData.adminField4}}"/> |
92 |
| - <fillField stepKey="fillInDefaultStoreViewField4" selector="{{NewProduct.defaultStoreViewField4}}" userInput="{{NewProductsData.defaultStoreViewField4}}"/> |
| 87 | + <fillField stepKey="fillInAdminFieldGreen" selector="{{NewProduct.adminFieldGreen}}" userInput="{{NewProductsData.adminFieldGreen}}"/> |
| 88 | + <fillField stepKey="fillInDefaultStoreViewFieldGreen" selector="{{NewProduct.defaultStoreViewFieldGreen}}" userInput="{{NewProductsData.defaultStoreViewFieldGreen}}"/> |
93 | 89 |
|
94 | 90 | <!--Add option 5 to attribute-->
|
95 | 91 | <click selector="{{NewProduct.addOptionButton}}" stepKey="clickAddOption5"/>
|
96 |
| - <fillField stepKey="fillInAdminField5" selector="{{NewProduct.adminField5}}" userInput="{{NewProductsData.adminField5}}"/> |
97 |
| - <fillField stepKey="fillInDefaultStoreViewField5" selector="{{NewProduct.defaultStoreViewField5}}" userInput="{{NewProductsData.defaultStoreViewField5}}"/> |
| 92 | + <fillField stepKey="fillInAdminFieldBlack" selector="{{NewProduct.adminFieldBlack}}" userInput="{{NewProductsData.adminFieldBlack}}"/> |
| 93 | + <fillField stepKey="fillInDefaultStoreViewFieldBlack" selector="{{NewProduct.defaultStoreViewFieldBlack}}" userInput="{{NewProductsData.defaultStoreViewFieldBlack}}"/> |
98 | 94 |
|
99 | 95 | <!--Click Save Attribute button-->
|
100 | 96 | <click selector="{{NewProduct.saveAttributeButton}}" stepKey="clickSaveAttributeButton"/>
|
101 |
| - |
102 |
| - <wait stepKey="waitForSavingSettings" time="3"/> |
| 97 | + <waitForPageLoad stepKey="waitForSavingSettings"/> |
103 | 98 |
|
104 | 99 | <!--Select created Attribute -->
|
105 | 100 | <click selector="{{ConfigurableProductSection.selectCreatedAttribute}}" stepKey="selectCreatedAttribute"/>
|
106 | 101 |
|
107 | 102 | <!--Click Next button-->
|
108 | 103 | <click selector="{{ConfigurableProductSection.nextButton}}" stepKey="clickNextButton"/>
|
109 |
| - |
110 |
| - <wait stepKey="waitForNextPageLoaded" time="3"/> |
| 104 | + <waitForPageLoad stepKey="waitForNextPageLoaded"/> |
111 | 105 |
|
112 | 106 | <!--Select all the options of all the attributes button-->
|
113 |
| - <click selector="{{CreateProductConfigurations.item1}}" stepKey="selectItem1"/> |
114 |
| - <click selector="{{CreateProductConfigurations.item2}}" stepKey="selectItem2"/> |
115 |
| - <click selector="{{CreateProductConfigurations.item3}}" stepKey="selectItem3"/> |
116 |
| - <click selector="{{CreateProductConfigurations.item4}}" stepKey="selectItem4"/> |
117 |
| - <click selector="{{CreateProductConfigurations.item5}}" stepKey="selectItem5"/> |
| 107 | + <click selector="{{CreateProductConfigurations.checkboxRed}}" stepKey="selectCheckboxRed"/> |
| 108 | + <click selector="{{CreateProductConfigurations.checkboxBlue}}" stepKey="selectCheckboxBlue"/> |
| 109 | + <click selector="{{CreateProductConfigurations.checkboxYellow}}" stepKey="selectCheckboxYellow"/> |
| 110 | + <click selector="{{CreateProductConfigurations.checkboxGreen}}" stepKey="selectCheckboxGreen"/> |
| 111 | + <click selector="{{CreateProductConfigurations.checkboxBlack}}" stepKey="selectCheckboxBlack"/> |
118 | 112 |
|
119 | 113 | <!--Click Next button-->
|
120 | 114 | <click selector="{{ConfigurableProductSection.nextButton}}" stepKey="clickNextButton2"/>
|
121 |
| - |
122 |
| - <wait stepKey="waitForBulkImagesPricePageLoaded" time="3"/> |
| 115 | + <waitForPageLoad stepKey="waitForBulkImagesPricePageLoaded"/> |
123 | 116 |
|
124 | 117 | <!--Click Next button-->
|
125 | 118 | <click selector="{{ConfigurableProductSection.nextButton}}" stepKey="clickNextButton3"/>
|
126 |
| - |
127 |
| - <wait stepKey="waitForSummaryPageLoaded" time="3"/> |
| 119 | + <waitForPageLoad stepKey="waitForSummaryPageLoaded"/> |
128 | 120 |
|
129 | 121 | <!--Click Generate Configure button-->
|
130 | 122 | <click selector="{{ConfigurableProductSection.generateConfigure}}" stepKey="generateConfigure"/>
|
131 |
| - |
132 |
| - <wait stepKey="waitForGenerateConfigure" time="3"/> |
| 123 | + <waitForPageLoad stepKey="waitForGenerateConfigure"/> |
133 | 124 |
|
134 | 125 | <!-- This Error message shouldn't appear: Test will pass when bug will be fixed-->
|
135 | 126 | <dontSee selector="{{CreateProductConfigurations.errorMessage}}" userInput="{{assertionData.errorMessage}}" stepKey="dontSeeError"/>
|
136 | 127 |
|
137 | 128 | <!--Close frame-->
|
138 | 129 | <conditionalClick selector="{{ConfigurableProductSection.closeFrame}}" dependentSelector="{{ConfigurableProductSection.closeFrame}}" visible="1" stepKey="closeFrame"/>
|
| 130 | + <waitForPageLoad stepKey="waitForClosingFrame"/> |
139 | 131 |
|
140 |
| - <wait stepKey="waitForClosingFrame" time="3"/> |
| 132 | + </actionGroup> |
| 133 | + |
| 134 | + <actionGroup name="DeleteCreatedAttribute"> |
| 135 | + |
| 136 | + <!--Click on Stores item--> |
| 137 | + <click stepKey="clickOnStoresItem" selector="{{CatalogProductsSection.storesItem}}"/> |
| 138 | + |
| 139 | + <!--Click on Products item--> |
| 140 | + <waitForElementVisible selector="{{CatalogProductsSection.storesProductItem}}" stepKey="waitForCatalogLoad"/> |
| 141 | + <click stepKey="clickOnStoresProductItem" selector="{{CatalogProductsSection.storesProductItem}}"/> |
| 142 | + <waitForPageLoad stepKey="waitForStoresProductPageLoad"/> |
| 143 | + |
| 144 | + <!--Click on created Attribute --> |
| 145 | + <fillField stepKey="searchProductDefaultLabel" selector="{{CatalogProductsSection.searchDefaultLabelField}}" userInput="{{NewProductsData.defaultLabel}}"/> |
| 146 | + <click stepKey="clickSearchButton" selector="{{CatalogProductsSection.searchButton}}"/> |
| 147 | + <waitForPageLoad stepKey="waitForCreatedAttributeLoad"/> |
| 148 | + <click stepKey="clickOnCreatedAttributeItem" selector="{{CatalogProductsSection.createdAttributeItem}}"/> |
| 149 | + <waitForPageLoad stepKey="waitForAttributePropertiesPageLoad"/> |
| 150 | + |
| 151 | + <!--Click on Delete Attribute item--> |
| 152 | + <click stepKey="clickOnDeleteAttributeItem" selector="{{CatalogProductsSection.deleteAttributeItem}}"/> |
| 153 | + <waitForPageLoad stepKey="waitForDeletedDialogOpened"/> |
| 154 | + |
| 155 | + <!--Click on OK button--> |
| 156 | + <click stepKey="clickOnOKButton" selector="{{CatalogProductsSection.okButton}}"/> |
| 157 | + <waitForPageLoad stepKey="waitFordAttributeDeleted"/> |
141 | 158 |
|
142 | 159 | </actionGroup>
|
143 | 160 |
|
144 | 161 | <actionGroup name="DeleteCreatedAttributeIfExist">
|
145 | 162 |
|
146 | 163 | <!--Click on Stores item-->
|
147 | 164 | <click stepKey="clickOnStoresItem" selector="{{CatalogProductsSection.storesItem}}"/>
|
148 |
| - |
149 |
| - <waitForPageLoad stepKey="waitForCatalogLoad" time="3"/> |
| 165 | + <waitForPageLoad stepKey="waitForCatalogLoad"/> |
150 | 166 |
|
151 | 167 | <!--Click on Products item-->
|
152 | 168 | <click stepKey="clickOnStoresProductItem" selector="{{CatalogProductsSection.storesProductItem}}"/>
|
153 |
| - |
154 |
| - <waitForPageLoad stepKey="waitForStoresProductPageLoad" time="3"/> |
| 169 | + <waitForPageLoad stepKey="waitForStoresProductPageLoad"/> |
155 | 170 |
|
156 | 171 | <!--Click on created Attribute item if it exist-->
|
157 | 172 | <conditionalClick selector="{{CatalogProductsSection.createdAttributeItem}}" dependentSelector="{{CatalogProductsSection.createdAttributeItem}}" visible="1" stepKey="clickOnCreatedAttributeItem"/>
|
158 |
| - |
159 |
| - <waitForPageLoad stepKey="waitForCreatedAttributeLoad" time="3"/> |
| 173 | + <waitForPageLoad stepKey="waitForCreatedAttributeLoad"/> |
160 | 174 |
|
161 | 175 | <!--Click on Delete Attribute item-->
|
162 | 176 | <conditionalClick stepKey="clickOnDeleteAttributeItem" selector="{{CatalogProductsSection.deleteAttributeItem}}" dependentSelector="{{CatalogProductsSection.deleteAttributeItem}}" visible="1"/>
|
163 |
| - |
164 |
| - <waitForPageLoad stepKey="waitForDeletedDialogOpened" time="3"/> |
| 177 | + <waitForPageLoad stepKey="waitForDeletedDialogOpened"/> |
165 | 178 |
|
166 | 179 | <!--Click on OK button-->
|
167 | 180 | <conditionalClick stepKey="clickOnOKButton" selector="{{CatalogProductsSection.okButton}}" dependentSelector="{{CatalogProductsSection.okButton}}" visible="1"/>
|
168 |
| - |
169 |
| - <waitForPageLoad stepKey="waitFordAttributeDeleted" time="3"/> |
| 181 | + <waitForPageLoad stepKey="waitFordAttributeDeleted"/> |
170 | 182 |
|
171 | 183 | </actionGroup>
|
172 | 184 |
|
|
0 commit comments